mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 00:40: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,7 +3,7 @@ use std::io::{Error, ErrorKind, Result};
|
||||
use super::Exporter;
|
||||
use crate::benchmark_result::BenchmarkResult;
|
||||
use crate::format::format_duration_value;
|
||||
use crate::internal::{compute_relative_speed, BenchmarkResultWithRelativeSpeed};
|
||||
use crate::relative_speed::{self, BenchmarkResultWithRelativeSpeed};
|
||||
use crate::units::Unit;
|
||||
|
||||
#[derive(Default)]
|
||||
@@ -22,7 +22,7 @@ impl Exporter for MarkdownExporter {
|
||||
Unit::Second
|
||||
};
|
||||
|
||||
if let Some(annotated_results) = compute_relative_speed(results) {
|
||||
if let Some(annotated_results) = relative_speed::compute(results) {
|
||||
let mut destination = start_table(unit);
|
||||
|
||||
for result in annotated_results {
|
||||
|
||||
Reference in new issue
Block a user