Skip to content

Commit

Permalink
one measurement per line
Browse files Browse the repository at this point in the history
  • Loading branch information
danking committed Dec 11, 2024
1 parent f1d631e commit e41e57a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions bench-vortex/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,9 @@ pub fn render_table(all_measurements: Vec<Measurement>, formats: &[Format]) -> a
}

pub fn print_measurements_json(all_measurements: Vec<Measurement>) -> anyhow::Result<()> {
let measurements = all_measurements
.into_iter()
.map(|v| v.to_json())
.collect::<Vec<_>>();

let output = serde_json::to_string(&measurements)?;

print!("{output}");
for measurement in all_measurements {
println!("{}", serde_json::to_string(&mesaurement.to_json()))
}

Ok(())
}
Expand Down

0 comments on commit e41e57a

Please sign in to comment.