chairmark 0.1.0

benchmarking library without unstable stuff
Documentation
  • Coverage
  • 97.06%
    33 out of 34 items documented3 out of 31 items with examples
  • Size
  • Source code size: 23.86 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.11 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Anonym234/Chairmark
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Anonym234

Chairmark

A benchmaking library in rust.

quick start

use chairmark::{chair, agg_and_cmp};

// custom function for sorting data
fn bubblesort(data: &mut Vec<u32>) {
    /* your fancy sorting algorithm */
}

fn main() {
    const RUNS: usize = 1_000;
    let prepare = |_| (0u32..1_000).collect();
    let bubblesort = chair_prepare(RUNS, prepare, |mut data| bubblesort(&mut data));
    let std = chair_prepare(RUNS, prepare, |mut data| data.sort());

    let compare = agg_and_cmp![std, bubblesort];
    println!("{}", compare);
}

TODOs

  • add more examples in README