bench:check: run the benchmarks without dev checks #53
Loading…
Reference in a new issue
No description provided.
Delete branch "evobug/bench-no-dev-checks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
npm run bench:checkfailed on PRs: "match / switch, through the transform" measured 2.27x, past its limit of 1.92x.Cause: dev checks, not automatic library analysis.
scripts/bench-check.mjsstartednode --import …/register.mjs packages/std/bench/match.bench.tswith the caller's environment, so the Node loader added the dev checks. With those on,matchalso checks every variant it gets. The baseline of 0.96x was recorded beforematchhad that dev check, so the ratio has been sitting just under the limit since.Measured locally (
match/ switch):Fix: every benchmark bench-check starts now runs with
SAFE_TS_DEV_CHECKS=0, likenpm run benchalready does (#46). That's what production runs. The README's benchmark section says so.After the fix:
npm run bench:checkpasses, withmatch/ switch at 1.10x (limit 1.92x) and 29 ratios in 24 s.🤖 Generated with Claude Code