Remove benchMetrics
It's not all that interesting in the end
This commit is contained in:
16
Bench.cpp
16
Bench.cpp
@@ -358,21 +358,6 @@ void benchWorstCaseForRadixRangeRead() {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
void benchMetrics() {
|
|
||||||
ankerl::nanobench::Bench bench;
|
|
||||||
ConflictSet cs{0};
|
|
||||||
|
|
||||||
int count;
|
|
||||||
ConflictSet::MetricsV1 *m;
|
|
||||||
cs.getMetricsV1(&m, &count);
|
|
||||||
bench.batch(count);
|
|
||||||
bench.run("fetch metric", [&]() {
|
|
||||||
for (int i = 0; i < count; ++i) {
|
|
||||||
m[i].getValue();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
void benchCreateAndDestroy() {
|
void benchCreateAndDestroy() {
|
||||||
ankerl::nanobench::Bench bench;
|
ankerl::nanobench::Bench bench;
|
||||||
|
|
||||||
@@ -382,6 +367,5 @@ void benchCreateAndDestroy() {
|
|||||||
int main(void) {
|
int main(void) {
|
||||||
benchConflictSet();
|
benchConflictSet();
|
||||||
benchWorstCaseForRadixRangeRead();
|
benchWorstCaseForRadixRangeRead();
|
||||||
benchMetrics();
|
|
||||||
benchCreateAndDestroy();
|
benchCreateAndDestroy();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user