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