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 = 'sonnyrao@chromium.org' 7PURPOSE = 'Benchmark memory and cache access latency' 8CRITERIA = 'This test is a benchmark.' 9ATTRIBUTES = "suite:hwqual, suite:kernel_daily_benchmarks" 10SUITE = "kernel_daily_benchmarks, hwqual" 11TIME='MEDIUM' 12TEST_CATEGORY = 'Performance' 13TEST_CLASS = "hardware" 14TEST_TYPE = 'client' 15 16DOC = """ 17This test will use the lat_mem_rd benchmark from lmbench3 to measure memory 18latency. 19""" 20 21# test with samples added at points which should roughly correspond to 22# L1, L2, L3 (if any) and the final size will tell us DRAM latency 23job.run_test('hardware_MemoryLatency', 24 sample_size_kb=[ int(2), int(192), int(1024)]) 25