⚡️ Perf: Run performance comparison for ts.JSDocParsingMode.ParseForTypeInfo
Author: JoshuaKGoldbergCreated Nov 12, 2023Updated Sep 27, 2026
Labelsperformanceteam assigned
Suggestion
Splitting out of https://devblogs.microsoft.com/typescript/announcing-typescript-5-3-beta/#optimizations-by-skipping-jsdoc-parsing -> https://github.com/typescript-eslint/typescript-eslint/pull/7821#discussion_r1386644754: we'd like to use the new JSDocParsingMode flag. But how beneficial is it, exactly? Let's run some kind of performance comparison to see.
From @bradzacher:
My original perf profiling way back when showed a decent chunk of time spent but things may have changed since then. Note: the more important time would be the non-type-aware lint time as type info would dwarf any savings we get.
#7870 is an example of me setting up a Hyperfine comparison.
Source: typescript-eslint/typescript-eslint