Rust 支持基准测试来测试用户代码的性能。 ... [feature(test)] extern crate test; pub fn add_two(a: i32) -> i32 { a + 2 } #[cfg(test)] mod tests ...
確定! 回上一頁