#benchmark #bench #library #time

ibench

Extremely simple and small Rust library for quickly timing a closure

2 releases

0.1.1 Oct 15, 2023
0.1.0 Oct 15, 2023

#231 in Profiling

34 downloads per month

MIT license

3KB

Instant Benchmark

Extremely simple and small Rust library for quickly timing a closure

Usage

use ibench::{time, print_time};

fn function() {
    for _ in 0..100_000_000 {}
}

time(function); // returns duration

print_time(function) // prints time in human-readable format

LICENSE

Copying and distribution of this file, with or without modification, are permitted in any medium provided you do not contact the author about the file or any problems you are having with the file.

No runtime deps