diff options
-rw-r--r-- | experiment/env | 9 | ||||
-rwxr-xr-x | experiment/scripts/benchmark.sh | 4 |
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 |