Lines Matching refs:state
64 static void MapBenchmark(benchmark::State& state, size_t num_elements) { in MapBenchmark() argument
69 for (auto _ : state) { in MapBenchmark()
71 state.PauseTiming(); in MapBenchmark()
75 state.ResumeTiming(); in MapBenchmark()
82 state.PauseTiming(); in MapBenchmark()
87 state.ResumeTiming(); in MapBenchmark()
92 double rss_mb = (rss_bytes / static_cast<double>(state.iterations())) / 1024.0 / 1024.0; in MapBenchmark()
93 state.counters["RSS_MB"] = rss_mb; in MapBenchmark()
97 static void BM_std_map_8(benchmark::State& state) { in BM_std_map_8() argument
98 MapBenchmark<std::map<uint64_t, char[8]>>(state, 1000000); in BM_std_map_8()
102 static void BM_std_map_16(benchmark::State& state) { in BM_std_map_16() argument
103 MapBenchmark<std::map<uint64_t, char[16]>>(state, 1000000); in BM_std_map_16()
107 static void BM_std_map_32(benchmark::State& state) { in BM_std_map_32() argument
108 MapBenchmark<std::map<uint64_t, char[32]>>(state, 1000000); in BM_std_map_32()
112 static void BM_std_map_64(benchmark::State& state) { in BM_std_map_64() argument
113 MapBenchmark<std::map<uint64_t, char[64]>>(state, 1000000); in BM_std_map_64()
117 static void BM_std_map_96(benchmark::State& state) { in BM_std_map_96() argument
118 MapBenchmark<std::map<uint64_t, char[96]>>(state, 1000000); in BM_std_map_96()
122 static void BM_std_map_128(benchmark::State& state) { in BM_std_map_128() argument
123 MapBenchmark<std::map<uint64_t, char[128]>>(state, 500000); in BM_std_map_128()
127 static void BM_std_map_256(benchmark::State& state) { in BM_std_map_256() argument
128 MapBenchmark<std::map<uint64_t, char[256]>>(state, 500000); in BM_std_map_256()
132 static void BM_std_map_512(benchmark::State& state) { in BM_std_map_512() argument
133 MapBenchmark<std::map<uint64_t, char[512]>>(state, 500000); in BM_std_map_512()
137 static void BM_std_unordered_map_8(benchmark::State& state) { in BM_std_unordered_map_8() argument
138 MapBenchmark<std::unordered_map<uint64_t, char[8]>>(state, 1000000); in BM_std_unordered_map_8()
142 static void BM_std_unordered_map_16(benchmark::State& state) { in BM_std_unordered_map_16() argument
143 MapBenchmark<std::unordered_map<uint64_t, char[16]>>(state, 1000000); in BM_std_unordered_map_16()
147 static void BM_std_unordered_map_32(benchmark::State& state) { in BM_std_unordered_map_32() argument
148 MapBenchmark<std::unordered_map<uint64_t, char[32]>>(state, 1000000); in BM_std_unordered_map_32()
152 static void BM_std_unordered_map_64(benchmark::State& state) { in BM_std_unordered_map_64() argument
153 MapBenchmark<std::unordered_map<uint64_t, char[64]>>(state, 1000000); in BM_std_unordered_map_64()
157 static void BM_std_unordered_map_96(benchmark::State& state) { in BM_std_unordered_map_96() argument
158 MapBenchmark<std::unordered_map<uint64_t, char[96]>>(state, 1000000); in BM_std_unordered_map_96()
162 static void BM_std_unordered_map_128(benchmark::State& state) { in BM_std_unordered_map_128() argument
163 MapBenchmark<std::unordered_map<uint64_t, char[128]>>(state, 500000); in BM_std_unordered_map_128()
167 static void BM_std_unordered_map_256(benchmark::State& state) { in BM_std_unordered_map_256() argument
168 MapBenchmark<std::unordered_map<uint64_t, char[256]>>(state, 500000); in BM_std_unordered_map_256()
172 static void BM_std_unordered_map_512(benchmark::State& state) { in BM_std_unordered_map_512() argument
173 MapBenchmark<std::unordered_map<uint64_t, char[512]>>(state, 500000); in BM_std_unordered_map_512()