mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
New 'benchmark' module folder
This commit is contained in:
1 parent
cd38e9c63b
commit
e5e4c8c020
9 files changed
+11
-9
No files matched your search
@@ -1,10 +1,12 @@
|
||||
pub mod result;
|
||||
|
||||
use std::cmp;
|
||||
use std::process::{ExitStatus, Stdio};
|
||||
|
||||
use colored::*;
|
||||
use statistical::{mean, median, standard_deviation};
|
||||
|
||||
use crate::benchmark_result::BenchmarkResult;
|
||||
use crate::benchmark::result::BenchmarkResult;
|
||||
use crate::command::Command;
|
||||
use crate::format::{format_duration, format_duration_unit};
|
||||
use crate::min_max::{max, min};
|
||||
File renamed without changes.
@@ -1,4 +1,4 @@
|
||||
use crate::benchmark_result::BenchmarkResult;
|
||||
use crate::benchmark::result::BenchmarkResult;
|
||||
use crate::format::format_duration_value;
|
||||
use crate::relative_speed::{self, BenchmarkResultWithRelativeSpeed};
|
||||
use crate::units::Unit;
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ use std::borrow::Cow;
|
||||
use csv::WriterBuilder;
|
||||
|
||||
use super::Exporter;
|
||||
use crate::benchmark_result::BenchmarkResult;
|
||||
use crate::benchmark::result::BenchmarkResult;
|
||||
use crate::units::Unit;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ use serde::*;
|
||||
use serde_json::to_vec_pretty;
|
||||
|
||||
use super::Exporter;
|
||||
use crate::benchmark_result::BenchmarkResult;
|
||||
use crate::benchmark::result::BenchmarkResult;
|
||||
use crate::units::Unit;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::Exporter;
|
||||
use crate::benchmark_result::BenchmarkResult;
|
||||
use crate::benchmark::result::BenchmarkResult;
|
||||
use crate::format::format_duration_value;
|
||||
use crate::relative_speed::{self, BenchmarkResultWithRelativeSpeed};
|
||||
use crate::units::Unit;
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ use self::csv::CsvExporter;
|
||||
use self::json::JsonExporter;
|
||||
use self::markdown::MarkdownExporter;
|
||||
|
||||
use crate::benchmark_result::BenchmarkResult;
|
||||
use crate::benchmark::result::BenchmarkResult;
|
||||
use crate::units::Unit;
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
|
||||
+1
-2
@@ -4,7 +4,6 @@ use colored::*;
|
||||
|
||||
pub mod app;
|
||||
pub mod benchmark;
|
||||
pub mod benchmark_result;
|
||||
pub mod command;
|
||||
pub mod error;
|
||||
pub mod export;
|
||||
@@ -23,8 +22,8 @@ pub mod units;
|
||||
pub mod warnings;
|
||||
|
||||
use app::get_arg_matches;
|
||||
use benchmark::result::BenchmarkResult;
|
||||
use benchmark::{mean_shell_spawning_time, run_benchmark};
|
||||
use benchmark_result::BenchmarkResult;
|
||||
use command::{build_commands, Command};
|
||||
use export::ExportManager;
|
||||
use options::{Options, OutputStyleOption};
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use std::cmp::Ordering;
|
||||
|
||||
use crate::{benchmark_result::BenchmarkResult, units::Scalar};
|
||||
use crate::benchmark::result::BenchmarkResult;
|
||||
use crate::units::Scalar;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct BenchmarkResultWithRelativeSpeed<'a> {
|
||||
|
||||
Reference in new issue
Block a user