OSDN Git Service

Adding a few bandwidth tests.
authorChristopher Ferris <cferris@google.com>
Fri, 12 Apr 2013 00:50:18 +0000 (17:50 -0700)
committerChristopher Ferris <cferris@google.com>
Wed, 24 Apr 2013 19:27:45 +0000 (12:27 -0700)
commit1348ce27ee9bb8e50a3294879c1523fa4b4d8f8b
treeca2766943ba85b063de2aab3fdcaabf8d229954d
parent09aa7caabfb96f5605a7afb04dc05551f754e20f
Adding a few bandwidth tests.

New tests being added:
- copy_bandwidth: Gathers the copy bandwidth using four different
  hand-coded assembler routines and using memcpy.
- write_bandwidth: Gathers the write bandwidth using four different
  hand-coded assembler routines and using memset.
- per_core_bandwidth: Launches a thread of any one of the write/copy
  bandwidth tests locked to every available core on the machine.
- multithread_bandwidth: Launches a user specified number of threads running
  any one of the write/copy bandwidth tests.

Each of the tests can be modified as to the size of the data to manipulate
and the number of loops to run.

Deleted tests:
- memcpy (a better memcpy benchmark can be found in system/extras/micro_bench)
- memset (a better memset benchmark can be found in system/extras/micro_bench)
- memcmp (no real replacement, but I plan to add this to micro_bench)
- strlen (no real replacement, but I plan to add this to micro_bench)
- cpufreq (this doesn't work any more)

All verification tests have been mostly shifted to system/extras/libc_test.

Change-Id: I70d1e27da3b2ff1a4c8fc257e03b9c43c8c9e7cc
tests/memtest/Android.mk
tests/memtest/bandwidth.cpp [new file with mode: 0644]
tests/memtest/bandwidth.h [new file with mode: 0644]
tests/memtest/memtest.cpp
tests/memtest/memtest.h [new file with mode: 0644]