From b0f746cf3ea08961a0494451b0aa6996b6830526 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 20 Dec 2022 12:32:42 +0100 Subject: -enable batch testing and no DB rest in bank benchmark --- src/benchmark/taler-bank-benchmark.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/benchmark') diff --git a/src/benchmark/taler-bank-benchmark.c b/src/benchmark/taler-bank-benchmark.c index 7c2e51f15..b17bb9411 100644 --- a/src/benchmark/taler-bank-benchmark.c +++ b/src/benchmark/taler-bank-benchmark.c @@ -167,6 +167,11 @@ static enum BenchmarkMode mode; */ static int linger; +/** + * Do not initialize or reset the database. + */ +static int incremental; + /** * Configuration. */ @@ -550,6 +555,7 @@ parallel_benchmark (void) return GNUNET_SYSERR; } + if (0 == incremental) { struct GNUNET_OS_Process *dbinit; @@ -769,6 +775,10 @@ main (int argc, "linger", "linger around until key press", &linger), + GNUNET_GETOPT_option_flag ('i', + "incremental", + "skip initializing and resetting the database", + &incremental), GNUNET_GETOPT_option_string ('l', "logfile", "LF", -- cgit v1.2.3