summaryrefslogtreecommitdiff
path: root/src/benchmark/taler-bank-benchmark.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-12-20 12:32:42 +0100
committerChristian Grothoff <christian@grothoff.org>2022-12-20 12:32:42 +0100
commitb0f746cf3ea08961a0494451b0aa6996b6830526 (patch)
tree01a8e27f3cf545d17d289692a1e485fe596f475a /src/benchmark/taler-bank-benchmark.c
parent4cf0d8580f1cb84a962b23f88b0ad7dc0fa37480 (diff)
downloadexchange-b0f746cf3ea08961a0494451b0aa6996b6830526.tar.gz
exchange-b0f746cf3ea08961a0494451b0aa6996b6830526.tar.bz2
exchange-b0f746cf3ea08961a0494451b0aa6996b6830526.zip
-enable batch testing and no DB rest in bank benchmark
Diffstat (limited to 'src/benchmark/taler-bank-benchmark.c')
-rw-r--r--src/benchmark/taler-bank-benchmark.c10
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",