diff --git a/.gitlab/benchmarks.yml b/.gitlab/benchmarks.yml index 4d50fe1afc1..ee30bbd54de 100644 --- a/.gitlab/benchmarks.yml +++ b/.gitlab/benchmarks.yml @@ -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 @@ -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: @@ -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: