diff options
author | Josh Gao <jmgao@google.com> | 2017-10-24 14:00:09 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2017-10-24 14:02:54 -0700 |
commit | 286b3a8b2d071ee2652232b923770757f0647468 (patch) | |
tree | e10a2b83141f4ce4af53fd8e4318103ad884c714 /benchmarks/stdio_benchmark.cpp | |
parent | d330bbbac846d0dfbc797ca594bc69f3442494d1 (diff) |
Fix pthread benchmarks.
PauseTiming and ResumeTiming are thread-local, and unbalanced calls to
them leads to obviously bogus results like:
Benchmark Time CPU Iterations
-----------------------------------------------------------------
BM_pthread_exit_and_join 212600 ns 59981418 ns 12
BM_pthread_create_and_run 212997341 ns -1569132344 ns 1000
Bug: http://b/68170209
Test: ran bionic benchmarks
Change-Id: Ia88cd6af9ff524443850d834a96cf5dd9c7f3ed9
Diffstat (limited to 'benchmarks/stdio_benchmark.cpp')
0 files changed, 0 insertions, 0 deletions