Crates.io | testmark |
lib.rs | testmark |
version | 0.1.1 |
source | src |
created_at | 2020-01-06 01:02:56.890832 |
updated_at | 2020-01-12 19:48:10.142615 |
description | A benchmark utility for the Rust programming language |
homepage | |
repository | |
max_upload_size | |
id | 195636 |
size | 4,236 |
A benchmark utility for the Rust programming language
use testmark::Testmark;
use testmark::Timer;
fn main() {
let mut bench: Testmark = Timer::new("Loop test");
bench.start();
let mut x: u64 = 42;
for i in 0..10000000 {
x = x + i;
}
bench.stop();
bench.print();
}