Skip to content

Benchmark against stock tsgolint 7.0.2003 - #4

Merged
maschwenk merged 1 commit into
mainfrom
bench-stock-7.0.200x
Oct 15, 2026
Merged

maschwenk merged 1 commit into
mainfrom
bench-stock-7.0.200x

Conversation

@maschwenk

Copy link
Copy Markdown
Owner

since oct 8 every stock row in the bench says FAILED: stock. 560e1e6 put the 60th rule, no-generated-empty-object-type, in the payload, and stock 7.0.2002 exits with unknown rule: no-generated-empty-object-type. so the readme has had no speedup or memory ratios since.

this pins stock to 7.0.2003, the release that added the rule. i ran the 7.0.2002, 7.0.2003 and 7.0.2004 binaries (linux-x64 in docker, and darwin-arm64) on a payload with all 60 rules: 7.0.2002 panics with unknown rule, the other two report it.

i skipped 7.0.2004 on purpose. it moves the reported range of four rules (no-unnecessary-condition, no-unsafe-assignment, no-unsafe-return, no-unsafe-type-assertion) and tsrslint hasn't ported that. locally it took same diagnostics from 2 differ to 2,986 on xstate and from 5 to 15,281 on webpack, so the parity column would be noise.

the pin changes in bench/projects.json, run.py's docstring and caption (which now reads the version instead of hardcoding it), bench/README.md, bench.yml's header comment and the rule table note in rule_coverage.py. the readme's bench block and rule table are regenerated by the bench, so i didn't hand edit them. the monolith table stays on 7.0.2002 since that's what it measured.

bench on this branch passed in 27 min with cold caches: https://github.com/maschwenk/tsrslint/actions/runs/38780265124. same as the actions migration pr, i dropped the results commit from the branch so its skip-ci doesn't land in the squash. the artifact has the results.

project oct 6, depot 8 vcpu, 7.0.2002 now, actions 4 vcpu, 7.0.2003
vscode 4.29x 3.88x
mui-docs 5.41x 8.81x
xstate 2.89x 3.47x
webpack 3.70x 3.23x
cal-diy 4.07x 4.61x
formbricks-web 4.51x 4.75x
supabase-studio 4.07x 4.69x
t3code-server 4.96x 5.34x

different machines, so compare loosely. mui-docs jumps because stock takes 24 s there on 4 vcpu vs 11 s on depot, while tsrslint goes from 2.1 s to 2.7 s.

tsrslint's counts match the last run on every project and rule. stock's counts moved vs oct 6, all from 7.0.2003's rule fixes: the new rule adds the same 9/1/4/6 as tsrslint on vscode/cal-diy/formbricks/supabase, no-unnecessary-condition stops reporting inner operands of &&/|| chains used as values (1 to 14 fewer on six projects), no-deprecated catches aliases in object shorthand (+2 vscode, +1 cal-diy), no-duplicate-type-constituents allows ?: T | undefined on parameter properties (-3 vscode), unbound-method treats Intl.Collator compare as bound (-1 vscode). those are the new differ cells. the rest were there on oct 6: webpack's 3 non-nullable-type-assertion-style, and single diagnostics that flip between stock's own runs on t3code, formbricks and vscode. i reproduced vscode and cal-diy locally to check this per rule.

text differs went up on vscode (179 to 261) and webpack (16 to 27). the extra ones are all no-useless-default-assignment's preferOptionalSyntax, which lost its help text in 7.0.2003. the other projects are within oct 6's run to run spread.

this is based on the actions migration branch, so retarget to main after that merges.

upstream: the rule, the range change, and the fixes above.

written with claude code.

Stock 7.0.2002 exits with `unknown rule: no-generated-empty-object-type` since
the bench payload got its 60th rule, so every stock row has failed since Oct 8.
7.0.2003 is the first release with that rule. 7.0.2004 also has it but moves
the reported range of four rules (oxc-project/tsgolint#1271), which tsrslint
has not ported, so thousands of diagnostics per project would differ by range.

The table caption, bench/README.md and the rule table's note now name the
pinned stock version and the upstream fixes behind the few expected
disagreements and text differences.
@maschwenk
maschwenk merged commit af765b2 into main Oct 15, 2026
@maschwenk
maschwenk deleted the bench-stock-7.0.200x branch October 15, 2026 18:47
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