Skip to content

ci: integrate callgrind benchmarks using iai-callgrind - #675

Open
Zul-Qarnain wants to merge 3 commits into
servo:v2from
Zul-Qarnain:feat/callgrind-ci
Open

Zul-Qarnain wants to merge 3 commits into
servo:v2from
Zul-Qarnain:feat/callgrind-ci

Conversation

@Zul-Qarnain

Copy link
Copy Markdown

This PR adds instruction-level benchmarks using iai-callgrind and integrates them into CI to catch regressions deterministically:

  • Adds benches/callgrind.rs testing core vector operations (push, pop, insert/remove, slice conversions, drain, retain_mut, into_iter) across both inline and spilled heap storage.
  • Adds a callgrind job to .github/workflows/checks.yml running the benchmarks on both default features and --all-features.

Comment thread .github/workflows/checks.yml Outdated
@alejandro-vaz alejandro-vaz linked an issue Sep 25, 2026 that may be closed by this pull request
@alejandro-vaz

Copy link
Copy Markdown
Collaborator

CI shows nothing

callgrind::push_group::bench_smallvec_push_inline
  Instructions:                           0|N/A                  (*********)
  L1 Hits:                                0|N/A                  (*********)
  L2 Hits:                                0|N/A                  (*********)
  RAM Hits:                               0|N/A                  (*********)
  Total read+write:                       0|N/A                  (*********)
  Estimated Cycles:                       0|N/A                  (*********)

@alejandro-vaz alejandro-vaz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

it doesn't seem to be working properly

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.

integrate callgrind to CI

2 participants