From 2a8fbccc78d19093cec7c96d4d8284e65860e1b7 Mon Sep 17 00:00:00 2001 From: Reiner Jung <reiner.jung@email.uni-kiel.de> Date: Wed, 22 Jun 2022 15:58:24 +0200 Subject: [PATCH] Updated formatting of variables. --- bin/2012-msept/run-benchmark-cycle-async.sh | 2 +- bin/2012-msept/run-benchmark-cycle-sync.sh | 2 +- bin/2012-msept/run-benchmark-recursive-jmx.sh | 2 +- bin/2012-msept/run-benchmark-recursive-linear.sh | 2 +- bin/2012-msept/run-benchmark-recursive.sh | 2 +- .../benchmark-kieker-days-ffi-remote.sh | 2 +- bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi.sh | 2 +- bin/2013-kieker-days-ffi/benchmark-kieker-days-kieker.sh | 2 +- bin/2013-kieker-days/benchmark-kieker-days-ffi-remote.sh | 2 +- bin/2013-kieker-days/benchmark-kieker-days-ffi.sh | 2 +- bin/2013-kieker-days/benchmark-kieker-days-kieker-remote.sh | 2 +- bin/2013-kieker-days/benchmark-kieker-days-kieker.sh | 2 +- bin/2014-icpe/benchmark-disk-writer-slow.sh | 2 +- bin/2014-icpe/benchmark-disk-writer.sh | 2 +- bin/2014-icpe/benchmark-tcp-ffi.sh | 2 +- frameworks/Kieker/benchmark.sh | 2 +- frameworks/Kieker/runExponentialSizes.sh | 6 +++--- frameworks/OpenTelemetry/benchmark.sh | 2 +- frameworks/OpenTelemetry/runExponentialSizes.sh | 6 +++--- frameworks/SPASSmeter/benchmark-tcp.sh | 2 +- frameworks/common-functions.sh | 2 +- frameworks/inspectIT/benchmark.sh | 4 ++-- frameworks/inspectIT/runExponentialSizes.sh | 6 +++--- frameworks/runR.sh | 2 +- .../getConfidenceIntervalTable.sh | 6 +++--- 25 files changed, 34 insertions(+), 34 deletions(-) diff --git a/bin/2012-msept/run-benchmark-cycle-async.sh b/bin/2012-msept/run-benchmark-cycle-async.sh index 549ca4b..3f1790a 100644 --- a/bin/2012-msept/run-benchmark-cycle-async.sh +++ b/bin/2012-msept/run-benchmark-cycle-async.sh @@ -9,7 +9,7 @@ if [ ! -z "$(uname | grep -i WIN)" ]; then CPSEPCHAR=";"; fi # echo "Classpath separator: '${CPSEPCHAR}'" RESULTS_DIR="${BASEDIR}tmp/results-benchmark-recursive/" -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (${SUDOCMD} rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2012-msept/run-benchmark-cycle-sync.sh b/bin/2012-msept/run-benchmark-cycle-sync.sh index 2a153a8..8ff6931 100644 --- a/bin/2012-msept/run-benchmark-cycle-sync.sh +++ b/bin/2012-msept/run-benchmark-cycle-sync.sh @@ -9,7 +9,7 @@ if [ ! -z "$(uname | grep -i WIN)" ]; then CPSEPCHAR=";"; fi # echo "Classpath separator: '${CPSEPCHAR}'" RESULTS_DIR="${BASEDIR}tmp/results-benchmark-recursive/" -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (${SUDOCMD} rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2012-msept/run-benchmark-recursive-jmx.sh b/bin/2012-msept/run-benchmark-recursive-jmx.sh index a082cfb..bef23d5 100644 --- a/bin/2012-msept/run-benchmark-recursive-jmx.sh +++ b/bin/2012-msept/run-benchmark-recursive-jmx.sh @@ -24,7 +24,7 @@ if [ ! -z "$(uname | grep -i WIN)" ]; then CPSEPCHAR=";"; fi # echo "Classpath separator: '${CPSEPCHAR}'" RESULTS_DIR="${BASEDIR}tmp/results-benchmark-recursive/" -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (${SUDOCMD} rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2012-msept/run-benchmark-recursive-linear.sh b/bin/2012-msept/run-benchmark-recursive-linear.sh index 0a617de..bdd5b05 100644 --- a/bin/2012-msept/run-benchmark-recursive-linear.sh +++ b/bin/2012-msept/run-benchmark-recursive-linear.sh @@ -24,7 +24,7 @@ if [ ! -z "$(uname | grep -i WIN)" ]; then CPSEPCHAR=";"; fi # echo "Classpath separator: '${CPSEPCHAR}'" RESULTS_DIR="${BASEDIR}tmp/results-benchmark-recursive-linear/" -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (${SUDOCMD} rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2012-msept/run-benchmark-recursive.sh b/bin/2012-msept/run-benchmark-recursive.sh index efc13d6..c48f6fd 100644 --- a/bin/2012-msept/run-benchmark-recursive.sh +++ b/bin/2012-msept/run-benchmark-recursive.sh @@ -24,7 +24,7 @@ if [ ! -z "$(uname | grep -i WIN)" ]; then CPSEPCHAR=";"; fi # echo "Classpath separator: '${CPSEPCHAR}'" RESULTS_DIR="${BASEDIR}tmp/results-benchmark-recursive/" -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (${SUDOCMD} rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi-remote.sh b/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi-remote.sh index 31dd2d6..ce74a0f 100644 --- a/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi-remote.sh +++ b/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi-remote.sh @@ -22,7 +22,7 @@ MOREPARAMS="--quickstart" TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi.sh b/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi.sh index 7214ff8..de179e7 100644 --- a/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi.sh +++ b/bin/2013-kieker-days-ffi/benchmark-kieker-days-ffi.sh @@ -19,7 +19,7 @@ MOREPARAMS="" TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2013-kieker-days-ffi/benchmark-kieker-days-kieker.sh b/bin/2013-kieker-days-ffi/benchmark-kieker-days-kieker.sh index aa41094..fe9e142 100644 --- a/bin/2013-kieker-days-ffi/benchmark-kieker-days-kieker.sh +++ b/bin/2013-kieker-days-ffi/benchmark-kieker-days-kieker.sh @@ -19,7 +19,7 @@ MOREPARAMS="--quickstart" TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2013-kieker-days/benchmark-kieker-days-ffi-remote.sh b/bin/2013-kieker-days/benchmark-kieker-days-ffi-remote.sh index 41dc559..2713e7b 100644 --- a/bin/2013-kieker-days/benchmark-kieker-days-ffi-remote.sh +++ b/bin/2013-kieker-days/benchmark-kieker-days-ffi-remote.sh @@ -22,7 +22,7 @@ MOREPARAMS="" TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2013-kieker-days/benchmark-kieker-days-ffi.sh b/bin/2013-kieker-days/benchmark-kieker-days-ffi.sh index 7214ff8..de179e7 100644 --- a/bin/2013-kieker-days/benchmark-kieker-days-ffi.sh +++ b/bin/2013-kieker-days/benchmark-kieker-days-ffi.sh @@ -19,7 +19,7 @@ MOREPARAMS="" TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2013-kieker-days/benchmark-kieker-days-kieker-remote.sh b/bin/2013-kieker-days/benchmark-kieker-days-kieker-remote.sh index 7285831..805739d 100644 --- a/bin/2013-kieker-days/benchmark-kieker-days-kieker-remote.sh +++ b/bin/2013-kieker-days/benchmark-kieker-days-kieker-remote.sh @@ -22,7 +22,7 @@ MOREPARAMS="" TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2013-kieker-days/benchmark-kieker-days-kieker.sh b/bin/2013-kieker-days/benchmark-kieker-days-kieker.sh index aa41094..fe9e142 100644 --- a/bin/2013-kieker-days/benchmark-kieker-days-kieker.sh +++ b/bin/2013-kieker-days/benchmark-kieker-days-kieker.sh @@ -19,7 +19,7 @@ MOREPARAMS="--quickstart" TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2014-icpe/benchmark-disk-writer-slow.sh b/bin/2014-icpe/benchmark-disk-writer-slow.sh index 775b352..07671a1 100644 --- a/bin/2014-icpe/benchmark-disk-writer-slow.sh +++ b/bin/2014-icpe/benchmark-disk-writer-slow.sh @@ -19,7 +19,7 @@ MORE_PARAMS="" TIME=`expr ${METHOD_TIME} \* ${TOTAL_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSION_DEPTH} + 50 \* ${TOTAL_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}/) && mkdir ${RESULTS_DIR}/ mkdir ${RESULTS_DIR}/stat/ diff --git a/bin/2014-icpe/benchmark-disk-writer.sh b/bin/2014-icpe/benchmark-disk-writer.sh index 9c89823..6127a94 100644 --- a/bin/2014-icpe/benchmark-disk-writer.sh +++ b/bin/2014-icpe/benchmark-disk-writer.sh @@ -19,7 +19,7 @@ MOREPARAMS="" TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}) && mkdir ${RESULTS_DIR} mkdir ${RESULTS_DIR}stat/ diff --git a/bin/2014-icpe/benchmark-tcp-ffi.sh b/bin/2014-icpe/benchmark-tcp-ffi.sh index 11bb291..8621a81 100644 --- a/bin/2014-icpe/benchmark-tcp-ffi.sh +++ b/bin/2014-icpe/benchmark-tcp-ffi.sh @@ -19,7 +19,7 @@ MORE_PARAMS="" TIME=`expr ${METHOD_TIME} \* ${TOTAL_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSION_DEPTH} + 50 \* ${TOTAL_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf "${RESULTS_DIR}") && mkdir "${RESULTS_DIR}" mkdir "${RESULTS_DIR}/stat" diff --git a/frameworks/Kieker/benchmark.sh b/frameworks/Kieker/benchmark.sh index c90f325..1aefa62 100644 --- a/frameworks/Kieker/benchmark.sh +++ b/frameworks/Kieker/benchmark.sh @@ -65,7 +65,7 @@ information "----------------------------------" TIME=`expr ${METHOD_TIME} \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_OF_LOOPS} \* ${RECURSION_DEPTH} + 50 \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} ` information "Experiment will take circa ${TIME} seconds." -information "Removing and recreating '$RESULTS_DIR'" +information "Removing and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}/*csv) && mkdir -p ${RESULTS_DIR} # Clear kieker.log and initialize logging diff --git a/frameworks/Kieker/runExponentialSizes.sh b/frameworks/Kieker/runExponentialSizes.sh index f08d603..c7732f7 100644 --- a/frameworks/Kieker/runExponentialSizes.sh +++ b/frameworks/Kieker/runExponentialSizes.sh @@ -1,12 +1,12 @@ #!/bin/bash RESULTS_DIR=results-Kieker/ -mkdir -p $RESULTS_DIR +mkdir -p ${RESULTS_DIR} for depth in 2 4 8 16 32 64 128 do export RECURSION_DEPTH=$depth echo "Running $depth" - ./benchmark.sh &> $RESULTS_DIR/$depth.txt - mv $RESULTS_DIR/results.zip $RESULTS_DIR/results-$RECURSION_DEPTH.zip + ./benchmark.sh &> ${RESULTS_DIR}/$depth.txt + mv ${RESULTS_DIR}/results.zip ${RESULTS_DIR}/results-$RECURSION_DEPTH.zip done diff --git a/frameworks/OpenTelemetry/benchmark.sh b/frameworks/OpenTelemetry/benchmark.sh index c3ae59d..0ecd2ee 100644 --- a/frameworks/OpenTelemetry/benchmark.sh +++ b/frameworks/OpenTelemetry/benchmark.sh @@ -131,7 +131,7 @@ MORE_PARAMS="--application moobench.application.MonitoredClassSimple ${MOREPARAM TIME=`expr ${METHOD_TIME} \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_OF_LOOPS} \* ${RECURSION_DEPTH} + 50 \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Cleaning and recreating '$RESULTS_DIR'" +echo "Cleaning and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}/**csv) && mkdir -p ${RESULTS_DIR} #mkdir ${RESULTS_DIR}stat/ diff --git a/frameworks/OpenTelemetry/runExponentialSizes.sh b/frameworks/OpenTelemetry/runExponentialSizes.sh index 904e77a..90a6bee 100644 --- a/frameworks/OpenTelemetry/runExponentialSizes.sh +++ b/frameworks/OpenTelemetry/runExponentialSizes.sh @@ -1,12 +1,12 @@ #!/bin/bash RESULTS_DIR=results-OpenTelemetry/ -mkdir -p $RESULTS_DIR +mkdir -p ${RESULTS_DIR} for depth in 2 4 8 16 32 64 128 do export RECURSION_DEPTH=$depth echo "Running $depth" - ./benchmark.sh &> $RESULTS_DIR/$depth.txt - mv $RESULTS_DIR/results.zip $RESULTS_DIR/results-$RECURSION_DEPTH.zip + ./benchmark.sh &> ${RESULTS_DIR}/$depth.txt + mv ${RESULTS_DIR}/results.zip ${RESULTS_DIR}/results-$RECURSION_DEPTH.zip done diff --git a/frameworks/SPASSmeter/benchmark-tcp.sh b/frameworks/SPASSmeter/benchmark-tcp.sh index 47b99bf..9169cd8 100644 --- a/frameworks/SPASSmeter/benchmark-tcp.sh +++ b/frameworks/SPASSmeter/benchmark-tcp.sh @@ -20,7 +20,7 @@ MORE_PARAMS="--application mooBench.monitoredApplication.MonitoredClassSimple ${ TIME=`expr ${METHOD_TIME} \* ${TOTAL_CALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTAL_CALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf ${RESULTS_DIR}/) && mkdir ${RESULTS_DIR}/ #mkdir ${RESULTS_DIR}/stat/ diff --git a/frameworks/common-functions.sh b/frameworks/common-functions.sh index f0796a6..a7fbb6b 100644 --- a/frameworks/common-functions.sh +++ b/frameworks/common-functions.sh @@ -131,7 +131,7 @@ function writeConfiguration() { function printIntermediaryResults { for ((index=0;index<${#TITLE[@]};index+=1)); do echo -n "Intermediary results "${TITLE[$index]}" " - cat $RESULTS_DIR/raw-*-${RECURSION_DEPTH}-${index}.csv | awk -F';' '{print $2}' | getSum + cat ${RESULTS_DIR}/raw-*-${RECURSION_DEPTH}-${index}.csv | awk -F';' '{print $2}' | getSum done } diff --git a/frameworks/inspectIT/benchmark.sh b/frameworks/inspectIT/benchmark.sh index 65b860e..0ae1459 100644 --- a/frameworks/inspectIT/benchmark.sh +++ b/frameworks/inspectIT/benchmark.sh @@ -114,7 +114,7 @@ MORE_PARAMS="${MORE_PARAMS}" TIME=`expr ${METHOD_TIME} \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_OF_LOOPS} \* ${RECURSION_DEPTH} + 50 \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} ` echo "Experiment will take circa ${TIME} seconds." -echo "Removing and recreating '$RESULTS_DIR'" +echo "Removing and recreating '${RESULTS_DIR}'" (rm -rf "${RESULTS_DIR}/"**csv) && mkdir -p "${RESULTS_DIR}" # Clear inspectit.log and initialize logging @@ -133,7 +133,7 @@ JAVA_ARGS_INSPECTIT_NULLWRITER="${JAVA_ARGS_LTW} -Dinspectit.service-name=mooben JAVA_ARGS_INSPECTIT_ZIPKIN="${JAVA_ARGS_LTW} -Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.prometheus.enabled=false -Dinspectit.exporters.tracing.zipkin.url=http://127.0.0.1:9411/api/v2/spans -Dinspectit.config.file-based.path=${BASE_DIR}/config/zipkin/" JAVA_ARGS_INSPECTIT_PROMETHEUS="${JAVA_ARGS_LTW} -Dinspectit.service-name=moobench-inspectit -Dinspectit.exporters.metrics.zipkin.enabled=false -Dinspectit.exporters.metrics.prometheus.enabled=true -Dinspectit.config.file-based.path=${BASE_DIR}/config/prometheus/" -echo "RESULTS_DIR: $RESULTS_DIR" +echo "RESULTS_DIR: ${RESULTS_DIR}" echo "RAWFN: $RAWFN" writeConfiguration diff --git a/frameworks/inspectIT/runExponentialSizes.sh b/frameworks/inspectIT/runExponentialSizes.sh index d30fc2c..042113e 100644 --- a/frameworks/inspectIT/runExponentialSizes.sh +++ b/frameworks/inspectIT/runExponentialSizes.sh @@ -1,12 +1,12 @@ #!/bin/bash RESULTS_DIR=results-inspectIT/ -mkdir -p $RESULTS_DIR +mkdir -p ${RESULTS_DIR} for depth in 2 4 8 16 32 64 128 do export RECURSION_DEPTH=$depth echo "Running $depth" - ./benchmark.sh &> $RESULTS_DIR/$depth.txt - mv $RESULTS_DIR/results.zip $RESULTS_DIR/results-$RECURSION_DEPTH.zip + ./benchmark.sh &> ${RESULTS_DIR}/$depth.txt + mv ${RESULTS_DIR}/results.zip ${RESULTS_DIR}/results-$RECURSION_DEPTH.zip done diff --git a/frameworks/runR.sh b/frameworks/runR.sh index 46a1c04..f9ccaa7 100644 --- a/frameworks/runR.sh +++ b/frameworks/runR.sh @@ -16,7 +16,7 @@ source common-functions.sh source $1/labels.sh -echo "RESULTS_DIR: $RESULTS_DIR" +echo "RESULTS_DIR: ${RESULTS_DIR}" echo "Rawfn: $RAWFN" RSCRIPT_PATH=stats.csv.r diff --git a/tools/getConfidenceIntervalTable/getConfidenceIntervalTable.sh b/tools/getConfidenceIntervalTable/getConfidenceIntervalTable.sh index cbdef3b..f30ee5d 100644 --- a/tools/getConfidenceIntervalTable/getConfidenceIntervalTable.sh +++ b/tools/getConfidenceIntervalTable/getConfidenceIntervalTable.sh @@ -17,7 +17,7 @@ EOF function createVariantsString { local LABELS="" - local variants=$(ls $RESULTS_DIR | grep ".csv" | awk -F'[.-]' '{print $4}' | sort | uniq | sed '/^[[:space:]]*$/d') + local variants=$(ls ${RESULTS_DIR} | grep ".csv" | awk -F'[.-]' '{print $4}' | sort | uniq | sed '/^[[:space:]]*$/d') for variant in $variants do if [ -z "$LABELS" ] @@ -31,7 +31,7 @@ function createVariantsString { } function createLatexTable { - cat $RESULTS_DIR/results-text.txt | tail -n 8 > transposeMe.csv + cat ${RESULTS_DIR}/results-text.txt | tail -n 8 > transposeMe.csv awk ' { for (i=1; i<=NF; i++) { @@ -61,7 +61,7 @@ fi RESULTS_DIR=$1 -RAWFN=$RESULTS_DIR/raw +RAWFN=${RESULTS_DIR}/raw NUM_OF_LOOPS=10 RECURSION_DEPTH=10 TOTAL_NUM_OF_CALLS=2000000 -- GitLab