HomePhabricator

bench: update nanobench add -min_time

Description

bench: update nanobench add -min_time

Summary:

This PR updates the nanobench with the latest release from upstream, v4.3.6. It fixes the missing performance counters.

Due to discussions on #22999 I have done some work that should make the benchmark results more reliable. It introduces a new flag -min_time that allows to run a benchmark for much longer then the default. When results are unreliable, choosing a large timeframe here should usually get repeatable results even when frequency scaling cannot be disabled. The default is now 10ms. For this to work I have changed the AddrManGood and EvictionProtection benchmarks so they work with any number of iterations.

Backport of core#23025.

Depends on D12902.

Test Plan:

ninja bench-bitcoin
./src/bench/bitcoin-bench -?

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D12903

Details

Provenance
Martin Ankerl <martin.ankerl@gmail.com>Authored on Sep 17 2021, 09:58
FabienCommitted on Dec 19 2022, 08:08
FabienPushed on Dec 19 2022, 08:08
Reviewer
Restricted Project
Differential Revision
D12903: bench: update nanobench add -min_time
Parents
rABCcaa00e346bd1: Drop boost/preprocessor dependencies
Branches
Unknown
Tags
Unknown