Commit 3a01f832 by Dominic Hamon

Add items/bytes processed to SetInsert benchmark test

parent 2d557f1c
...@@ -79,6 +79,8 @@ static void BM_SetInsert(benchmark::State& state) { ...@@ -79,6 +79,8 @@ static void BM_SetInsert(benchmark::State& state) {
for (int j = 0; j < state.range_y(); ++j) for (int j = 0; j < state.range_y(); ++j)
data.insert(rand()); data.insert(rand());
} }
state.SetItemsProcessed(state.iterations() * state.range_y());
state.SetBytesProcessed(state.iterations() * state.range_y() * sizeof(int));
} }
BENCHMARK(BM_SetInsert)->RangePair(1<<10,8<<10, 1,10); BENCHMARK(BM_SetInsert)->RangePair(1<<10,8<<10, 1,10);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment