Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] [Contributions Welcome] Performance benchmarks #7

Open
gvergnaud opened this issue Feb 13, 2023 · 4 comments
Open

Comments

@gvergnaud
Copy link
Owner

We should add some tooling to easily compare how changes affect type-checking performance

@gvergnaud gvergnaud changed the title [Feature Request] Performance benchmarks [Feature Request] [Contributions Welcome] Performance benchmarks Feb 13, 2023
@ecyrbe
Copy link
Collaborator

ecyrbe commented Feb 13, 2023

Yes, automating this will require using tsc compiler to :

  • no emit : just typechecking
  • emit : measure impact on real builds
  • maybe also check ts language server timings

I'm not too familiar with ts language server. first two should not pose any challenge

@gvergnaud
Copy link
Owner Author

@webNeat
Copy link

webNeat commented Aug 28, 2023

I am working on a library that may be helpful https://github.com/webNeat/ts-perf

it's still in beta as I am still experimenting different approaches to it.

My goal is to have a command line that can do the following

$ ts-perf tests/**/*.bench.ts

tests/foo.bench.ts  124ms
tests/bar.bench.ts   241ms
...

@g4rcez
Copy link

g4rcez commented Jan 19, 2024

Arktype now has a benchmark tool. This can be useful for tests and benchmarks

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

No branches or pull requests

4 participants