diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-01-05 10:55:38 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-01-05 10:55:38 +0200 |
commit | c3f951dfc552d52e568864913f0e0e632827c24a (patch) | |
tree | a00a0f469bfa18dbb8ace6de866474e224abf4a5 | |
parent | 5fbd5a2ee98badc71867d2e7fce4d1429189267a (diff) | |
download | obnam-benchmark-c3f951dfc552d52e568864913f0e0e632827c24a.tar.gz |
refactor: rename Result to SuiteMeasurements
Sponsored-by: author
-rw-r--r-- | src/bin/obnam-benchmark.rs | 4 | ||||
-rw-r--r-- | src/result.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/obnam-benchmark.rs b/src/bin/obnam-benchmark.rs index f079d75..b0ff016 100644 --- a/src/bin/obnam-benchmark.rs +++ b/src/bin/obnam-benchmark.rs @@ -1,6 +1,6 @@ use log::{debug, error, info}; use obnam_benchmark::junk::junk; -use obnam_benchmark::result::Result; +use obnam_benchmark::result::SuiteMeasurements; use obnam_benchmark::specification::Specification; use obnam_benchmark::suite::Suite; use std::fs::File; @@ -71,7 +71,7 @@ impl Run { info!("running benchmarks from {}", self.spec.display()); let spec = Specification::from_file(&self.spec)?; let mut suite = Suite::new()?; - let mut result = Result::default(); + let mut result = SuiteMeasurements::default(); for step in spec.steps().iter() { result.push(suite.execute(step)?); } diff --git a/src/result.rs b/src/result.rs index 9e4119b..b51a154 100644 --- a/src/result.rs +++ b/src/result.rs @@ -1,7 +1,7 @@ use serde::Serialize; #[derive(Debug, Default, Serialize)] -pub struct Result { +pub struct SuiteMeasurements { measurements: Vec<OpMeasurements>, } @@ -33,7 +33,7 @@ pub enum Operation { CompareManiests, } -impl Result { +impl SuiteMeasurements { pub fn push(&mut self, m: OpMeasurements) { self.measurements.push(m); } |