Skip to content

Commit

Permalink
Merge pull request #178 from 56quarters/check-output
Browse files Browse the repository at this point in the history
Change output from `mc check` to group operations by type
  • Loading branch information
56quarters authored Aug 14, 2024
2 parents 5240e9f + f4145d3 commit 27b9379
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions mtop/src/bin/mc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,47 +651,47 @@ fn print_bench_results(results: &[Summary]) {

fn print_check_results(results: &Bundle) {
println!(
"type=min overall={:.6}s dns={:.6}s connection={:.6}s set={:.6}s get={:.6}s",
"type=overall min={:.6}s max={:.6}s avg={:.6}s stddev={:.6}s failures={}",
results.overall.min.as_secs_f64(),
results.dns.min.as_secs_f64(),
results.connections.min.as_secs_f64(),
results.sets.min.as_secs_f64(),
results.gets.min.as_secs_f64()
results.overall.max.as_secs_f64(),
results.overall.avg.as_secs_f64(),
results.overall.std_dev.as_secs_f64(),
results.failures.total,
);

println!(
"type=max overall={:.6}s dns={:.6}s connection={:.6}s set={:.6}s get={:.6}s",
results.overall.max.as_secs_f64(),
"type=dns min={:.6}s max={:.6}s avg={:.6}s stddev={:.6}s failures={}",
results.dns.min.as_secs_f64(),
results.dns.max.as_secs_f64(),
results.connections.max.as_secs_f64(),
results.sets.max.as_secs_f64(),
results.gets.max.as_secs_f64(),
results.dns.avg.as_secs_f64(),
results.dns.std_dev.as_secs_f64(),
results.failures.dns,
);

println!(
"type=avg overall={:.6}s dns={:.6}s connection={:.6}s set={:.6}s get={:.6}s",
results.overall.avg.as_secs_f64(),
results.dns.avg.as_secs_f64(),
"type=connection min={:.6}s max={:.6}s avg={:.6}s stddev={:.6}s failures={}",
results.connections.min.as_secs_f64(),
results.connections.max.as_secs_f64(),
results.connections.avg.as_secs_f64(),
results.sets.avg.as_secs_f64(),
results.gets.avg.as_secs_f64()
results.connections.std_dev.as_secs_f64(),
results.failures.connections,
);

println!(
"type=stddev overall={:.6}s dns={:.6}s connection={:.6}s set={:.6}s get={:.6}s",
results.overall.std_dev.as_secs_f64(),
results.dns.std_dev.as_secs_f64(),
results.connections.std_dev.as_secs_f64(),
"type=set min={:.6}s max={:.6}s avg={:.6}s stddev={:.6}s failures={}",
results.sets.min.as_secs_f64(),
results.sets.max.as_secs_f64(),
results.sets.avg.as_secs_f64(),
results.sets.std_dev.as_secs_f64(),
results.gets.std_dev.as_secs_f64()
results.failures.sets,
);

println!(
"type=failures total={} dns={} connection={} set={} get={}",
results.failures.total,
results.failures.dns,
results.failures.connections,
results.failures.sets,
"type=get min={:.6}s max={:.6}s avg={:.6}s stddev={:.6}s failures={}",
results.gets.min.as_secs_f64(),
results.gets.max.as_secs_f64(),
results.gets.avg.as_secs_f64(),
results.gets.std_dev.as_secs_f64(),
results.failures.gets,
);
}

0 comments on commit 27b9379

Please sign in to comment.