Add items/bytes processed to SetInsert benchmark test

This commit is contained in:
Dominic Hamon 2014-01-07 14:31:14 -08:00
parent 2d557f1c75
commit 3a01f8320b

View File

@ -79,6 +79,8 @@ static void BM_SetInsert(benchmark::State& state) {
for (int j = 0; j < state.range_y(); ++j)
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);