Home | History | Annotate | Download | only in test

Lines Matching refs:benchmark

1 #include "benchmark/benchmark.h"
19 static void BM_MapLookup(benchmark::State& state) {
26 benchmark::DoNotOptimize(m.find(rand() % size));
31 BENCHMARK(BM_MapLookup)->Range(1 << 3, 1 << 12);
34 class MapFixture : public ::benchmark::Fixture {
36 void SetUp(const ::benchmark::State& st) {
40 void TearDown(const ::benchmark::State&) { m.clear(); }
45 BENCHMARK_DEFINE_F(MapFixture, Lookup)(benchmark::State& state) {
49 benchmark::DoNotOptimize(m.find(rand() % size));