-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/gofiber-trace-propagation
- Loading branch information
Showing
11 changed files
with
132 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
stages: | ||
- benchmarks | ||
|
||
include: ".gitlab/benchmarks.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
variables: | ||
# This base image is created here: https://gitlab.ddbuild.io/DataDog/apm-reliability/relenv-microbenchmarking-platform | ||
BASE_CI_IMAGE: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/relenv-microbenchmarking-platform:dd-trace-go_knusbaum_test | ||
INDEX_FILE: index.txt | ||
|
||
benchmark: | ||
stage: benchmarks | ||
image: $BASE_CI_IMAGE | ||
timeout: 1h | ||
only: | ||
refs: | ||
- branches | ||
interruptible: true | ||
tags: ["runner:apm-k8s-tweaked-metal"] | ||
script: | ||
- ./.gitlab/scripts/capture-hardware-software-info.sh | ||
- ./.gitlab/scripts/run-benchmarks.sh | ||
# - ./.gitlab/scripts/upload-results-to-s3.sh #commented out until we have merged our permissions changes | ||
- ./.gitlab/scripts/analyze-results.sh | ||
- ./.gitlab/scripts/post-pr-comment.sh | ||
artifacts: | ||
name: "reports" | ||
paths: | ||
- reports/ | ||
expire_in: 3 months | ||
variables: | ||
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: dd-trace-go | ||
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
ARTIFACTS_DIR="/artifacts/${CI_JOB_ID}" | ||
REPORTS_DIR="$(pwd)/reports/" | ||
mkdir "${REPORTS_DIR}" || : | ||
|
||
BASELINE_BRANCH=$(github-find-merge-into-branch --for-repo="$CI_PROJECT_NAME" --for-pr="$CI_COMMIT_REF_NAME" || :) | ||
|
||
source /benchmark-analyzer/.venv/bin/activate | ||
cd /benchmark-analyzer | ||
|
||
./benchmark_analyzer convert \ | ||
--framework=GoBench \ | ||
--outpath="pr.json" \ | ||
--extra-params="{\"dd_trace_go\":\"${CI_COMMIT_REF_NAME}\"}" \ | ||
"${ARTIFACTS_DIR}/pr_bench.txt" | ||
|
||
./benchmark_analyzer convert \ | ||
--framework=GoBench \ | ||
--outpath="main.json" \ | ||
--extra-params="{\"dd_trace_go\":\"main\"}" \ | ||
"${ARTIFACTS_DIR}/main_bench.txt" | ||
|
||
./benchmark_analyzer compare pairwise --outpath ${REPORTS_DIR}/report.md --format md-nodejs main.json pr.json | ||
./benchmark_analyzer compare pairwise --outpath ${REPORTS_DIR}/report_full.html --format html main.json pr.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
REPORTS_DIR="$(pwd)/reports/" | ||
mkdir "${REPORTS_DIR}" || : | ||
|
||
ARTIFACTS_DIR="/artifacts/${CI_JOB_ID}" | ||
mkdir -p "${ARTIFACTS_DIR}" && cd "${ARTIFACTS_DIR}" | ||
|
||
# Collect software information | ||
|
||
(which top && top -b -n 1 > top.txt) || : | ||
(which uname && uname -a > uname.txt) || : | ||
(which ldconfig && ldconfig -v > ldconfig.txt) || : | ||
(which sysctl && sysctl -a > sysctl.txt) || : | ||
|
||
# Collect hardware information | ||
|
||
(which lscpu && lscpu -e > lscpu-e.txt) || : | ||
(which lscpu && lscpu > lscpu.txt) || : | ||
(which hwinfo && hwinfo --short > hwinfo-short.txt) || : | ||
(which hwinfo && hwinfo > hwinfo-full.txt) || : | ||
#cpupower frequency-info > cpupower-frequency-info.txt | ||
#turbostat -n 1 > turbostat.txt | ||
|
||
# Save all collected information to Gitlab reports as well | ||
|
||
cp * "${REPORTS_DIR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
REPORTS_DIR="$(pwd)/reports/" | ||
|
||
cat ${REPORTS_DIR}/report.md | /usr/local/bin/pr-commenter --for-repo="$CI_PROJECT_NAME" --for-pr="$CI_COMMIT_REF_NAME" --header="Benchmarks" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
ARTIFACTS_DIR="/artifacts/${CI_JOB_ID}" | ||
mkdir -p "${ARTIFACTS_DIR}" | ||
|
||
git clone --branch ${CI_COMMIT_REF_NAME} https://github.com/DataDog/dd-trace-go | ||
|
||
cd dd-trace-go/ddtrace/tracer/ | ||
go test -run=XXX -bench "BenchmarkConcurrentTracing|BenchmarkStartSpan" -benchmem -count 10 -benchtime 2s ./... | tee ${ARTIFACTS_DIR}/pr_bench.txt | ||
|
||
git checkout main | ||
go test -run=XXX -bench "BenchmarkConcurrentTracing|BenchmarkStartSpan" -benchmem -count 10 -benchtime 2s ./... | tee ${ARTIFACTS_DIR}/main_bench.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
PROJECT="${CI_PROJECT_NAME:-$CI_PROJECT_NAME}" | ||
BRANCH="${CI_COMMIT_REF_NAME:-$CI_COMMIT_REF_NAME}" | ||
|
||
S3_URL=s3://relenv-benchmarking-data/${PROJECT}/${BRANCH}/${CI_JOB_ID}/ | ||
|
||
aws s3 cp --recursive --acl bucket-owner-full-control /artifacts/${CI_JOB_ID}/ $S3_URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters