-
Notifications
You must be signed in to change notification settings - Fork 15
New Workload: TypeScript standalone #117
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for webkit-jetstream-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Seems like a good workload, although sadly on it's last legs... I guess it will become a wasm benchmark when the Go transition happens 🙂
Can we add a README.md with the steps to rebuild?
Added README and license. |
Looks like this test also has a bunch of comments that have non-latin1 characters in them. We should probably fix that. That said, I'm a bit conflicted. It seems like this benchmark combines .ts source files into the final script, which seems odd. I would've expected that the |
Fair point, let me change that to something where we load the resources (.ts sources) separately and feed them as JS strings to |
|
@camillobruni @kmiller68 One question I would like to discuss is whether we should include TypeScript test given that TypeScript mainline compiler is moving to golang. https://github.com/microsoft/typescript-go |
That's a fair point. Some points:
In short, if we don't want this one I think we need a solid replacement. I'd weight the need for more diverse workloads currently higher than whether or not it's realistic long term (and this is supposed to be a replacement for the existing typescript). Alternatives: What's your take on these points? |
I spoke to Yusuke offline, we think the workload is fine. Maybe we can make the migration to Go slower than the JS version 🙂 and if/when that happens we can replace this with something else for JS4+ |
Definitely happy with keeping things a moving target 👍 nothing worse than a non-evovling benchmark suite. |
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.
Overall, LGTM but we can also address those after merging.
@@ -1824,7 +1824,7 @@ let BENCHMARKS = [ | |||
iterations: 15, | |||
worstCaseCount: 2, | |||
deterministicRandom: true, | |||
tags: ["Default", "Octane"], | |||
tags: ["Default", "Octane", "typescript"], |
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.
We should disable this if we're going to enable a more modern version of the same workload.
iterations: 3, | ||
worstCaseCount: 2, |
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.
With this setup worst is the same as average since first is excluded from those measurements. I wouldn't be opposed to running this as a single iteration given how slow it is and that's likely the use case anyway (unless we want to have the latter iterations be incremental via a .tsbuildinfo
).
Runs a in-memory typescript compilation of the
immer
library.npm run build
downloads and buildsrc/gen
in-memory file contents for 3 different libs (for local testing)