Appearance
基准测试
¥Benchmarking
设置
¥Setup
在运行基准测试之前,请使用以下方法设置必要的配置:
¥Before running the benchmarks, set up the necessary fixtures with:
shell
# in project root
just setup-benchRust 基准测试
¥Benchmarking in Rust
bench-rust 将自动构建 Rust 代码,因此你无需自行构建。
¥bench-rust will build the Rust code automatically, so you don't need to build yourself.
shell
# in project root
just bench-rustNode.js 基准测试
¥Benchmarking in Node.js
确保在发布模式下构建 Node.js 绑定:
¥Make sure to build the Node.js bindings in release mode:
shell
just build-rolldown-release然后运行
¥Then run
sh
just bench-node