Home | History | Annotate | Download | only in test

Lines Matching full:benchmark

1 #include "benchmark/benchmark.h"
19 static void BM_MapLookup(benchmark::State& state) {
27 benchmark::DoNotOptimize(m.find(rand() % size));
32 BENCHMARK(BM_MapLookup)->Range(1 << 3, 1 << 12);
35 class MapFixture : public ::benchmark::Fixture {
37 void SetUp(const ::benchmark::State& st) {
41 void TearDown(const ::benchmark::State&) { m.clear(); }
46 BENCHMARK_DEFINE_F(MapFixture, Lookup)(benchmark::State& state) {
50 benchmark::DoNotOptimize(m.find(rand() % size));