-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
benchmark: create benchmark for typescript #54904
benchmark: create benchmark for typescript #54904
Conversation
Review requested:
|
IIRC, dead-code elimination may affect the becnhmark, so setting a variable, and later asserting it will prevent that. |
There's no guarantee on that. It's just an assumption that might not be true. However, it's recommended to do it. |
bdfb933
to
b8e57a3
Compare
3489ce0
to
5bafadd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the only way to measure this is by spawning a new process or possibly a worker thread.
5bafadd
to
a8d3872
Compare
a8d3872
to
f7bda51
Compare
@mcollina can this land? I believe the request has been resolved since with the query param the modules are not cached |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Landed in 00d4f80 |
PR-URL: #54904 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
PR-URL: nodejs#54904 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Some benchmarks for
--experimental-strip-types
and--experimental-transform-types
.First time writing a benchmark so open to suggestions