chore: add performance package with a project service hyperfine comparison #7870
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.
PR Checklist
Overview
Adds two forms of very rudimentary performance testing:
comparison
job: . Runs a matrix of commands on generated code with my old favorite https://github.com/sharkdp/hyperfine. Uses the Mac runner purely so thatbrew install
can be used..js
files that aren't included in the TSConfig and 50%.ts
files that are included.summary
job: runs a directconsole.table
showing the results of running the two kinds of linting onceyarn test:project
: Traditionalproject: true
yarn test:service
EXPERIMENTAL_useProjectService
yarn test:service:seeded
:EXPERIMENTAL_useProjectService
, withallowDefaultProjectFallbackFilesGlobs
Example output from
yarn test:summary
on my M1 Max Mac ((index)
is generated file count):Includes roughly the changes from #7752 for testing purposes. But an earlier, scrappier version of them.