• Home
  • Raw
  • Download

Lines Matching full:benchmark

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