summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoss Marco <bossm8@bfh.ch>2022-06-10 11:53:29 +0200
committerBoss Marco <bossm8@bfh.ch>2022-06-10 11:53:29 +0200
commit596f1acb0dc294ac4cdb61361c74825182b81fd9 (patch)
treec4bd22de6295c949b78df8484891bdc5adf38db5
parent2e09a8a11f1a2528f5839bcc37a630a6ca14f77d (diff)
downloadgrid5k-node-setup.tar.gz
grid5k-node-setup.tar.bz2
grid5k-node-setup.zip
add num depositsnode-setup
-rw-r--r--experiment/env9
-rwxr-xr-xexperiment/scripts/benchmark.sh4
2 files changed, 12 insertions, 1 deletions
diff --git a/experiment/env b/experiment/env
index b05e9be..fdf256e 100644
--- a/experiment/env
+++ b/experiment/env
@@ -118,6 +118,15 @@ TALER_WALLET_INSECURE_TRUST_EXCHANGE=1
# Do batch withdrawals of a reserve rather than single coins
TALER_WALLET_BATCH_WITHDRAWAL=1
+# Number of deposits per wallet iteration (withdraw)
+# Amount to withdraw is caluclated as follows:
+# (num_deposits + 1) * 10
+# This must also be configured in WITHDRAW ONLY
+NUM_DEPOSITS=20
+# If the number of deposits should be selected randomly
+# from 1 to NUM_DEPOSITS
+RAND_DEPOSITS=true
+
# Initial number of exchange processes to run.
# default = 10
# Start another bunch with `taler-perf start exchange <N>`
diff --git a/experiment/scripts/benchmark.sh b/experiment/scripts/benchmark.sh
index f5a2f5a..1861aeb 100755
--- a/experiment/scripts/benchmark.sh
+++ b/experiment/scripts/benchmark.sh
@@ -27,7 +27,9 @@ function start_wallet_bench() {
LOG_LEVEL=INFO
fi
- NUM_DEPOSITS=$(($RANDOM % 21))
+ if [[ "${RAND_DEPOSITS}" == "true" ]]; then
+ NUM_DEPOSITS=$(($RANDOM % ${NUM_DEPOSITS} + 1))
+ fi
if [[ "${WALLET_BENCHMARK}" == bench3 ]] && \
[[ "${WALLET_MERCHANT_SELECTION}" =~ zipf|rand ]]; then