summaryrefslogtreecommitdiff
path: root/benchmarks/inttypes_benchmark.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-09-26 21:38:52 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-09-26 21:38:52 +0000
commitf5b44a5ea6875d593bccd1a30220ded177fb26ba (patch)
tree39ec26bced5060bf30f5da5f1f0318e22928cc4b /benchmarks/inttypes_benchmark.cpp
parent6595551e284ad8962d6c9c01556ff27907ab0067 (diff)
parent96705e3712007e2739b809e02a6583c39756fc86 (diff)
Merge "benchmarks: remove more boilerplate."
Diffstat (limited to 'benchmarks/inttypes_benchmark.cpp')
-rw-r--r--benchmarks/inttypes_benchmark.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/benchmarks/inttypes_benchmark.cpp b/benchmarks/inttypes_benchmark.cpp
index f123eb8e9..b96384e9e 100644
--- a/benchmarks/inttypes_benchmark.cpp
+++ b/benchmarks/inttypes_benchmark.cpp
@@ -19,16 +19,5 @@
#include <benchmark/benchmark.h>
#include "util.h"
-void BM_inttypes_strtoimax(benchmark::State& state) {
- while (state.KeepRunning()) {
- strtoimax(" -123", nullptr, 0);
- }
-}
-BIONIC_BENCHMARK(BM_inttypes_strtoimax);
-
-void BM_inttypes_strtoumax(benchmark::State& state) {
- while (state.KeepRunning()) {
- strtoumax(" -123", nullptr, 0);
- }
-}
-BIONIC_BENCHMARK(BM_inttypes_strtoumax);
+BIONIC_TRIVIAL_BENCHMARK(BM_inttypes_strtoimax, strtoimax(" -123", nullptr, 0));
+BIONIC_TRIVIAL_BENCHMARK(BM_inttypes_strtoumax, strtoumax(" -123", nullptr, 0));