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

Test typescript performance #678

Open
saiichihashimoto opened this issue Jan 30, 2024 · 3 comments
Open

Test typescript performance #678

saiichihashimoto opened this issue Jan 30, 2024 · 3 comments
Labels
help wanted Please help me! I'm lonely.

Comments

@saiichihashimoto
Copy link
Owner

saiichihashimoto commented Jan 30, 2024

It would be really nice to test the performance of type checking, similar to jest's testTimeout (which I'm fairly confident only sets a timeout for the runtime of the test, not the compile time. I want to be able to confidently claim that it's fast in your IDE, but I don't know how to test that.

I know about typescript's performance tracing wiki but it would be nice to have an automated way to determine the speed of the typing portion, preferably of my tests.

Essentially, I'd like to eliminate the desire for something like ts-simplify and try to hone in performance issues (and eliminate performance regressions).

@saiichihashimoto saiichihashimoto added the help wanted Please help me! I'm lonely. label Jan 30, 2024
@ickynavigator
Copy link

i can take a look at some of this (trying it on my system and sometimes the loading time for TS is frustrating)

@saiichihashimoto
Copy link
Owner Author

I know it's been quite a while! @ickynavigator is this something you've been able to look at at all? I still don't really know how to test a typescript library's performance directly like this.

@ickynavigator
Copy link

hey @saiichihashimoto, i mostly use sanity's generated types now but i'm more than happy to check this out! I think ArkType has a tool for testing type performances, it should be called @arktype/attest or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Please help me! I'm lonely.
Projects
None yet
Development

No branches or pull requests

2 participants