diff options
author | laanwj <126646+laanwj@users.noreply.github.com> | 2022-05-11 16:28:10 +0200 |
---|---|---|
committer | laanwj <126646+laanwj@users.noreply.github.com> | 2022-05-17 11:32:25 +0200 |
commit | 652b54e53220fedf2c342e428617bcbd2022964d (patch) | |
tree | 47e611ad177579f61a0bc64206e8d4daa902f8dc /src/bench/bench.h | |
parent | b8ded26ef3d7c58a938050659e4c50d850628dff (diff) | |
download | bitcoin-652b54e53220fedf2c342e428617bcbd2022964d.tar.xz |
bench: Add `--sanity-check` flag, use it in `make check`
The benchmarks are run as part of `make check` for a minimum sanity
check. The actual results are being ignored. So only run them for one
iteration.
This makes the `bench_bitcoin` part take 2m00 instead of 5m20 here.
Which is still too long (imo), but this needs to be solved in the
`WalletLoading*` benchmarks which take that long per iteration.
Diffstat (limited to 'src/bench/bench.h')
-rw-r--r-- | src/bench/bench.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bench/bench.h b/src/bench/bench.h index 6634138beb..17535e4e81 100644 --- a/src/bench/bench.h +++ b/src/bench/bench.h @@ -43,6 +43,7 @@ typedef std::function<void(Bench&)> BenchFunction; struct Args { bool is_list_only; + bool sanity_check; std::chrono::milliseconds min_time; std::vector<double> asymptote; fs::path output_csv; |