#measurement #criterion #cpu #events #papi #papi-measurement

criterion-papi

an alternative cpu measurement for criterion

1 unstable release

0.1.0 Sep 29, 2019

#29 in #criterion

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

~18–31MB
~512K SLoC