-
Notifications
You must be signed in to change notification settings - Fork 402
Parallelize microbenchmarks and run them more times #5313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
igoragoli
wants to merge
17
commits into
master
Choose a base branch
from
augusto/2544.flakiness
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+148
−89
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
af77fbd
chore: save di_instrument bench results based on their filename
igoragoli f857a84
chore: bump datadog version on benchmarks/Dockerfile
igoragoli 406f32f
feat: update microbenchmarks jobs for executing microbenchmarks in pa…
igoragoli fb713db
feat: add separate microbench PR comment job
igoragoli e3a5c36
docs: add a helpful header
igoragoli 79db6c8
test: point to test image
igoragoli 37d9b3f
docs: update execution.yml
igoragoli c7a672e
docs: update benchmarks/README.md
igoragoli 4b58ebc
tweak: repeat benchmarks 5 times
igoragoli d8459b9
tweak: remove ".rb" from benchmark results files
igoragoli 020a755
refactor: fix indentation on execution.yml
igoragoli d10914a
chore: point back to production image
igoragoli e940d67
tweak: remove run_all.sh, since it's not needed anymore
igoragoli 4e306b6
chore: point back to production branch on benchmarking-platform
igoragoli a75635b
Merge branch 'master' into augusto/2544.flakiness
igoragoli acf1cc9
test: trigger ci
igoragoli 091684c
Merge branch 'master' into augusto/2544.flakiness
ivoanjo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,52 @@ | ||
| # This file defines how benchmarks are grouped and executed in CI: | ||
| # 1. Each GROUP runs as a separate CI job (defined by parallel:matrix) | ||
| # 2. Within a group, benchmarks run in parallel with CPU isolation | ||
| # 3. Each benchmark runs $REPETITIONS times for stability analysis | ||
| # | ||
| # Adding a new benchmark: | ||
| # 1. Add the benchmark filename to the appropriate group below | ||
| # 2. Ensure the benchmark outputs: <filename>-results.json (or <filename>-<variant>-results.json) | ||
| # 3. Ensure the number of requested CPUs (CPUS_PER_BENCHMARK * number of benchmarks) is within the CPU_AFFINITY range, otherwise benchmarks will be queued and make the CI job longer | ||
| # | ||
| # Adding a new group: | ||
| # 1. Define a new anchor (e.g., &mygroup) with the list of benchmarks | ||
| # 2. Add BENCHMARKS_mygroup: *mygroup to .execution.variables | ||
| # 3. Add GROUP: mygroup to parallel:matrix | ||
|
|
||
| .groups: | ||
| - &profiling >- | ||
| profiling_allocation.rb | ||
| profiling_gc.rb | ||
| profiling_hold_resume_interruptions.rb | ||
| profiling_http_transport.rb | ||
| profiling_memory_sample_serialize.rb | ||
| profiling_sample_loop_v2.rb | ||
| profiling_sample_serialize.rb | ||
| profiling_sample_gvl.rb | ||
| profiling_string_storage_intern.rb | ||
|
|
||
| - &other >- | ||
| error_tracking_simple.rb | ||
| tracing_trace.rb | ||
| di_instrument.rb | ||
| library_gem_loading.rb | ||
|
|
||
| .execution: | ||
| variables: | ||
| # Benchmark execution settings | ||
| REPETITIONS: "6" # How many times to run each benchmark | ||
| CPU_AFFINITY: "24-47" # Which CPUs to use for all benchmarks | ||
| CPUS_PER_BENCHMARK: "2" # How many CPUs to use for each benchmark | ||
|
|
||
| # NOTE: GitLab CI does not allow CI job names above 256 characters. | ||
| # Therefore, we use 'BENCHMARKS_<GROUP>' to hold the list of benchmarks to run in each group, otherwise the list (which is longer than 256 characters) would be set as the name of the CI job. | ||
|
|
||
| # Variables holding the list of benchmarks to run in each group. | ||
| # '<GROUP>' in 'BENCHMARKS_<GROUP>' matches '<GROUP>' in 'parallel:matrix'. | ||
| BENCHMARKS_profiling: *profiling | ||
| BENCHMARKS_other: *other | ||
|
|
||
| parallel: | ||
| matrix: | ||
| - GROUP: profiling | ||
| - GROUP: other |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol this was broken before and nobody noticed! There's no datadog 1.20.0, we renamed the library. Thanks for catching it.