Skip to content

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

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

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

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 16, 2026

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

Made with Cursor

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 sharkdp#847

Co-authored-by: Cursor <cursoragent@cursor.com>
@leno23
Copy link
Copy Markdown
Author

leno23 commented May 16, 2026

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

@leno23
Copy link
Copy Markdown
Author

leno23 commented May 16, 2026

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