Repository navigation
Benchmark against stock tsgolint 7.0.2003 - #4
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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 | undefinedon 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.