Skip to content

所有基准

🌐 All Benchmarks

解析器

🌐 Parser

Oxc 的解析器至少比 swc 快 3 倍,比 Biome 快 5 倍。

🌐 Oxc's parser is at least 3x faster than swc and 5x faster than Biome.

请注意,这与 Biome 并非直接可比。Biome 的解析器生成的是 CST而不是 AST,这需要更多的工作。

🌐 Please note that it is not an apple-to-apple comparison with Biome. Biome's parser produces a CST instead of an AST, which requires a lot more work.

查看仓库 bench-javascript-parser-written-in-rust

🌐 See repository bench-javascript-parser-written-in-rust.

转换器

🌐 Transformer

  • 与 swc 相比,oxc Transformer 的速度快 4 倍,使用的内存少 20%,并且包大小比 swc 小 35MB(swc 为 37MB)。
  • 与 Babel 相比,OXC Transformer 的速度快了 40 倍,内存使用量减少 70%,体积小了 19 MB,并且少安装 168 个 npm 包。

查看代码仓库 bench-transformer

🌐 See repository bench-transformer.

代码检查工具

🌐 Linter

Oxlint 比 ESLint 快 50 到 100 倍,具体取决于 CPU 核心数量。

🌐 Oxlint is 50x - 100x faster than ESLint depending on the number of CPU cores.

请参阅仓库 bench-javascript-linter

🌐 See repository bench-javascript-linter.

格式化器

🌐 Formatter

Oxfmt 比 Biome 快 3 倍,比 Prettier 快 35 倍。

🌐 Oxfmt is 3x faster than Biome, 35x faster than prettier.

查看代码仓库 bench-formatter

🌐 See repository bench-formatter.

解释器

🌐 Resolver

oxc-resolver 比 webpack 的 enhanced-resolve 快 30 倍。

查看代码仓库 bench-resolver

🌐 See repository bench-resolver.