-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
chore(benchmark): add radix-ui.jsx as a real world jsx example #2304
Conversation
✅ Deploy Preview for oxc canceled.
|
CodSpeed Performance ReportMerging #2304 will not alter performanceComparing Summary
Benchmarks breakdown
|
Let me copy this file over to oxc-project/benchmark-files, since this file can change overtime. |
Ah of course, I didn't consider that the files could change. Doh! I should have used a permalink. If you prefer to avoid hosting the files in an OXC repo, here's the permalink for the one I added: Not sure which file you took from cal.com, but could take the same approach for that. If you want to, let me know which file and I'll make a PR. |
It's already done ;-) |
OK cool! |
…roject#2304) Following oxc-project#2297, this adds another benchmark. This one is from radix-ui website. I've chosen this particular file because it differs from the other benchmark sources in 3 ways: 1. JSX not TSX (despite the file extension). 2. Contains no logic, only JSX component hierarchy, and content text. 3. Very small (60 LOC). The last is particularly important, I think. Often developers will be working on small files (single component per file convention). And some possible directions for the parser (SIMD etc) involve optimizing chewing through chunks of text, with a de-opt at the end to process the final batch of bytes. If that imposes a penalty on short files, this benchmark will surface it. --------- Co-authored-by: Boshen <[email protected]>
Following #2297, this adds another benchmark.
This one is from radix-ui website. I've chosen this particular file because it differs from the other benchmark sources in 3 ways:
The last is particularly important, I think. Often developers will be working on small files (single component per file convention). And some possible directions for the parser (SIMD etc) involve optimizing chewing through chunks of text, with a de-opt at the end to process the final batch of bytes. If that imposes a penalty on short files, this benchmark will surface it.