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_MemoryThroughput.cache_copy_1thread' 6AUTHOR = 'sonnyrao@chromium.org' 7PURPOSE = 'Benchmark sequential throughput for read, write, and copy' 8CRITERIA = 'This test is a benchmark.' 9TIME='SHORT' 10TEST_CATEGORY = 'Performance' 11TEST_CLASS = 'hardware' 12TEST_TYPE = 'client' 13 14DOC = """ 15This uses the lmbench 3 bw_mem benchmark for reads, writes, and copy 16For write and copy it uses C standard library functions memcpy and 17memset, which are generally optimized for the target. 18""" 19 20job.run_test('hardware_MemoryThroughput', test='bcopy', warmup=100, 21 num_iterations=100, parallel=1, 22 sizes=[ 4096, 192 * 1024, 512 * 1024]) 23 24