diff options
author | Elliott Hughes <enh@google.com> | 2019-09-26 07:42:23 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2019-09-26 07:42:23 -0700 |
commit | 96705e3712007e2739b809e02a6583c39756fc86 (patch) | |
tree | 9b0c06c53af6b526c47d33a14c8e0117ce204ba3 /benchmarks/spawn/spawn_benchmarks.cpp | |
parent | 6ebeaac69db83624e14f96f0345ceae350e87c0e (diff) |
benchmarks: remove more boilerplate.
Many of our benchmarks are basically just "call one function with a
fixed argument". We don't need to keep repeating all the boilerplate for
that.
This also ensures we don't forget the benchmark::DoNotOptimize, which --
in addition to being a good idea in general -- specifically solves the
problem with gettid benchmark and provides a more accurate result by
removing the indirection through a function pointer.
Test: ran benchmarks
Change-Id: Id67535243678cd0d48f51cf25141e2040da9af03
Diffstat (limited to 'benchmarks/spawn/spawn_benchmarks.cpp')
0 files changed, 0 insertions, 0 deletions