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);
21 while (state.KeepRunning()) {
22 state.PauseTiming();
24 state.ResumeTiming();
29 state.SetItemsProcessed(state.iterations() * size);
36 void SetUp(const ::benchmark::State& st) {
40 void TearDown(const ::benchmark::State&) { m.clear(); }
45 BENCHMARK_DEFINE_F(MapFixture, Lookup)(benchmark::State& state) {
46 const int size = state.range(0);
47 while (state.KeepRunning()) {
52 state.SetItemsProcessed(state.iterations() * size);