OSDN Git Service

Add cold versions of benchmarks.
authorChristopher Ferris <cferris@google.com>
Wed, 24 Jul 2013 22:34:13 +0000 (15:34 -0700)
committerChristopher Ferris <cferris@google.com>
Tue, 30 Jul 2013 21:32:38 +0000 (14:32 -0700)
commit991bcd464d67c3cff76477140331619ff138aafc
tree6f94c5bd67bf4d575ccf55a875d7c4349f161a5f
parent94767603d37e8af3159e23d830562952cb8cc99c
Add cold versions of benchmarks.

- Created macros for one and two buffer benchmarks to simplify
  addition of new benchmarks.
- Created cold versions of all benchmarks that work on buffer benchmarks.
  This means that the benchmark is given buffers that are not in the cache.
- Verified the cold versions are working as intended by
  changing it so that the same buffer is written in each loop
  instead of the strided buffer. Using this method, the cold and
  normal benchmark run at the same speed.

Change-Id: Ie5d1b015dd70d3935cfa2830a82955429a2f5b3c
micro_bench/micro_bench.cpp