• Home
  • Raw
  • Download

Lines Matching full:benchmark

21 #include "benchmark/benchmark.h"
25 void BM_Strtod_Pi(benchmark::State& state) { in BM_Strtod_Pi()
28 benchmark::DoNotOptimize(pi); in BM_Strtod_Pi()
29 benchmark::DoNotOptimize(strtod(pi, nullptr)); in BM_Strtod_Pi()
32 BENCHMARK(BM_Strtod_Pi);
34 void BM_Absl_Pi(benchmark::State& state) { in BM_Absl_Pi()
38 benchmark::DoNotOptimize(pi); in BM_Absl_Pi()
41 benchmark::DoNotOptimize(v); in BM_Absl_Pi()
44 BENCHMARK(BM_Absl_Pi);
46 void BM_Strtod_Pi_float(benchmark::State& state) { in BM_Strtod_Pi_float()
49 benchmark::DoNotOptimize(pi); in BM_Strtod_Pi_float()
50 benchmark::DoNotOptimize(strtof(pi, nullptr)); in BM_Strtod_Pi_float()
53 BENCHMARK(BM_Strtod_Pi_float);
55 void BM_Absl_Pi_float(benchmark::State& state) { in BM_Absl_Pi_float()
59 benchmark::DoNotOptimize(pi); in BM_Absl_Pi_float()
62 benchmark::DoNotOptimize(v); in BM_Absl_Pi_float()
65 BENCHMARK(BM_Absl_Pi_float);
67 void BM_Strtod_HardLarge(benchmark::State& state) { in BM_Strtod_HardLarge()
70 benchmark::DoNotOptimize(num); in BM_Strtod_HardLarge()
71 benchmark::DoNotOptimize(strtod(num, nullptr)); in BM_Strtod_HardLarge()
74 BENCHMARK(BM_Strtod_HardLarge);
76 void BM_Absl_HardLarge(benchmark::State& state) { in BM_Absl_HardLarge()
80 benchmark::DoNotOptimize(numstr); in BM_Absl_HardLarge()
83 benchmark::DoNotOptimize(v); in BM_Absl_HardLarge()
86 BENCHMARK(BM_Absl_HardLarge);
88 void BM_Strtod_HardSmall(benchmark::State& state) { in BM_Strtod_HardSmall()
91 benchmark::DoNotOptimize(num); in BM_Strtod_HardSmall()
92 benchmark::DoNotOptimize(strtod(num, nullptr)); in BM_Strtod_HardSmall()
95 BENCHMARK(BM_Strtod_HardSmall);
97 void BM_Absl_HardSmall(benchmark::State& state) { in BM_Absl_HardSmall()
101 benchmark::DoNotOptimize(numstr); in BM_Absl_HardSmall()
104 benchmark::DoNotOptimize(v); in BM_Absl_HardSmall()
107 BENCHMARK(BM_Absl_HardSmall);
109 void BM_Strtod_HugeMantissa(benchmark::State& state) { in BM_Strtod_HugeMantissa()
113 benchmark::DoNotOptimize(num); in BM_Strtod_HugeMantissa()
114 benchmark::DoNotOptimize(strtod(num, nullptr)); in BM_Strtod_HugeMantissa()
117 BENCHMARK(BM_Strtod_HugeMantissa);
119 void BM_Absl_HugeMantissa(benchmark::State& state) { in BM_Absl_HugeMantissa()
124 benchmark::DoNotOptimize(num); in BM_Absl_HugeMantissa()
127 benchmark::DoNotOptimize(v); in BM_Absl_HugeMantissa()
130 BENCHMARK(BM_Absl_HugeMantissa);
155 void BM_Strtod_Big_And_Difficult(benchmark::State& state) { in BM_Strtod_Big_And_Difficult()
159 benchmark::DoNotOptimize(begin); in BM_Strtod_Big_And_Difficult()
160 benchmark::DoNotOptimize(strtod(begin, nullptr)); in BM_Strtod_Big_And_Difficult()
163 BENCHMARK(BM_Strtod_Big_And_Difficult)->Range(3, 5000);
165 void BM_Absl_Big_And_Difficult(benchmark::State& state) { in BM_Absl_Big_And_Difficult()
170 benchmark::DoNotOptimize(begin); in BM_Absl_Big_And_Difficult()
173 benchmark::DoNotOptimize(v); in BM_Absl_Big_And_Difficult()
176 BENCHMARK(BM_Absl_Big_And_Difficult)->Range(3, 5000);
181 // Benchmark Time CPU Iterations