Skip to content

Commit d118d35

Browse files
Buristanlocker
authored andcommitted
perf: provide items_per_second metric
This patch considers the number of allocated objects as the number of items proceeded by the corresponding benchmark, so it may be used for the `items_per_second` counter.
1 parent 057bbdc commit d118d35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

perf/small.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ small_workload_benchmark(benchmark::State& state)
251251
free_object(v);
252252
}
253253

254+
state.SetItemsProcessed(prealloc_objcount);
255+
254256
finish:
255257
free_objects(v);
256258
if (! small_is_unused())

0 commit comments

Comments
 (0)