Skip to content
Snippets Groups Projects
Commit cd2f4838 authored by Sergey Kaplun's avatar Sergey Kaplun Committed by Sergey Ostanevich
Browse files

perf: provide items_per_second metric in bps_tree

This patch considers the number of iterations as the number of items
proceeded by the corresponding benchmark, so it may be used for the
`items_per_second` counter.

NO_DOC=perf test
NO_CHANGELOG=perf test
NO_TEST=perf test
parent ccb7a649
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,7 @@
type##_##func##_size_##size(benchmark::State &state) \
{ \
test_##func<type>(state, size); \
state.SetItemsProcessed(size); \
} \
BENCHMARK(type##_##func##_size_##size)
......@@ -128,6 +129,7 @@
type##_##func##_height_##height(benchmark::State &state) \
{ \
test_##func<type>(state, type::height_##height##_max_size); \
state.SetItemsProcessed(type::height_##height##_max_size); \
} \
BENCHMARK(type##_##func##_height_##height)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment