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
6c29aab1
Commit
6c29aab1
authored
2 years ago
by
David Georg Reichelt
Browse files
Options
Downloads
Patches
Plain Diff
Make parameters configurable via environment variables again; implement
github action for OpenTelemetry test
parent
614f1299
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.github/workflows/executeOpenTelemetryJava.yaml
+42
-0
42 additions, 0 deletions
.github/workflows/executeOpenTelemetryJava.yaml
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
common-functions.sh
+21
-7
21 additions, 7 deletions
common-functions.sh
experiment.rc
+0
-9
0 additions, 9 deletions
experiment.rc
with
67 additions
and
16 deletions
.github/workflows/executeOpenTelemetryJava.yaml
0 → 100644
+
42
−
0
View file @
6c29aab1
---
name
:
Build MooBench for OpenTelemetry execution check
on
:
-
push
-
pull_request
-
workflow_dispatch
jobs
:
build
:
strategy
:
matrix
:
os
:
-
ubuntu-latest
java
:
-
1.8
-
11
-
17
fail-fast
:
false
runs-on
:
${{ matrix.os }}
name
:
Java ${{ matrix.java }} OS ${{ matrix.os }} sample
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up JDK ${{ matrix.java }}
uses
:
actions/setup-java@v1
with
:
java-version
:
${{ matrix.java }}
-
name
:
Assemble Project
run
:
|
./gradlew assemble
cd frameworks/OpenTelemetry-java/
export SLEEP_TIME=0
export NUM_OF_LOOPS=1
export TOTAL_NUM_OF_CALLS=10
export RECURSION_DEPTH=10
./benchmark.sh
unzip results-OpenTelemetry-java/results.zip
measuredValues=$(cat raw-1-10-* | wc -l)
if [ $measuredValues -ne 50 ]
then
echo "It should be 50 measured values, but was $measuredValues"
exit 1
fi
This diff is collapsed.
Click to expand it.
.gitignore
+
4
−
0
View file @
6c29aab1
...
...
@@ -10,3 +10,7 @@
/.gradle/
/build/
/benchmark/**
# Do not store measurement results
frameworks/OpenTelemetry-java/raw*
frameworks/OpenTelemetry-java/results-OpenTelemetry-java/
This diff is collapsed.
Click to expand it.
common-functions.sh
+
21
−
7
View file @
6c29aab1
...
...
@@ -238,12 +238,26 @@ RESULTS_DIR="${BASE_DIR}/results-${FRAMEWORK_NAME}"
RAWFN
=
"
${
RESULTS_DIR
}
/raw"
# Initialize all unset parameters
SLEEP_TIME
=
30
## 30
NUM_OF_LOOPS
=
10
## 10
THREADS
=
1
## 1
RECURSION_DEPTH
=
10
## 10
TOTAL_NUM_OF_CALLS
=
2000000
## 2 000 000
METHOD_TIME
=
0
## 500 000
DEBUG
=
false
## false
if
[
-z
$SLEEP_TIME
]
;
then
SLEEP_TIME
=
30
## 30
fi
if
[
-z
$NUM_OF_LOOPS
]
;
then
NUM_OF_LOOPS
=
10
## 10
fi
if
[
-z
$THREADS
]
;
then
THREADS
=
1
## 1
fi
if
[
-z
$RECURSION_DEPTH
]
;
then
RECURSION_DEPTH
=
10
## 10
fi
if
[
-z
$TOTAL_NUM_OF_CALLS
]
;
then
TOTAL_NUM_OF_CALLS
=
2000000
## 2000000
fi
if
[
-z
$METHOD_TIME
]
;
then
METHOD_TIME
=
0
## 500000
fi
if
[
-z
$DEBUG
]
;
then
DEBUG
=
false
## false
fi
# end
This diff is collapsed.
Click to expand it.
experiment.rc
+
0
−
9
View file @
6c29aab1
MOOBENCH_ARCHIVE="${BASE_DIR}/tools/benchmark/build/distributions/benchmark.tar"
COMPILE_RESULTS_ARCHIVE="${BASE_DIR}/tools/compile-results/build/distributions/compile-results.tar"
COMPILE_RESULTS_BIN="${BASE_DIR}/compile-results/bin/compile-results"
export SLEEP_TIME=30
export NUM_OF_LOOPS=10
export THREADS=1
export RECURSION_DEPTH=10
export TOTAL_NUM_OF_CALLS=200000
export METHOD_TIME=0
export DEBUG=false
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