Skip to content
Snippets Groups Projects
Commit 1f6ee547 authored by David Georg Reichelt's avatar David Georg Reichelt
Browse files

Make Kieker benchmark configurable by environment variables

parent 1888f815
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,9 @@ else ...@@ -15,6 +15,9 @@ else
echo "Missing configuration: ${BASE_DIR}/config" echo "Missing configuration: ${BASE_DIR}/config"
exit 1 exit 1
fi fi
source ../../common-functions.sh
if [ -f "${BASE_DIR}/common-functions" ] ; then if [ -f "${BASE_DIR}/common-functions" ] ; then
. ${BASE_DIR}/common-functions . ${BASE_DIR}/common-functions
else else
...@@ -190,10 +193,6 @@ function execute-benchmark-body() { ...@@ -190,10 +193,6 @@ function execute-benchmark-body() {
fi fi
} }
function getSum {
awk '{sum += $1; square += $1^2} END {print "Average: "sum/NR" Standard Deviation: "sqrt(square / NR - (sum/NR)^2)" Count: "NR}'
}
function printIntermediaryResults { function printIntermediaryResults {
for ((index=0;index<${#WRITER_CONFIG[@]};index+=1)); do for ((index=0;index<${#WRITER_CONFIG[@]};index+=1)); do
echo -n "Intermediary results "$TITLE[$index]" " echo -n "Intermediary results "$TITLE[$index]" "
...@@ -236,14 +235,6 @@ source("${RSCRIPT_PATH}") ...@@ -236,14 +235,6 @@ source("${RSCRIPT_PATH}")
EOF EOF
} }
## Clean up raw results
function cleanup-results() {
zip -jqr ${RESULTS_DIR}/results.zip ${RAWFN}*
rm -f ${RAWFN}*
[ -f ${DATA_DIR}/nohup.out ] && cp ${DATA_DIR}/nohup.out ${RESULTS_DIR}
[ -f ${DATA_DIR}/nohup.out ] && > ${DATA_DIR}/nohup.out
}
## Execute benchmark ## Execute benchmark
if [ "$MODE" == "execute" ] ; then if [ "$MODE" == "execute" ] ; then
if [ "$OPTION" == "" ] ; then if [ "$OPTION" == "" ] ; then
......
...@@ -16,11 +16,4 @@ BATCH_MODE="yes" ...@@ -16,11 +16,4 @@ BATCH_MODE="yes"
# in-jar locations # in-jar locations
AOP="file:"$(pwd)"/../src/META-INF/kieker.aop.xml" AOP="file:"$(pwd)"/../src/META-INF/kieker.aop.xml"
# execution parameter
SLEEP_TIME=30 ## 30
NUM_OF_LOOPS=10 ## 10
RECURSION_DEPTH=10 ## 10
TOTAL_NUM_OF_CALLS=2000000 ## 2 000 000
METHOD_TIME=0 #00 ## 500000
# end # end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment