1# Copyright (c) 2014 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5NAME = 'hardware_MemoryLatency' 6AUTHOR = '[email protected]' 7PURPOSE = 'Benchmark memory and cache access latency' 8CRITERIA = 'This test is a benchmark.' 9ATTRIBUTES = "suite:hwqual, suite:kernel_daily_benchmarks" 10TIME='MEDIUM' 11TEST_CATEGORY = 'Performance' 12TEST_CLASS = "hardware" 13TEST_TYPE = 'client' 14ATTRIBUTES = "suite:memory_qual2" 15PY_VERSION = 3 16 17DOC = """ 18This test will use the lat_mem_rd benchmark from lmbench3 to measure memory 19latency. 20""" 21 22# test with samples added at points which should roughly correspond to 23# L1, L2, L3 (if any) and the final size will tell us DRAM latency 24job.run_test('hardware_MemoryLatency', 25 sample_size_kb=[ int(2), int(192), int(1024)]) 26