Commit Graph
5 Commits
Author SHA1 Message Date
nihilist-narwhalandClaude Opus 5.5 d56e3638fd M-perf: bench: recalc.full recalculates a stale result; malformed --rows/--reps is an error
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:42:45 -06:00
nihilist-narwhalandClaude Opus 5.5 f17f730887 M-perf: bench: median of an even count averages the middle two
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:42:45 -06:00
nihilist-narwhalandClaude Opus 5.5 a4aee78391 M-perf: bench: Scenario type alias (clippy type_complexity)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:42:45 -06:00
nihilist-narwhalandClaude Opus 5.5 815627264f bench: address review (empty filter, row-count-exact checks, fresh formula entry)
- 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>
2026-11-14 19:42:45 -06:00
nihilist-narwhalandClaude Opus 5.5 b98a7c43de cargo xtask bench: calculation benchmarks on fixed in-code workbooks
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>
2026-11-14 19:42:45 -06:00