mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 17:00:18 +00:00
Move functionality to scheduler
This commit is contained in:
1 parent
4e8b506c3c
commit
455717a393
10 files changed
+514
-514
No files matched your search
@@ -0,0 +1,46 @@
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::util::units::Second;
|
||||
|
||||
/// Set of values that will be exported.
|
||||
// NOTE: `serde` is used for JSON serialization, but not for CSV serialization due to the
|
||||
// `parameters` map. Update `src/hyperfine/export/csv.rs` with new fields, as appropriate.
|
||||
#[derive(Debug, Default, Clone, Serialize, PartialEq)]
|
||||
pub struct BenchmarkResult {
|
||||
/// The command that was run
|
||||
pub command: String,
|
||||
|
||||
/// The mean run time
|
||||
pub mean: Second,
|
||||
|
||||
/// The standard deviation of all run times. Not available if only one run has been performed
|
||||
pub stddev: Option<Second>,
|
||||
|
||||
/// The median run time
|
||||
pub median: Second,
|
||||
|
||||
/// Time spend in user space
|
||||
pub user: Second,
|
||||
|
||||
/// Time spent in system space
|
||||
pub system: Second,
|
||||
|
||||
/// Min time measured
|
||||
pub min: Second,
|
||||
|
||||
/// Max time measured
|
||||
pub max: Second,
|
||||
|
||||
/// All run time measurements
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub times: Option<Vec<Second>>,
|
||||
|
||||
/// All run exit codes
|
||||
pub exit_codes: Vec<Option<i32>>,
|
||||
|
||||
/// Any parameter values used
|
||||
#[serde(skip_serializing_if = "BTreeMap::is_empty")]
|
||||
pub parameters: BTreeMap<String, String>,
|
||||
}
|
||||
Reference in new issue
Block a user