Skip to content

Commit

Permalink
fix histogram crate usage
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Sep 4, 2024
1 parent d6b4fde commit 2e6bdee
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions crates/index/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,24 @@ fn check<P: AsRef<Path>>(output: P, quick: bool) -> Result<(), Box<dyn std::erro
info!("v: {}", vsize.to_string());

if !quick && kcount > 0 {
info!("max v: {}", vcounts.percentile(100.0).unwrap().count());
info!(
"max v: {}",
vcounts.percentile(100.0).unwrap().into_iter().count()
);
// info!("mean v: {}", vcounts.mean().unwrap());
// info!("stddev: {}", vcounts.stddev().unwrap());
info!("median v: {}", vcounts.percentile(50.0).unwrap().count());
info!("p25 v: {}", vcounts.percentile(25.0).unwrap().count());
info!("p75 v: {}", vcounts.percentile(75.0).unwrap().count());
info!(
"median v: {}",
vcounts.percentile(50.0).unwrap().into_iter().count()
);
info!(
"p25 v: {}",
vcounts.percentile(25.0).unwrap().into_iter().count()
);
info!(
"p75 v: {}",
vcounts.percentile(75.0).unwrap().into_iter().count()
);
}

info!("Finished check");
Expand Down

0 comments on commit 2e6bdee

Please sign in to comment.