1 unstable release
0.1.0 | Apr 18, 2019 |
---|
#1334 in Development tools
46 downloads per month
3KB
🦀 benchme 🐢
A simple rust library to quickly benchmark your code blocks.
Check it out on crates.io
🏎 usage 🚀
//run a quick benchmark
benchmark! {
//your super code goes here
println!("omaewamou SHINDEIRUUUUUU! {}", 999999999);
println!("NANI!?!?!?!?");
}
//or run a benchmark tagged with a name #[name_goes_here_AbCd123] (useful if you are benchmarking more than one thing)
benchmarknamed! {
//name that will be displayed for the benchmark output
#[weeeeeeee]
//my super intense code that I need to make sure is super mega fast
println!("To the moooooooon! 🚀");
println!("the yeet was yote.");
}
✳️ acquiring benchme ✅
add the following in your Cargo.toml
file:
benchme = "0.1.0"
and this in your super intensive needsabenchmark.rs
file:
#[macro_use]
extern crate benchme;
use std::time::{Instant};