mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Support hardware counters (instructions, cache misses, ...) (#983)
* Add hardware counters to JSON exports * Clarify Linux hardware counter setup
This commit is contained in:
1 parent
ab86cb99cc
commit
bc3a3f0524
13 files changed
+432
-34
No files matched your search
@@ -91,6 +91,16 @@ impl UnsafeRawValue for Information {
|
||||
}
|
||||
}
|
||||
|
||||
impl UnsafeRawValue for Ratio {
|
||||
fn unsafe_raw_value(&self) -> f64 {
|
||||
self.get::<ratio>()
|
||||
}
|
||||
|
||||
fn unsafe_from_raw_value(value: f64) -> Self {
|
||||
Ratio::new::<ratio>(value)
|
||||
}
|
||||
}
|
||||
|
||||
fn standard_deviation_f64(values: &[f64]) -> f64 {
|
||||
let mean_value = mean(values.iter().copied());
|
||||
|
||||
|
||||
Reference in new issue
Block a user