pressurize 0.0.1

Tools for benchmarking environments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(asm)]
use pressurize::counters;

// cargo +nightly build --example counters --features nightly
fn main() {
    // to be run in debug and nightly to be able to use ASM instructions in counter and 
    // not to optimize the loop away
    let counter =counters::Counter::by_name("instructions-minus-irqs:u").unwrap();
    for i in  0..99999999 {

    }
    println!("Instructions executed: {}", counter.since_start());
    ()
}