Lines Matching full:benchmark
20 #include "benchmark/benchmark.h"
28 // We benchmark case-sensitive and case-insensitive versions of
42 // Benchmark Time CPU Iterations
97 void BM_Memmem(benchmark::State& state) { in BM_Memmem()
99 benchmark::DoNotOptimize( in BM_Memmem()
104 BENCHMARK(BM_Memmem);
106 void BM_MemmemMedium(benchmark::State& state) { in BM_MemmemMedium()
108 benchmark::DoNotOptimize( in BM_MemmemMedium()
113 BENCHMARK(BM_MemmemMedium);
115 void BM_MemmemPathological(benchmark::State& state) { in BM_MemmemPathological()
117 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemPathological()
123 BENCHMARK(BM_MemmemPathological);
125 void BM_Memcasemem(benchmark::State& state) { in BM_Memcasemem()
127 benchmark::DoNotOptimize( in BM_Memcasemem()
132 BENCHMARK(BM_Memcasemem);
134 void BM_MemcasememMedium(benchmark::State& state) { in BM_MemcasememMedium()
136 benchmark::DoNotOptimize( in BM_MemcasememMedium()
141 BENCHMARK(BM_MemcasememMedium);
143 void BM_MemcasememPathological(benchmark::State& state) { in BM_MemcasememPathological()
145 benchmark::DoNotOptimize(absl::strings_internal::memcasemem( in BM_MemcasememPathological()
151 BENCHMARK(BM_MemcasememPathological);
157 void BM_Search(benchmark::State& state) { in BM_Search()
159 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_Search()
165 BENCHMARK(BM_Search);
167 void BM_SearchMedium(benchmark::State& state) { in BM_SearchMedium()
169 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_SearchMedium()
175 BENCHMARK(BM_SearchMedium);
177 void BM_SearchPathological(benchmark::State& state) { in BM_SearchPathological()
179 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_SearchPathological()
185 BENCHMARK(BM_SearchPathological);
187 void BM_Searchcase(benchmark::State& state) { in BM_Searchcase()
189 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_Searchcase()
195 BENCHMARK(BM_Searchcase);
197 void BM_SearchcaseMedium(benchmark::State& state) { in BM_SearchcaseMedium()
199 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_SearchcaseMedium()
205 BENCHMARK(BM_SearchcaseMedium);
207 void BM_SearchcasePathological(benchmark::State& state) { in BM_SearchcasePathological()
209 benchmark::DoNotOptimize(std::search(kHaystack, kHaystack + kHaystackSize, in BM_SearchcasePathological()
215 BENCHMARK(BM_SearchcasePathological);
244 void BM_Memmatch(benchmark::State& state) { in BM_Memmatch()
246 benchmark::DoNotOptimize( in BM_Memmatch()
251 BENCHMARK(BM_Memmatch);
253 void BM_MemmatchMedium(benchmark::State& state) { in BM_MemmatchMedium()
255 benchmark::DoNotOptimize( in BM_MemmatchMedium()
260 BENCHMARK(BM_MemmatchMedium);
262 void BM_MemmatchPathological(benchmark::State& state) { in BM_MemmatchPathological()
264 benchmark::DoNotOptimize(absl::strings_internal::memmatch( in BM_MemmatchPathological()
270 BENCHMARK(BM_MemmatchPathological);
272 void BM_Memcasematch(benchmark::State& state) { in BM_Memcasematch()
274 benchmark::DoNotOptimize(memcasematch(kHaystack, kHaystackSize, "b", 1)); in BM_Memcasematch()
278 BENCHMARK(BM_Memcasematch);
280 void BM_MemcasematchMedium(benchmark::State& state) { in BM_MemcasematchMedium()
282 benchmark::DoNotOptimize(memcasematch(kHaystack, kHaystackSize, "ab", 2)); in BM_MemcasematchMedium()
286 BENCHMARK(BM_MemcasematchMedium);
288 void BM_MemcasematchPathological(benchmark::State& state) { in BM_MemcasematchPathological()
290 benchmark::DoNotOptimize(memcasematch(kHaystack, kHaystackSize, in BM_MemcasematchPathological()
296 BENCHMARK(BM_MemcasematchPathological);
298 void BM_MemmemStartup(benchmark::State& state) { in BM_MemmemStartup()
300 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemStartup()
304 BENCHMARK(BM_MemmemStartup);
306 void BM_SearchStartup(benchmark::State& state) { in BM_SearchStartup()
308 benchmark::DoNotOptimize( in BM_SearchStartup()
313 BENCHMARK(BM_SearchStartup);
315 void BM_MemmatchStartup(benchmark::State& state) { in BM_MemmatchStartup()
317 benchmark::DoNotOptimize(absl::strings_internal::memmatch( in BM_MemmatchStartup()
321 BENCHMARK(BM_MemmatchStartup);