Skip to content

Benchmark prs#1529

Draft
jprendes wants to merge 2 commits into
hyperlight-dev:mainfrom
jprendes:benchmark-prs
Draft

Benchmark prs#1529
jprendes wants to merge 2 commits into
hyperlight-dev:mainfrom
jprendes:benchmark-prs

Conversation

@jprendes

Copy link
Copy Markdown
Contributor

No description provided.

@jprendes jprendes force-pushed the benchmark-prs branch 2 times, most recently from 8ad9393 to 0e181c4 Compare June 12, 2026 10:43
@jprendes jprendes added the kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. label Jun 12, 2026
@jprendes jprendes force-pushed the benchmark-prs branch 4 times, most recently from bc499ea to a277ac1 Compare June 17, 2026 14:48
jprendes added 2 commits June 18, 2026 09:29
Introduce a new internal tooling crate (hyperlight-ci) that provides:

- bench subcommand: Runs criterion benchmarks in parallel via
  criterion-swarm. Features include:
  - Configurable parallelism (-j N, defaults to all P-cores)
  - Configurable output modes (spinner, stream, summary)
  - Support for pre-built binaries (--binary) to skip rebuilds
  - Trailing args forwarded to criterion (filter, --exact, etc.)

- bench-report subcommand: Generates markdown comparison tables from
  criterion's target/criterion/ JSON output via criterion-markdown.
  Features include:
  - Benchmark discovery via criterion-swarm
  - Optional allowlist filtering via --binary or trailing args
  - Output to stdout

This replaces ad-hoc benchmark scripting with a unified tool suitable
for both local development and CI report generation.

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
- Add cargo alias (`cargo ci`) for convenient hyperlight-ci invocation
- Update dep_benchmarks workflow to use `cargo ci bench` and generate
  a markdown report via `cargo ci bench-report`, posting results as
  a PR comment per hypervisor/cpu matrix entry
- Add benchmarks job to ValidatePullRequest workflow with hypervisor
  and cpu matrix, gated behind docs-only and build-guests checks
- Grant pull-requests: write permission for PR comment posting
- Simplify Justfile bench recipes to delegate to `cargo ci bench`
- Update benchmarking docs to reflect the new workflow

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

Labels

kind/enhancement For PRs adding features, improving functionality, docs, tests, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant