benchme

Crates.iobenchme
lib.rsbenchme
version0.1.0
sourcesrc
created_at2019-04-18 06:10:39.487219
updated_at2019-04-18 06:10:39.487219
descriptionMacros to easily / cleanly benchmark code blocks
homepagehttps://github.com/connorbp/benchme
repositoryhttps://github.com/connorbp/benchme
max_upload_size
id128635
size2,299
Connor "segfault" Postma (ConnorBP)

documentation

README

🦀 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};
Commit count: 7

cargo fmt