gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-grid5k] 11/12: add num deposits


From: gnunet
Subject: [taler-grid5k] 11/12: add num deposits
Date: Fri, 10 Jun 2022 11:54:42 +0200

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository grid5k.

commit 596f1acb0dc294ac4cdb61361c74825182b81fd9
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Fri Jun 10 11:53:29 2022 +0200

    add num deposits
---
 experiment/env                  | 9 +++++++++
 experiment/scripts/benchmark.sh | 4 +++-
 2 files changed, 12 insertions(+), 1 deletion(-)

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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]