1 # Copyright (c) 2015 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 5 NAME = 'hardware_MemoryThroughput.memory_qual' 6 AUTHOR = 'puthik' 7 PURPOSE = 'Benchmark sequential throughput for read, write, and copy' 8 CRITERIA = 'This test is a benchmark for memory qualification.' 9 TIME = 'MEDIUM' 10 TEST_CATEGORY = 'Performance' 11 TEST_CLASS = 'hardware' 12 TEST_TYPE = 'client' 13 14 DOC = """ 15 This uses the lmbench 3 bw_mem benchmark for reads, writes, and copy 16 For write and copy it uses C standard library functions memcpy and 17 memset, which are generally optimized for the target. 18 """ 19 20 job.run_test('hardware_MemoryThroughput', 21 tag='memory_qual', test='bcopy', warmup=100, 22 num_iterations=100, parallel=2, 23 sizes=[ 1024, 2048, 4096, 8192, 24 15360, 16384, 24576, 25 30720, 32768, 33792, 26 49152, 65536, 98304, 27 130048, 131072, 256000, 28 262144, 393216, 524288, 29 1048576, 1468006, 1572864, 30 1966080, 2097152, 2228224, 31 2621440, 3072000, 3145728, 32 3276800, 4194304, 8388608, 33 16777216, 33554432, 67108864]) 34