#benchmark #testmark

bin+lib testmark

A benchmark utility for the Rust programming language

2 releases

✓ Uses Rust 2018 edition

0.1.1 Jan 12, 2020
0.1.0 Jan 6, 2020

#38 in Profiling


Used in tinystring

MIT license

3KB

testmark

A benchmark utility for the Rust programming language

Example use

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();
}

No runtime deps