Home | History | Annotate | Download | only in test

Lines Matching refs:state

19 static void BM_MapLookup(benchmark::State& state) {
20 const int size = state.range(0);
22 for (auto _ : state) {
23 state.PauseTiming();
25 state.ResumeTiming();
30 state.SetItemsProcessed(state.iterations() * size);
37 void SetUp(const ::benchmark::State& st) {
41 void TearDown(const ::benchmark::State&) { m.clear(); }
46 BENCHMARK_DEFINE_F(MapFixture, Lookup)(benchmark::State& state) {
47 const int size = state.range(0);
48 for (auto _ : state) {
53 state.SetItemsProcessed(state.iterations() * size);