Skip to content
forked from ConnorBP/benchme

A simple rust library to quickly benchmark your code blocks.

License

Notifications You must be signed in to change notification settings

Centril/benchme

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦀 benchme 🐢

A simple rust library to quickly benchmark your code blocks.

Check it out on crates.io

benchme 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};

About

A simple rust library to quickly benchmark your code blocks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%