Skip to content

fix: clarify --reference with parameterized --prepare (fixes #847)#878

Closed
wyf027 wants to merge 1 commit into
sharkdp:masterfrom
wyf027:fix/reference-skip-parameterized-prepare-847
Closed

fix: clarify --reference with parameterized --prepare (fixes #847)#878
wyf027 wants to merge 1 commit into
sharkdp:masterfrom
wyf027:fix/reference-skip-parameterized-prepare-847

Conversation

@wyf027

@wyf027 wyf027 commented May 16, 2026

Copy link
Copy Markdown

Summary

  • Fixes the failure when combining --reference, parameterized benchmarks (-L / --parameter-scan), and --prepare 'sleep {delay}': the reference command has no parameters, so {delay} was left unsubstituted.
  • Skip --prepare / --conclude for a benchmark when the template contains {…} placeholders but the command has no parameters.
  • Document --reference in the README (extra baseline command, not a benchmark label) and expand --reference CLI help.

Test plan

  • cargo test --test integration_tests reference_skips_prepare_with_parameter_placeholders
  • cargo clippy -- -D warnings
  • CI

Fixes #847

When --reference is used with --prepare/--conclude templates that contain
{parameter} placeholders, skip those hooks for the reference benchmark (it has
no parameters to substitute). Document how --reference relates to parameterized
benchmarks.

Fixes #847

Co-authored-by: Cursor <cursoragent@cursor.com>
@wyf027

wyf027 commented May 16, 2026

Copy link
Copy Markdown
Author

CI green on all targets. Gentle ping when you have a moment — thanks!

@wyf027

wyf027 commented May 16, 2026

Copy link
Copy Markdown
Author

Friendly ping when convenient — documents --reference + parameterized --prepare/--conclude behavior (#847). CI green on all targets.

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.

Unclear how to use --reference with --prepare

1 participant