Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(benchmark): add radix-ui.jsx as a real world jsx example (#2304)
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: 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]>
- Loading branch information