#criterion #argument #measurement #cpu

criterion-papi

an alternative cpu measurement for criterion

1 unstable release

0.1.0 Sep 29, 2019
Download history 13/week @ 2021-05-25 16/week @ 2021-06-01 13/week @ 2021-06-08 7/week @ 2021-06-15 13/week @ 2021-06-22 15/week @ 2021-06-29 12/week @ 2021-07-06 12/week @ 2021-07-13 15/week @ 2021-07-20 17/week @ 2021-07-27 11/week @ 2021-08-03 12/week @ 2021-08-10 1/week @ 2021-08-17 6/week @ 2021-08-24 5/week @ 2021-08-31 9/week @ 2021-09-07

101 downloads per month

Apache-2.0

6KB
95 lines

criterion-papi

let mut c = criterion::Criterion::default()
    .with_measurement(criterion_papi::PapiMeasurement::new("PAPI_TOT_INS"))
    .configure_from_args();

It accepts any PAPI event as the argument of new, then the counter was used as measurement.

Dependencies

~29MB
~448K SLoC