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
4fbf4cab
Commit
4fbf4cab
authored
3 years ago
by
David Georg Reichelt
Browse files
Options
Downloads
Patches
Plain Diff
$j -> $RECURSION_DEPTH (no renaming necessary)
parent
f015ef99
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frameworks/inspectIT/benchmark.sh
+9
-9
9 additions, 9 deletions
frameworks/inspectIT/benchmark.sh
frameworks/opentelemetry/benchmark.sh
+25
-26
25 additions, 26 deletions
frameworks/opentelemetry/benchmark.sh
with
34 additions
and
35 deletions
frameworks/inspectIT/benchmark.sh
+
9
−
9
View file @
4fbf4cab
...
...
@@ -2,34 +2,34 @@
function
runNoInstrumentation
{
# No instrumentation
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
No instrumentation"
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
No instrumentation"
>>
${
BASEDIR
}
inspectit.log
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
No instrumentation"
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
No instrumentation"
>>
${
BASEDIR
}
inspectit.log
${
JAVABIN
}
java
${
JAVAARGS_NOINSTR
}
${
JAR
}
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
{
j
}
-
${
k
}
.csv
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
RECURSION_DEPTH
-
${
k
}
.csv
\
--total-calls
${
TOTAL_NUM_OF_CALLS
}
\
--method-time
${
METHOD_TIME
}
\
--total-threads
${
THREADS
}
\
--recursion-depth
${
RECURSION_DEPTH
}
\
${
MOREPARAMS
}
&>
${
RESULTSDIR
}
output_
"
$i
"
_
"
$
j
"
_noinstrumentation.txt
${
MOREPARAMS
}
&>
${
RESULTSDIR
}
output_
"
$i
"
_
"
$
RECURSION_DEPTH
"
_noinstrumentation.txt
}
function
runInspectITZipkin
{
# InspectIT (minimal)
k
=
`
expr
${
k
}
+ 1
`
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
InspectIT (minimal)"
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
InspectIT (minimal)"
>>
${
BASEDIR
}
inspectit.log
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
InspectIT (minimal)"
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
InspectIT (minimal)"
>>
${
BASEDIR
}
inspectit.log
#${JAVABIN}java ${CMR_ARGS} -Xloggc:${BASEDIR}logs/gc.log -jar CMR/inspectit-cmr-mod.jar 1>>${BASEDIR}logs/out.log 2>&1 &
startZipkin
sleep
$SLEEP_TIME
echo
$JAVAARGS_INSPECTIT_MINIMAL
echo
$JAR
${
JAVABIN
}
java
${
JAVAARGS_INSPECTIT_MINIMAL
}
${
JAR
}
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
{
j
}
-
${
k
}
.csv
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
RECURSION_DEPTH
-
${
k
}
.csv
\
--total-calls
${
TOTAL_NUM_OF_CALLS
}
\
--method-time
${
METHOD_TIME
}
\
--total-threads
${
THREADS
}
\
--recursion-depth
${
RECURSION_DEPTH
}
\
${
MOREPARAMS
}
&>
${
RESULTSDIR
}
output_
"
$i
"
_
"
$
j
"
_inspectit.txt
${
MOREPARAMS
}
&>
${
RESULTSDIR
}
output_
"
$i
"
_
"
$
RECURSION_DEPTH
"
_inspectit.txt
sleep
$SLEEP_TIME
stopBackgroundProcess
}
...
...
@@ -112,7 +112,7 @@ JAR="-jar MooBench.jar --application moobench.application.MonitoredClassSimple"
JAVAARGS_NOINSTR
=
"
${
JAVAARGS
}
"
JAVAARGS_LTW
=
"
${
JAVAARGS
}
-javaagent:
${
BASEDIR
}
agent/inspectit-ocelot-agent-1.10.1.jar -Djava.util.logging.config.file=
${
BASEDIR
}
config/logging.properties"
JAVAARGS_INSPECTIT_MINIMAL
=
"
${
JAVAARGS_LTW
}
-Dinspectit.service-name=
'My-Custom-Service'
-Dinspectit.exporters.tracing.zipkin.url=http://127.0.0.1:9411/api/v2/spans -Dinspectit.config.file-based.path=
${
BASEDIR
}
config/zipkin/"
JAVAARGS_INSPECTIT_MINIMAL
=
"
${
JAVAARGS_LTW
}
-Dinspectit.service-name=
moobench-inspectit
-Dinspectit.exporters.tracing.zipkin.url=http://127.0.0.1:9411/api/v2/spans -Dinspectit.config.file-based.path=
${
BASEDIR
}
config/zipkin/"
JAVAARGS_INSPECTIT_FULL
=
"
${
JAVAARGS_LTW
}
-Dinspectit.config=
${
BASEDIR
}
config/timer/"
CMR_ARGS
=
" -Xms12G -Xmx12G -Xmn4G -XX:MaxPermSize=128m -XX:PermSize=128m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -XX:+UseBiasedLocking -XX:+HeapDumpOnOutOfMemoryError -server -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+PrintTenuringDistribution "
...
...
This diff is collapsed.
Click to expand it.
frameworks/opentelemetry/benchmark.sh
+
25
−
26
View file @
4fbf4cab
...
...
@@ -44,7 +44,7 @@ function stopBackgroundProcess {
}
function
cleanup
{
[
-f
${
BASEDIR
}
hotspot.log
]
&&
mv
${
BASEDIR
}
hotspot.log
${
RESULTS_DIR
}
hotspot-
${
i
}
-
$
{
j
}
-
${
k
}
.log
[
-f
${
BASEDIR
}
hotspot.log
]
&&
mv
${
BASEDIR
}
hotspot.log
${
RESULTS_DIR
}
hotspot-
${
i
}
-
$
RECURSION_DEPTH
-
${
k
}
.log
echo
>>
${
BASEDIR
}
opentelemetry.log
echo
>>
${
BASEDIR
}
opentelemetry.log
sync
...
...
@@ -53,42 +53,42 @@ function cleanup {
function
runNoInstrumentation
{
# No instrumentation
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
No instrumentation"
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
No instrumentation"
>>
${
BASEDIR
}
opentelemetry.log
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
No instrumentation"
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
No instrumentation"
>>
${
BASEDIR
}
opentelemetry.log
${
JAVABIN
}
java
${
JAVAARGS_NOINSTR
}
${
JAR
}
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
{
j
}
-
${
k
}
.csv
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
RECURSION_DEPTH
-
${
k
}
.csv
\
--total-calls
${
TOTAL_NUM_OF_CALLS
}
\
--method-time
${
METHOD_TIME
}
\
--total-threads
${
THREADS
}
\
--recursion-depth
$
{
j
}
\
--recursion-depth
$
RECURSION_DEPTH
\
${
MOREPARAMS
}
&>
${
RESULTS_DIR
}
output_
"
$i
"
_uninstrumented.txt
}
function
runOpenTelemetryNoLogging
{
# OpenTelemetry Instrumentation Logging Deactivated
k
=
`
expr
${
k
}
+ 1
`
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
OpenTelemetry Instrumentation Logging Deactivated"
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
OpenTelemetry Instrumentation Logging Deactivated"
>>
${
BASEDIR
}
opentelemetry.log
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
OpenTelemetry Instrumentation Logging Deactivated"
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
OpenTelemetry Instrumentation Logging Deactivated"
>>
${
BASEDIR
}
opentelemetry.log
${
JAVABIN
}
java
${
JAVAARGS_OPENTELEMETRY_LOGGING_DEACTIVATED
}
${
JAR
}
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
{
j
}
-
${
k
}
.csv
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
RECURSION_DEPTH
-
${
k
}
.csv
\
--total-calls
${
TOTAL_NUM_OF_CALLS
}
\
--method-time
${
METHOD_TIME
}
\
--total-threads
${
THREADS
}
\
--recursion-depth
$
{
j
}
\
--recursion-depth
$
RECURSION_DEPTH
\
${
MOREPARAMS
}
&>
${
RESULTS_DIR
}
output_
"
$i
"
_opentelemetry.txt
}
function
runOpenTelemetryLogging
{
# OpenTelemetry Instrumentation Logging
k
=
`
expr
${
k
}
+ 1
`
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
OpenTelemetry Instrumentation Logging"
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
OpenTelemetry Instrumentation Logging"
>>
${
BASEDIR
}
opentelemetry.log
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
OpenTelemetry Instrumentation Logging"
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
OpenTelemetry Instrumentation Logging"
>>
${
BASEDIR
}
opentelemetry.log
${
JAVABIN
}
java
${
JAVAARGS_OPENTELEMETRY_LOGGING
}
${
JAR
}
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
{
j
}
-
${
k
}
.csv
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
RECURSION_DEPTH
-
${
k
}
.csv
\
--total-calls
${
TOTAL_NUM_OF_CALLS
}
\
--method-time
${
METHOD_TIME
}
\
--total-threads
${
THREADS
}
\
--recursion-depth
$
{
j
}
\
--recursion-depth
$
RECURSION_DEPTH
\
${
MOREPARAMS
}
&>
${
RESULTS_DIR
}
output_
"
$i
"
_opentelemetry_logging.txt
if
[
!
"
$DEBUG
"
=
true
]
then
...
...
@@ -101,14 +101,14 @@ function runOpenTelemetryZipkin {
# OpenTelemetry Instrumentation Zipkin
k
=
`
expr
${
k
}
+ 1
`
startZipkin
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
OpenTelemetry Instrumentation Zipkin"
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
OpenTelemetry Instrumentation Zipkin"
>>
${
BASEDIR
}
opentelemetry.log
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
OpenTelemetry Instrumentation Zipkin"
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
OpenTelemetry Instrumentation Zipkin"
>>
${
BASEDIR
}
opentelemetry.log
${
JAVABIN
}
java
${
JAVAARGS_OPENTELEMETRY_ZIPKIN
}
${
JAR
}
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
{
j
}
-
${
k
}
.csv
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
RECURSION_DEPTH
-
${
k
}
.csv
\
--total-calls
${
TOTAL_NUM_OF_CALLS
}
\
--method-time
${
METHOD_TIME
}
\
--total-threads
${
THREADS
}
\
--recursion-depth
$
{
j
}
\
--recursion-depth
$
RECURSION_DEPTH
\
${
MOREPARAMS
}
&>
${
RESULTS_DIR
}
output_
"
$i
"
_opentelemetry_zipkin.txt
stopBackgroundProcess
}
...
...
@@ -117,14 +117,14 @@ function runOpenTelemetryJaeger {
# OpenTelemetry Instrumentation Jaeger
k
=
`
expr
${
k
}
+ 1
`
startJaeger
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
OpenTelemetry Instrumentation Jaeger"
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
OpenTelemetry Instrumentation Jaeger"
>>
${
BASEDIR
}
opentelemetry.log
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
OpenTelemetry Instrumentation Jaeger"
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
OpenTelemetry Instrumentation Jaeger"
>>
${
BASEDIR
}
opentelemetry.log
${
JAVABIN
}
java
${
JAVAARGS_OPENTELEMETRY_JAEGER
}
${
JAR
}
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
{
j
}
-
${
k
}
.csv
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
RECURSION_DEPTH
-
${
k
}
.csv
\
--total-calls
${
TOTAL_NUM_OF_CALLS
}
\
--method-time
${
METHODTIME
}
\
--total-threads
${
THREADS
}
\
--recursion-depth
$
{
j
}
\
--recursion-depth
$
RECURSION_DEPTH
\
${
MOREPARAMS
}
&>
${
RESULTS_DIR
}
output_
"
$i
"
_opentelemetry_jaeger.txt
stopBackgroundProcess
}
...
...
@@ -133,14 +133,14 @@ function runOpenTelemetryPrometheus {
# OpenTelemetry Instrumentation Prometheus
k
=
`
expr
${
k
}
+ 1
`
startPrometheus
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
OpenTelemetry Instrumentation Prometheus"
echo
" #
${
i
}
.
$
{
j
}
.
${
k
}
OpenTelemetry Instrumentation Prometheus"
>>
${
BASEDIR
}
opentelemetry.log
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
OpenTelemetry Instrumentation Prometheus"
echo
" #
${
i
}
.
$
RECURSION_DEPTH
.
${
k
}
OpenTelemetry Instrumentation Prometheus"
>>
${
BASEDIR
}
opentelemetry.log
${
JAVABIN
}
java
${
JAVAARGS_OPENTELEMETRY_PROMETHEUS
}
${
JAR
}
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
{
j
}
-
${
k
}
.csv
\
--output-filename
${
RAWFN
}
-
${
i
}
-
$
RECURSION_DEPTH
-
${
k
}
.csv
\
--total-calls
${
TOTAL_NUM_OF_CALLS
}
\
--method-time
${
METHOD_TIME
}
\
--total-threads
${
THREADS
}
\
--recursion-depth
$
{
j
}
\
--recursion-depth
$
RECURSION_DEPTH
\
${
MOREPARAMS
}
&>
${
RESULTS_DIR
}
output_
"
$i
"
_opentelemetry_prometheus.txt
stopBackgroundProcess
}
...
...
@@ -245,7 +245,6 @@ sync
## Execute Benchmark
for
((
i
=
1
;
i<
=
${
NUM_OF_LOOPS
}
;
i+
=
1
))
;
do
j
=
${
RECURSION_DEPTH
}
k
=
0
echo
"## Starting iteration
${
i
}
/
${
NUM_OF_LOOPS
}
"
echo
"## Starting iteration
${
i
}
/
${
NUM_OF_LOOPS
}
"
>>
${
BASEDIR
}
opentelemetry.log
...
...
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