mirror of
https://github.com/google/benchmark.git
synced 2025-02-26 11:20:28 +08:00
Add items/bytes processed to SetInsert benchmark test
This commit is contained in:
parent
2d557f1c75
commit
3a01f8320b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user