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

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
---
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
......@@ -10,3 +10,7 @@
/.gradle/
/build/
/benchmark/**
# Do not store measurement results
frameworks/OpenTelemetry-java/raw*
frameworks/OpenTelemetry-java/results-OpenTelemetry-java/
......@@ -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
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
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