mirror of
https://github.com/danbulant/oxc
synced 2026-05-21 05:08:45 +00:00
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 <boshenc@gmail.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||