From eb534d8410f6a4ab63c8fef3c23868c118180d09 Mon Sep 17 00:00:00 2001 From: Reiner Jung <reiner.jung@email.uni-kiel.de> Date: Thu, 11 Aug 2022 21:06:36 +0200 Subject: [PATCH] Fixed setups --- frameworks/Kieker/java/benchmark.sh | 2 ++ frameworks/OpenTelemetry/benchmark.sh | 1 + frameworks/common-functions.sh | 14 ++++++++++++++ frameworks/inspectIT/benchmark.sh | 3 +-- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/frameworks/Kieker/java/benchmark.sh b/frameworks/Kieker/java/benchmark.sh index aff8abb..d83631c 100755 --- a/frameworks/Kieker/java/benchmark.sh +++ b/frameworks/Kieker/java/benchmark.sh @@ -92,6 +92,8 @@ checkExecutable moobench "${MOOBENCH_BIN}" checkExecutable receiver "${RECEIVER_BIN}" checkFile aop-file "${AOP}" +showParameter + 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} ` info "Experiment will take circa ${TIME} seconds." diff --git a/frameworks/OpenTelemetry/benchmark.sh b/frameworks/OpenTelemetry/benchmark.sh index 9539f87..d40550c 100755 --- a/frameworks/OpenTelemetry/benchmark.sh +++ b/frameworks/OpenTelemetry/benchmark.sh @@ -63,6 +63,7 @@ checkExecutable java "${JAVA_BIN}" checkFile R-script "${RSCRIPT_PATH}" checkFile opentelemetry-agent "${AGENT_JAR}" +showParameter 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} ` info "Experiment will take circa ${TIME} seconds." diff --git a/frameworks/common-functions.sh b/frameworks/common-functions.sh index a021fe8..c87afe7 100755 --- a/frameworks/common-functions.sh +++ b/frameworks/common-functions.sh @@ -208,6 +208,20 @@ function checkDirectory() { fi } +function showParameter() { + info "FRAMEWORK_NAME ${FRAMEWORK_NAME}" + info "RESULTS_DIR ${RESULTS_DIR}" + info "RAWFN ${RAWFN}" + info "JAVA_BIN ${JAVA_BIN}" + info "SLEEP_TIME ${SLEEP_TIME}" + info "NUM_OF_LOOPS ${NUM_OF_LOOPS}" + info "THREADS ${THREADS}" + info "RECURSION_DEPTH ${RECURSION_DEPTH}" + info "TOTAL_NUM_OF_CALLS ${TOTAL_NUM_OF_CALLS}" + info "METHOD_TIME ${METHOD_TIME}" + info "DEBUG ${DEBUG}" +} + FRAMEWORK_NAME=$(basename -- "${BASE_DIR}") RESULTS_DIR="${BASE_DIR}/results-${FRAMEWORK_NAME}" RAWFN="${RESULTS_DIR}/raw" diff --git a/frameworks/inspectIT/benchmark.sh b/frameworks/inspectIT/benchmark.sh index 385766f..3a668ef 100755 --- a/frameworks/inspectIT/benchmark.sh +++ b/frameworks/inspectIT/benchmark.sh @@ -62,6 +62,7 @@ checkDirectory results-directory "${RESULTS_DIR}" recreate checkExecutable java "${JAVA_BIN}" checkFile R-script "${RSCRIPT_PATH}" +showParameter 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} ` info "Experiment will take circa ${TIME} seconds." @@ -77,8 +78,6 @@ 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/" -info "RESULTS_DIR: ${RESULTS_DIR}" -info "RAWFN: $RAWFN" writeConfiguration # -- GitLab