Lines Matching refs:benchmark

16 #include "benchmark/benchmark.h"
21 void BM_ConstructSize(benchmark::State& st, Container) {
30 void BM_ConstructSizeValue(benchmark::State& st, Container, typename Container::value_type const& val) {
39 void BM_ConstructIterIter(benchmark::State& st, Container, GenInputs gen) {
43 benchmark::DoNotOptimize(&in);
51 void BM_InsertValue(benchmark::State& st, Container c, GenInputs gen) {
57 benchmark::DoNotOptimize(&(*c.insert(*it).first));
59 benchmark::ClobberMemory();
64 void BM_InsertValueRehash(benchmark::State& st, Container c, GenInputs gen) {
71 benchmark::DoNotOptimize(&(*c.insert(*it).first));
73 benchmark::ClobberMemory();
79 void BM_InsertDuplicate(benchmark::State& st, Container c, GenInputs gen) {
83 benchmark::DoNotOptimize(&c);
84 benchmark::DoNotOptimize(&in);
87 benchmark::DoNotOptimize(&(*c.insert(*it).first));
89 benchmark::ClobberMemory();
95 void BM_EmplaceDuplicate(benchmark::State& st, Container c, GenInputs gen) {
99 benchmark::DoNotOptimize(&c);
100 benchmark::DoNotOptimize(&in);
103 benchmark::DoNotOptimize(&(*c.emplace(*it).first));
105 benchmark::ClobberMemory();
110 static void BM_Find(benchmark::State& st, Container c, GenInputs gen) {
113 benchmark::DoNotOptimize(&(*c.begin()));
117 benchmark::DoNotOptimize(&(*c.find(*it)));
119 benchmark::ClobberMemory();
124 static void BM_FindRehash(benchmark::State& st, Container c, GenInputs gen) {
128 benchmark::DoNotOptimize(&(*c.begin()));
132 benchmark::DoNotOptimize(&(*c.find(*it)));
134 benchmark::ClobberMemory();
139 static void BM_Rehash(benchmark::State& st, Container c, GenInputs gen) {
143 benchmark::DoNotOptimize(c);
148 benchmark::ClobberMemory();