ibench

Crates.ioibench
lib.rsibench
version0.1.1
sourcesrc
created_at2023-10-15 20:34:00.907369
updated_at2023-10-15 20:36:10.068305
descriptionExtremely simple and small Rust library for quickly timing a closure
homepagehttps://github.com/Antosser/instant-benchmark-rs
repositoryhttps://github.com/Antosser/instant-benchmark-rs
max_upload_size
id1004102
size2,539
Anton Aparin (Antosser)

documentation

https://github.com/Antosser/instant-benchmark-rs

README

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.

Commit count: 0

cargo fmt