cargo test 直接把我们的 benchmark 代码当作单元测试处理了,因此没有任何性能测试的结果产生。 对此,需要使用 cargo bench 命令:. $ cargo bench running 2 tests test ...
確定! 回上一頁