mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 09:01:25 +00:00
Simplify run creation
This commit is contained in:
1 parent
c20fcc0bda
commit
f7e6d7286f
5 files changed
+159
-134
No files matched your search
+5
-5
@@ -68,7 +68,7 @@ impl Exporter for CsvExporter {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
use crate::benchmark::benchmark_result::{Parameter, Run};
|
||||
use crate::benchmark::benchmark_result::{Parameter, Run, Runs};
|
||||
|
||||
#[test]
|
||||
fn test_csv() {
|
||||
@@ -84,7 +84,7 @@ fn test_csv() {
|
||||
let results = vec![
|
||||
BenchmarkResult {
|
||||
command: String::from("command_a"),
|
||||
runs: vec![
|
||||
runs: Runs::new(vec![
|
||||
Run {
|
||||
wall_clock_time: 7.0,
|
||||
user_time: 7.0,
|
||||
@@ -106,7 +106,7 @@ fn test_csv() {
|
||||
memory_usage_byte: 1024,
|
||||
exit_code: Some(0),
|
||||
},
|
||||
],
|
||||
]),
|
||||
parameters: {
|
||||
let mut params = BTreeMap::new();
|
||||
params.insert(
|
||||
@@ -128,7 +128,7 @@ fn test_csv() {
|
||||
},
|
||||
BenchmarkResult {
|
||||
command: String::from("command_b"),
|
||||
runs: vec![
|
||||
runs: Runs::new(vec![
|
||||
Run {
|
||||
wall_clock_time: 17.0,
|
||||
user_time: 17.0,
|
||||
@@ -150,7 +150,7 @@ fn test_csv() {
|
||||
memory_usage_byte: 1024,
|
||||
exit_code: Some(0),
|
||||
},
|
||||
],
|
||||
]),
|
||||
parameters: {
|
||||
let mut params = BTreeMap::new();
|
||||
params.insert(
|
||||
|
||||
Reference in new issue
Block a user