-
Notifications
You must be signed in to change notification settings - Fork 31
ci: add memtrack walltime benchmarks to CI #537
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
not-matthias
wants to merge
3
commits into
main
Choose a base branch
from
cod-3093-memtrack-data-format-improvements
base: main
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.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| $schema: https://raw.githubusercontent.com/CodSpeedHQ/codspeed/refs/heads/main/schemas/codspeed.schema.json | ||
|
|
||
| # These benchmarks measure codspeed-memtrack's own overhead across a few | ||
| # representative workloads, not the memory usage of the tracked command. They | ||
| # run in both walltime mode (execution time) and memory mode (memtrack's own | ||
| # peak RSS/allocations while tracking each workload). Each workload's | ||
| # RSS-only and with-physical variants run back to back so physical | ||
| # tracking's overhead is directly comparable. | ||
| # | ||
| # The warmup/max times are generous because a single tracked run already pays a | ||
| # fixed BPF load + uprobe attach cost, which is far above the defaults tuned | ||
| # for near-instant commands. | ||
| # | ||
| # The write workloads overwrite archives pre-created by CI before measurement: | ||
| # a first-time multi-GB allocation on the runner disk would dominate one | ||
| # variant's warmup round purely from I/O ordering, not tracking overhead. | ||
| options: | ||
| warmup-time: "5s" | ||
| max-time: "60s" | ||
|
|
||
| benchmarks: | ||
| # Read-only, low-allocation baseline. The tracked command string is run | ||
| # through `bash -c`, so output can be redirected away: otherwise every round | ||
| # dumps the whole listing into the runner log. | ||
| - name: "memtrack track ls" | ||
| exec: env CODSPEED_MEMTRACK_TRACK_PHYSICAL=0 codspeed-memtrack track "ls -la /usr/bin > /dev/null" --output /tmp/codspeed-memtrack-bench | ||
|
|
||
| - name: "memtrack track ls (with physical)" | ||
| exec: env CODSPEED_MEMTRACK_TRACK_PHYSICAL=1 codspeed-memtrack track "ls -la /usr/bin > /dev/null" --output /tmp/codspeed-memtrack-bench | ||
|
|
||
| # I/O-heavy with minimal allocation. | ||
| - name: "memtrack track dd" | ||
| exec: env CODSPEED_MEMTRACK_TRACK_PHYSICAL=0 codspeed-memtrack track "dd if=/dev/zero of=/tmp/memtrack-bench-dd.bin bs=1M count=64 2> /dev/null" --output /tmp/codspeed-memtrack-bench | ||
|
|
||
| - name: "memtrack track dd (with physical)" | ||
| exec: env CODSPEED_MEMTRACK_TRACK_PHYSICAL=1 codspeed-memtrack track "dd if=/dev/zero of=/tmp/memtrack-bench-dd.bin bs=1M count=64 2> /dev/null" --output /tmp/codspeed-memtrack-bench | ||
|
|
||
| # Allocation- and I/O-heavy: many small file reads. | ||
| - name: "memtrack track tar" | ||
| exec: env CODSPEED_MEMTRACK_TRACK_PHYSICAL=0 codspeed-memtrack track "tar -cf /tmp/memtrack-bench.tar /usr/bin" --output /tmp/codspeed-memtrack-bench | ||
|
|
||
| - name: "memtrack track tar (with physical)" | ||
| exec: env CODSPEED_MEMTRACK_TRACK_PHYSICAL=1 codspeed-memtrack track "tar -cf /tmp/memtrack-bench.tar /usr/bin" --output /tmp/codspeed-memtrack-bench |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.