Skip to content

Commit

Permalink
Run load and startup benchmarks in different jobs (#6920)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-alvarez-alvarez authored Apr 16, 2024
1 parent 0e0654b commit d9850dd
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .gitlab/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variables:
BASE_CI_IMAGE: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:dd-trace-java-benchmarks

benchmarks:
.benchmarks:
stage: benchmarks
when: on_success
interruptible: true
Expand All @@ -12,11 +12,6 @@ benchmarks:
- export ARTIFACTS_DIR="$(pwd)/reports" && mkdir -p "${ARTIFACTS_DIR}"
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/".insteadOf "https://github.com/DataDog/"
- git clone --branch dd-trace-java/tracer-benchmarks https://github.com/DataDog/benchmarking-platform.git /platform && cd /platform
- ./steps/capture-hardware-software-info.sh
- ./steps/run-benchmarks.sh
- ./steps/analyze-results.sh
- ./steps/upload-results-to-s3.sh
- ./steps/post-pr-comment.sh
artifacts:
name: "reports"
paths:
Expand All @@ -31,6 +26,34 @@ benchmarks:
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: dd-trace-java
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: "true"

benchmarks-startup:
extends: .benchmarks
script:
- !reference [ .benchmarks, script ]
- ./steps/capture-hardware-software-info.sh
- ./steps/run-benchmarks.sh startup
- ./steps/analyze-results.sh startup

benchmarks-load:
extends: .benchmarks
script:
- !reference [ .benchmarks, script ]
- ./steps/capture-hardware-software-info.sh
- ./steps/run-benchmarks.sh load
- ./steps/analyze-results.sh load

benchmarks-post-results:
extends: .benchmarks
script:
- !reference [ .benchmarks, script ]
- ./steps/upload-results-to-s3.sh
- ./steps/post-pr-comment.sh
needs:
- job: benchmarks-startup
artifacts: true
- job: benchmarks-load
artifacts: true

.dsm-kafka-benchmarks:
stage: benchmarks
rules:
Expand Down

0 comments on commit d9850dd

Please sign in to comment.