Home | History | Annotate | Download | only in benchmarks

Lines Matching refs:benchmark

6 #include "benchmark/benchmark.h"
12 void BM_ConstructIterIter(benchmark::State& st, Container, GenInputs gen) {
16 benchmark::DoNotOptimize(&in);
19 benchmark::DoNotOptimize(c.data());
24 void BM_InsertValue(benchmark::State& st, Container c, GenInputs gen) {
30 benchmark::DoNotOptimize(&(*c.insert(*it).first));
32 benchmark::ClobberMemory();
37 void BM_InsertValueRehash(benchmark::State& st, Container c, GenInputs gen) {
44 benchmark::DoNotOptimize(&(*c.insert(*it).first));
46 benchmark::ClobberMemory();
52 void BM_InsertDuplicate(benchmark::State& st, Container c, GenInputs gen) {
56 benchmark::DoNotOptimize(&c);
57 benchmark::DoNotOptimize(&in);
60 benchmark::DoNotOptimize(&(*c.insert(*it).first));
62 benchmark::ClobberMemory();
68 void BM_EmplaceDuplicate(benchmark::State& st, Container c, GenInputs gen) {
72 benchmark::DoNotOptimize(&c);
73 benchmark::DoNotOptimize(&in);
76 benchmark::DoNotOptimize(&(*c.emplace(*it).first));
78 benchmark::ClobberMemory();
83 static void BM_Find(benchmark::State& st, Container c, GenInputs gen) {
86 benchmark::DoNotOptimize(&(*c.begin()));
90 benchmark::DoNotOptimize(&(*c.find(*it)));
92 benchmark::ClobberMemory();
97 static void BM_FindRehash(benchmark::State& st, Container c, GenInputs gen) {
101 benchmark::DoNotOptimize(&(*c.begin()));
105 benchmark::DoNotOptimize(&(*c.find(*it)));
107 benchmark::ClobberMemory();