Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions .gitlab/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.benchmarks:
stage: benchmarks
interruptible: true
timeout: 1h
timeout: 2h
tags: ["runner:apm-k8s-tweaked-metal"]
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:dd-trace-java-benchmarks
needs: [ "build", "publish-artifacts-to-s3" ]
Expand Down Expand Up @@ -35,12 +35,26 @@ benchmarks-startup:
- ./steps/run-benchmarks.sh startup
- ./steps/analyze-results.sh startup

benchmarks-load:
benchmarks-load-petclinic:
extends: .benchmarks
parallel:
matrix:
- RUN_ID: [1, 2, 3, 4, 5]
script:
- !reference [ .benchmarks, script ]
- ./steps/capture-hardware-software-info.sh
- ./steps/run-benchmarks.sh load petclinic
- ./steps/analyze-results.sh load

benchmarks-load-insecure-bank:
extends: .benchmarks
parallel:
matrix:
- RUN_ID: [1, 2, 3, 4, 5]
script:
- !reference [ .benchmarks, script ]
- ./steps/capture-hardware-software-info.sh
- ./steps/run-benchmarks.sh load
- ./steps/run-benchmarks.sh load insecure-bank
- ./steps/analyze-results.sh load

benchmarks-dacapo:
Expand All @@ -61,7 +75,15 @@ benchmarks-post-results:
needs:
- job: benchmarks-startup
artifacts: true
- job: benchmarks-load
- job: benchmarks-load-petclinic
parallel:
matrix:
- RUN_ID: [1, 2, 3, 4, 5]
artifacts: true
- job: benchmarks-load-insecure-bank
parallel:
matrix:
- RUN_ID: [1, 2, 3, 4, 5]
artifacts: true
- job: benchmarks-dacapo
artifacts: true
Expand Down
4 changes: 3 additions & 1 deletion .gitlab/macrobenchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ check-slo-breaches:
artifacts: true
- job: benchmarks-startup
artifacts: true
- job: benchmarks-load
- job: benchmarks-load-petclinic
artifacts: true
- job: benchmarks-load-insecure-bank
artifacts: true
- job: benchmarks-dacapo
artifacts: true
Expand Down
12 changes: 10 additions & 2 deletions benchmark/load/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,19 @@ fi

source "${UTILS_DIR}/update-java-version.sh" 17

# Optional second argument to run a specific app for load benchmarks (i.e. "petclinic" or "insecure-bank")
app_filter=${2:-""}

for app in *; do
if [[ ! -d "${app}" ]]; then
continue
fi

# Skip if app filter is specified and doesn't match
if [[ -n "${app_filter}" ]] && [[ "${app}" != "${app_filter}" ]]; then
continue
fi

message "${type} benchmark: ${app} started"

export OUTPUT_DIR="${REPORTS_DIR}/${type}/${app}"
Expand All @@ -43,10 +51,10 @@ for app in *; do
# Using profiler variants for healthcheck as they are the slowest
if [ "${app}" == "petclinic" ]; then
HEALTHCHECK_URL=http://localhost:8082
REPETITIONS_COUNT=2
REPETITIONS_COUNT=5
elif [ "${app}" == "insecure-bank" ]; then
HEALTHCHECK_URL=http://localhost:8082/login
REPETITIONS_COUNT=2
REPETITIONS_COUNT=5
else
echo "Unknown app ${app}"
exit 1
Expand Down