跳至正文

性能测试

设置

在运行性能测试之前,使用以下设置必要的固定装置

shell
# in project root
just setup-bench

在 Rust 中进行性能测试

bench-rust 将自动构建 Rust 代码,因此您不需要自己构建。

shell
# in project root
just bench-rust

在 Node.js 中进行性能测试

确保在发布模式下构建 Node.js 绑定

shell
just build native release

然后运行

sh
just bench-node

根据 MIT 许可证发布。