Skip to content

perf: Add dd bench and harden flamegraph checks#324

Merged
apaolillo merged 1 commit intomainfrom
flame
Feb 10, 2026
Merged

perf: Add dd bench and harden flamegraph checks#324
apaolillo merged 1 commit intomainfrom
flame

Conversation

@apaolillo
Copy link
Collaborator

Introduce a small DD benchmark that burns CPU by streaming /dev/urandom into /dev/null, giving a reliable workload for perf sampling and flamegraph generation (unlike sleep).

Make PerfReportWrap skip flamegraph generation when perf produces no folded stack counts, emitting a warning instead of failing.

Refactor the flamegraph test into a suite with two sub-campaigns: sleep (no samples leads to graceful skip) and dd (real samples generates a SVG flamegraph), and add a dedicated fzf-based campaign for interactively browsing dd runs.

Introduce a small DD benchmark that burns CPU by streaming /dev/urandom
into /dev/null, giving a reliable workload for perf sampling and
flamegraph generation (unlike sleep).

Make PerfReportWrap skip flamegraph generation when perf produces no
folded stack counts, emitting a warning instead of failing.

Refactor the flamegraph test into a suite with two sub-campaigns:
sleep (no samples leads to graceful skip) and dd (real samples generates
a SVG flamegraph), and add a dedicated fzf-based campaign for
interactively browsing dd runs.

Signed-off-by: Antonio Paolillo <apaolill@gmail.com>
@apaolillo apaolillo self-assigned this Feb 9, 2026
Copy link
Collaborator

@matsvanmolle matsvanmolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@apaolillo apaolillo merged commit f7039ff into main Feb 10, 2026
2 checks passed
@apaolillo apaolillo deleted the flame branch February 10, 2026 08:37
EstAK pushed a commit to EstAK/benchkit that referenced this pull request Feb 25, 2026
Introduce a small DD benchmark that burns CPU by streaming /dev/urandom
into /dev/null, giving a reliable workload for perf sampling and
flamegraph generation (unlike sleep).

Make PerfReportWrap skip flamegraph generation when perf produces no
folded stack counts, emitting a warning instead of failing.

Refactor the flamegraph test into a suite with two sub-campaigns: sleep
(no samples leads to graceful skip) and dd (real samples generates a SVG
flamegraph), and add a dedicated fzf-based campaign for interactively
browsing dd runs.

Signed-off-by: Antonio Paolillo <apaolill@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants