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
c613be49
Commit
c613be49
authored
3 years ago
by
David Georg Reichelt
Browse files
Options
Downloads
Patches
Plain Diff
Move run-r to common-function.sh
parent
7e23bb6e
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/Kieker/scripts/benchmark.sh
+4
-18
4 additions, 18 deletions
frameworks/Kieker/scripts/benchmark.sh
frameworks/common-functions.sh
+15
-0
15 additions, 0 deletions
frameworks/common-functions.sh
with
19 additions
and
18 deletions
frameworks/Kieker/scripts/benchmark.sh
+
4
−
18
View file @
c613be49
...
...
@@ -105,9 +105,6 @@ WRITER_CONFIG[5]="-Dkieker.monitoring.writer=kieker.monitoring.writer.tcp.Single
RECEIVER[5]
=
"
${
BASE_DIR
}
/collector-2.0/bin/collector -p 2345"
RECEIVER[5]
=
"
${
BASE_DIR
}
/receiver/bin/receiver 2345"
# Create R labels
LABELS
=
$(
createRLabels
)
## Write configuration
uname
-a
>
${
RESULTS_DIR
}
/configuration.txt
${
JAVA_BIN
}
${
JAVA_ARGS
}
-version
2>>
${
RESULTS_DIR
}
/configuration.txt
...
...
@@ -214,21 +211,6 @@ function execute-benchmark() {
[
-f
${
DATA_DIR
}
/errorlog.txt
]
&&
mv
${
DATA_DIR
}
/errorlog.txt
${
RESULTS_DIR
}
}
## Generate Results file
function
run-r
()
{
R
--vanilla
--silent
<<
EOF
results_fn="
${
RAWFN
}
"
outtxt_fn="
${
RESULTS_DIR
}
/results-text.txt"
outcsv_fn="
${
RESULTS_DIR
}
/results-text.csv"
configs.loop=
${
NUM_OF_LOOPS
}
configs.recursion=
${
RECURSION_DEPTH
}
configs.labels=c(
$LABELS
)
results.count=
${
TOTAL_NUM_OF_CALLS
}
results.skip=
${
TOTAL_NUM_OF_CALLS
}
/2
source("
${
RSCRIPT_PATH
}
")
EOF
}
## Execute benchmark
if
[
"
$MODE
"
==
"execute"
]
;
then
if
[
"
$OPTION
"
==
""
]
;
then
...
...
@@ -236,7 +218,11 @@ if [ "$MODE" == "execute" ] ; then
else
execute-benchmark-body
$OPTION
1 1
fi
# Create R labels
LABELS
=
$(
createRLabels
)
run-r
cleanup-results
else
execute-benchmark-body
$OPTION
1 1
...
...
This diff is collapsed.
Click to expand it.
frameworks/common-functions.sh
+
15
−
0
View file @
c613be49
...
...
@@ -64,6 +64,21 @@ function createRLabels() {
echo
$LABELS
}
## Generate Results file
function
run-r
()
{
R
--vanilla
--silent
<<
EOF
results_fn="
${
RAWFN
}
"
outtxt_fn="
${
RESULTS_DIR
}
/results-text.txt"
outcsv_fn="
${
RESULTS_DIR
}
/results-text.csv"
configs.loop=
${
NUM_OF_LOOPS
}
configs.recursion=
${
RECURSION_DEPTH
}
configs.labels=c(
$LABELS
)
results.count=
${
TOTAL_NUM_OF_CALLS
}
results.skip=
${
TOTAL_NUM_OF_CALLS
}
/2
source("
${
RSCRIPT_PATH
}
")
EOF
}
function
startZipkin
{
if
[
!
-d
zipkin
]
then
...
...
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