Skip to content

bench: add --cases to run chosen benchmark cases - #2526

Merged
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:bench-cases
Nov 27, 2026
Merged

sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:bench-cases

Conversation

@sbryngelson

Copy link
Copy Markdown
Member

Adds ./mfc.sh bench --cases, to run only the named benchmark cases, and shows in the PR template how to rerun a case that looks slower.

1. Does it solve the problem?

Command that shows it:

./mfc.sh bench -o rerun.yaml --cases ibm igr
Quantity master this PR expected
cases run by the command above option rejected ibm, igr ibm, igr
cases run without --cases all 8 all 8 all 8

Why the new result is right (analytic solution, reference data, convergence, ...): the tests run bench() with the case runs stubbed and record which cases are launched and written to the results file. An unknown name fails before anything runs and lists the valid names. An earlier version of the same code ran two named cases for two source trees on a Tuolumne GPU.

2. Does it create another one?

Check Result
Tests: command, number passed, number failed ./mfc.sh lint: 1033 passed, 0 failed; ./mfc.sh precheck passes
Golden files changed: count, largest difference, why 0
Not tested the template's rerun block on a GPU as written (run with a stand-in mfc.sh, including a failed benchmark, which leaves no table)

3. Is it slower?

N/A: no src/ or build files change.

The PR template shows how to rerun a case whose grind speedup is below the threshold.
@sbryngelson
sbryngelson requested a review from a team as a code owner November 26, 2026 23:57
@sbryngelson
sbryngelson requested review from wilfonba and removed request for a team November 26, 2026 23:57
@github-actions

Copy link
Copy Markdown

Claude Code Review

Head SHA: 53bcede

No review was produced. Claude ran but wrote no review (Claude step: failure). Run and transcript: https://github.com/MFlowCode/MFC/actions/runs/45913944903

@sbryngelson
sbryngelson merged commit 019731e into MFlowCode:master Nov 27, 2026
18 of 38 checks passed
@sbryngelson
sbryngelson deleted the bench-cases branch November 27, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant