Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moobench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SustainKieker
moobench
Commits
b5cd67f6
Commit
b5cd67f6
authored
3 years ago
by
David Georg Reichelt
Browse files
Options
Downloads
Patches
Plain Diff
Fix opentelemetry instrumentation
parent
5b81e943
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frameworks/opentelemetry/benchmark.sh
+12
-3
12 additions, 3 deletions
frameworks/opentelemetry/benchmark.sh
with
12 additions
and
3 deletions
frameworks/opentelemetry/benchmark.sh
+
12
−
3
View file @
b5cd67f6
...
...
@@ -18,6 +18,11 @@ function stopZipkin {
kill
%1
}
function
getSum
{
awk
'{sum += $1; square += $1^2} END {print "Average: "sum/NR" Standard Deviation: "sqrt(square / NR - (sum/NR)^2)" Count: "NR}'
}
JAVABIN
=
""
RSCRIPTDIR
=
r/
...
...
@@ -64,8 +69,7 @@ then
fi
JAVAARGS_NOINSTR
=
"
${
JAVAARGS
}
"
JAVAARGS_LTW
=
"
${
JAVAARGS
}
-javaagent:
${
BASEDIR
}
lib/opentelemetry-javaagent-all.jar"
JAVAARGS_LTW_ASM
=
"
${
JAVAARGS_LTW
}
-Dspass-meter.iFactory=de.uni_hildesheim.sse.monitoring.runtime.instrumentation.asmTree.Factory"
JAVAARGS_LTW
=
"
${
JAVAARGS
}
-javaagent:
${
BASEDIR
}
lib/opentelemetry-javaagent-all.jar -Dotel.traces.exporter=zipkin -Dotel.resource.attributes=service.name=moobench -Dotel.instrumentation.methods.include=moobench.application.MonitoredClassSimple[monitoredMethod];moobench.application.MonitoredClassThreaded[monitoredMethod]"
## Write configuration
...
...
@@ -101,7 +105,7 @@ for ((i=1;i<=${NUM_LOOPS};i+=1)); do
--method-time
${
METHODTIME
}
\
--total-threads
${
THREADS
}
\
--recursion-depth
${
j
}
\
${
MOREPARAMS
}
&>
${
RESULTSDIR
}
output_
"
$i
"
_
pure
.txt
${
MOREPARAMS
}
&>
${
RESULTSDIR
}
output_
"
$i
"
_
uninstrumented
.txt
#kill %sar
[
-f
${
BASEDIR
}
hotspot.log
]
&&
mv
${
BASEDIR
}
hotspot.log
${
RESULTSDIR
}
hotspot-
${
i
}
-
${
j
}
-
${
k
}
.log
echo
>>
${
BASEDIR
}
opentelemetry.log
...
...
@@ -130,6 +134,11 @@ for ((i=1;i<=${NUM_LOOPS};i+=1)); do
sync
sleep
${
SLEEPTIME
}
echo
-n
"Intermediary results uninstrumented"
cat
tmp/results-opentelemetry/raw-
*
-100-1
.csv |
awk
-F
';'
'{print $2}'
| getSum
echo
-n
"Intermediary results opentelemetry zipkin"
cat
tmp/results-opentelemetry/raw-
*
-100-2
.csv |
awk
-F
';'
'{print $2}'
| getSum
done
#zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat
#rm -rf ${RESULTSDIR}stat/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment