aboutsummaryrefslogtreecommitdiff
path: root/src/bench/bench.h
diff options
context:
space:
mode:
authorlaanwj <126646+laanwj@users.noreply.github.com>2022-05-11 16:28:10 +0200
committerlaanwj <126646+laanwj@users.noreply.github.com>2022-05-17 11:32:25 +0200
commit652b54e53220fedf2c342e428617bcbd2022964d (patch)
tree47e611ad177579f61a0bc64206e8d4daa902f8dc /src/bench/bench.h
parentb8ded26ef3d7c58a938050659e4c50d850628dff (diff)
downloadbitcoin-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.h1
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;