- A --filter that selects no scenario is an error, so --save can't
write an empty baseline.
- edit.sumifs and edit.lookup derive their expected values from the
rows actually generated, so any --rows passes.
- edit.lookup edits the key of a checked lookup (XLOOKUP falls back to 0
when it is gone), so a lookup that stops recalculating fails the check.
- enter.formulas clears B1:Bn untimed before each run, so it times entry
into empty cells, not an overwrite of the previous run's formulas.
- xtask: a relative CARGO_TARGET_DIR resolves against the workspace
root, as cargo does for the bench; an existing baseline that doesn't
parse is an error instead of "no baseline".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ten scenarios (crates/engine/examples/bench.rs, replacing the ad-hoc perf
example) build their workbooks in code, warm up, and time edits, formula
entry, Calculate Now, sort and XLSX save/open through Session::execute,
checking each result so a scenario that stops recalculating fails instead
of getting fast. A failed scenario is reported and the rest still run.
`cargo xtask bench` runs them in release, writes <target>/bench/latest.json
and compares with a baseline saved by --save.
Baseline (M2 Pro, 100k rows): a 100k-dependent edit recalculates in
90-106 ms; 100 whole-column SUMIFS take ~0.5 s per edit. xlsx.open fails
on main: the #2413 element cap drops the last ~9,000 rows of the 100k-row
model on reopen (fixed by #2527). Parity docs, gaps and roadmap carry the
measured numbers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>