| Crates.io | benchme |
| lib.rs | benchme |
| version | 0.1.0 |
| created_at | 2019-04-18 06:10:39.487219+00 |
| updated_at | 2019-04-18 06:10:39.487219+00 |
| description | Macros to easily / cleanly benchmark code blocks |
| homepage | https://github.com/connorbp/benchme |
| repository | https://github.com/connorbp/benchme |
| max_upload_size | |
| id | 128635 |
| size | 2,299 |
A simple rust library to quickly benchmark your code blocks.
Check it out on crates.io
//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.");
}
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};