Skip to content

bench: publish lint CLI comparison with Bun lint - #1316

Draft
fireairforce wants to merge 2 commits into
mainfrom
zoomdong/release-benchmark
Draft

fireairforce wants to merge 2 commits into
mainfrom
zoomdong/release-benchmark

Conversation

@fireairforce

Copy link
Copy Markdown
Member

Summary

The existing comparison omitted utoo-lint's npm launcher and configuration loading. Add a published-CLI mode and a dated comparison of @utoo/lint 0.4.13, Bun lint canary, Oxlint 1.90.0, Biome 2.6.3, and ESLint 10.13.0, including a white-background PNG/SVG chart and unmodified raw timing records.

All tools receive the same 1,000 generated TypeScript files and the selected 12- or 49-rule profile. The runner validates isolated rules, the complete profile, clean controls, and actual input counts before timing. Explicit file lists avoid VCS-ignore differences; directory discovery is excluded equally for all tools. Five warmups precede 20 rotating, interleaved fresh-process samples.

CLI 12 rules median (ms) 49 rules median (ms)
utoo-lint 482.667 541.272
Bun lint (canary) 137.746 141.381
Oxlint 190.195 194.734
Biome 373.972 406.116
ESLint 2690.676 2801.086

Measured on an Apple M4 Pro, macOS arm64, Node 22.23.1. These are local desktop results for synthetic, shared non-type-aware rules; raw samples include timing ranges and host load. Bun's stable 1.4.4 binary did not expose lint, so the graph explicitly labels the pinned canary. The native-binary benchmark mode remains available.

Test Plan

  • Native 12-rule and published-CLI 49-rule smoke runs passed all five tools, including the full-profile and per-rule controls.
  • Both full comparisons passed: 1,000 files, zero corpus diagnostics, five warmups and 20 measured samples per tool.
  • Recomputed medians, matching corpus SHA-256, config/runner hashes, package versions, and clean sampling commit 8fa585d verified against both snapshots.
  • Published-CLI mode rejects UTOO_LINT_BIN; Node syntax checks and git diff --check pass.
  • Frozen/offline lockfile-only validation passes. Matplotlib chart generation and PNG/SVG visual inspection pass; invalid/missing-tool inputs are rejected.

@codspeed

codspeed Bot commented Oct 28, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 5 untouched benchmarks


Comparing zoomdong/release-benchmark (51c1a98) with main (cc9c4e1)

Open in CodSpeed

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.

1 participant