summaryrefslogtreecommitdiff
path: root/benchmarks/inttypes_benchmark.cpp
diff options
context:
space:
mode:
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));