diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-12-20 12:32:42 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-12-20 12:32:42 +0100 |
commit | b0f746cf3ea08961a0494451b0aa6996b6830526 (patch) | |
tree | 01a8e27f3cf545d17d289692a1e485fe596f475a /src/benchmark | |
parent | 4cf0d8580f1cb84a962b23f88b0ad7dc0fa37480 (diff) | |
download | exchange-b0f746cf3ea08961a0494451b0aa6996b6830526.tar.xz |
-enable batch testing and no DB rest in bank benchmark
Diffstat (limited to 'src/benchmark')
-rw-r--r-- | src/benchmark/taler-bank-benchmark.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -168,6 +168,11 @@ static enum BenchmarkMode mode; static int linger; /** + * Do not initialize or reset the database. + */ +static int incremental; + +/** * Configuration. */ static struct GNUNET_CONFIGURATION_Handle *cfg; @@ -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", |