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

Adapt Kieker execution to opentelemetry execution

parent ca3e0a65
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ frameworks/Kieker/scripts/data/
frameworks/Kieker/scripts/kieker-*-aspectj.jar
frameworks/Kieker/scripts/receiver/
frameworks/Kieker/scripts/results-kieker/
frameworks/Kieker/scripts/benchmark_*
frameworks/SPASSmeter/spassmeter.log
frameworks/SPASSmeter/tmp/
frameworks/SPASSmeter/MooBench.jar
......
......@@ -153,11 +153,12 @@ function execute-experiment() {
fi
${BENCHMARK} moobench.benchmark.BenchmarkMain \
--application moobench.application.MonitoredClassSimple \
--output-filename ${RAWFN}-${loop}-${recursion}-${index}.csv \
--total-calls ${TOTAL_NUM_OF_CALLS} \
--method-time ${METHOD_TIME} \
--total-threads 1 \
--recursion-depth ${recursion}
--recursion-depth ${recursion} &> benchmark_${loop}.txt
rm -rf ${DATA_DIR}/kieker-*
......@@ -187,6 +188,17 @@ function execute-benchmark-body() {
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 {
for ((index=0;index<${#WRITER_CONFIG[@]};index+=1)); do
echo -n "Intermediary results $TITLE[$index] "
cat tmp/results-opentelemetry/raw-*-${RECURSION_DEPTH}-${index}.csv | awk -F';' '{print $2}' | getSum
done
}
## Execute Benchmark
function execute-benchmark() {
for ((loop=1;loop<=${NUM_OF_LOOPS};loop+=1)); do
......@@ -198,6 +210,8 @@ function execute-benchmark() {
for ((index=0;index<${#WRITER_CONFIG[@]};index+=1)); do
execute-benchmark-body $index $loop $recursion
done
printIntermediaryResults
done
mv ${DATA_DIR}/kieker.log ${RESULTS_DIR}/kieker.log
......
......@@ -17,10 +17,10 @@ BATCH_MODE="yes"
AOP="kieker.aop.xml"
# execution parameter
SLEEP_TIME=1 ## 30
SLEEP_TIME=30 ## 30
NUM_OF_LOOPS=10 ## 10
RECURSION_DEPTH=10 ## 10
TOTAL_NUM_OF_CALLS=2000 #0 ## 2 000 000
METHOD_TIME=5 #00 ## 500000
TOTAL_NUM_OF_CALLS=2000000 ## 2 000 000
METHOD_TIME=0 #00 ## 500000
# 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