diff options
Diffstat (limited to 'nlnet/task5/performance/start.sh')
-rwxr-xr-x | nlnet/task5/performance/start.sh | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/nlnet/task5/performance/start.sh b/nlnet/task5/performance/start.sh index e2ae44a..9ae2ada 100755 --- a/nlnet/task5/performance/start.sh +++ b/nlnet/task5/performance/start.sh @@ -26,7 +26,7 @@ export LD_LIBRARY_PATH=/usr/local/lib prepare_and_run () { taler-unified-setup.sh \ - -Wemtns \ + -Wwemtns \ -c /exchange/src/benchmark/benchmark-cs.conf \ -u exchange-account-2 &> /check_ready.txt & # Wait that the prep. went through. @@ -47,18 +47,7 @@ prepare_and_run () { echo FAIL exit 1 fi - NEXUS_PID=$(cat /libeufin-nexus.pid) - SANDBOX_PID=$(cat /libeufin-sandbox.pid) - - if test -z $NEXUS_PID; then - echo Could not find Nexus PID, failing. - exit 1 - fi - - if test -z $SANDBOX_PID; then - echo Could not find Sandbox PID, failing. - exit 1 - fi + echo Running the benchmark.. taler-exchange-benchmark \ -c /exchange/src/benchmark/benchmark-cs.conf.edited \ @@ -71,6 +60,19 @@ prepare_and_run () { export -f prepare_and_run /usr/bin/time -o /benchmark-wall-clock-time.txt --format=%e bash -c "prepare_and_run" +NEXUS_PID=$(cat /libeufin-nexus.pid) +SANDBOX_PID=$(cat /libeufin-sandbox.pid) + +if test -z $NEXUS_PID; then + echo Could not find Nexus PID, failing. + exit 1 +fi + +if test -z $SANDBOX_PID; then + echo Could not find Sandbox PID, failing. + exit 1 +fi + # Convert the wall clock time to milliseconds, to make # it compatible with the format as GREPped through Postgres logs. BENCHMARK_TOT_MS=$(awk -F. '{t=($1 * 1000 + $2 * 10)} END {print t}' /benchmark-wall-clock-time.txt) |