mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Move relative-speed computation to separate module
This commit is contained in:
1 parent
d5a2590b98
commit
76dd9d40f0
4 files changed
+100
-100
No files matched your search
+3
-2
@@ -19,6 +19,7 @@ pub mod options;
|
||||
pub mod outlier_detection;
|
||||
pub mod parameter_range;
|
||||
pub mod progress_bar;
|
||||
pub mod relative_speed;
|
||||
pub mod shell;
|
||||
pub mod timer;
|
||||
pub mod tokenize;
|
||||
@@ -49,8 +50,8 @@ pub fn write_benchmark_comparison(results: &[BenchmarkResult]) {
|
||||
return;
|
||||
}
|
||||
|
||||
if let Some(mut annotated_results) = internal::compute_relative_speed(results) {
|
||||
annotated_results.sort_by(|l, r| internal::compare_mean_time(l.result, r.result));
|
||||
if let Some(mut annotated_results) = relative_speed::compute(results) {
|
||||
annotated_results.sort_by(|l, r| relative_speed::compare_mean_time(l.result, r.result));
|
||||
|
||||
let fastest = &annotated_results[0];
|
||||
let others = &annotated_results[1..];
|
||||
|
||||
Reference in new issue
Block a user