Remove command_with_unused_parameters field

This commit is contained in:
David Peter authored and David Peter committed 2026-10-05 15:56:52 +02:00
1 parent ae0035ad56
commit af4422d212
7 files changed
+38 -92

No files matched your search

+1 -3
View File
@@ -68,7 +68,7 @@ impl Exporter for CsvExporter {
}
#[cfg(test)]
use crate::benchmark::benchmark_result::BenchmarkRun;
use crate::benchmark::benchmark_result::{BenchmarkRun, Parameter};
#[test]
fn test_csv() {
@@ -84,7 +84,6 @@ fn test_csv() {
let results = vec![
BenchmarkResult {
command: String::from("command_a"),
command_with_unused_parameters: String::from("command_a"),
runs: vec![
BenchmarkRun {
wall_clock_time: 7.0,
@@ -129,7 +128,6 @@ fn test_csv() {
},
BenchmarkResult {
command: String::from("command_b"),
command_with_unused_parameters: String::from("command_b"),
runs: vec![
BenchmarkRun {
wall_clock_time: 17.0,
+1 -1
View File
@@ -51,7 +51,7 @@ pub trait MarkupExporter {
let measurement = &entry.result;
// prepare data row strings
let cmd_str = measurement
.command_with_unused_parameters
.command_with_unused_parameters()
.replace('|', "\\|");
let mean_str = format_duration_value(measurement.mean(), Some(unit)).0;
let stddev_str = if let Some(stddev) = measurement.stddev() {
-8
View File
@@ -27,7 +27,6 @@ fn test_markup_export_auto_ms() {
let results = [
BenchmarkResult {
command: String::from("sleep 0.1"),
command_with_unused_parameters: String::from("sleep 0.1"),
runs: vec![
BenchmarkRun {
wall_clock_time: 0.09,
@@ -55,7 +54,6 @@ fn test_markup_export_auto_ms() {
},
BenchmarkResult {
command: String::from("sleep 2"),
command_with_unused_parameters: String::from("sleep 2"),
runs: vec![
BenchmarkRun {
wall_clock_time: 2.0,
@@ -128,7 +126,6 @@ fn test_markup_export_auto_s() {
let results = [
BenchmarkResult {
command: String::from("sleep 2"),
command_with_unused_parameters: String::from("sleep 2"),
runs: vec![
BenchmarkRun {
wall_clock_time: 2.1,
@@ -156,7 +153,6 @@ fn test_markup_export_auto_s() {
},
BenchmarkResult {
command: String::from("sleep 0.1"),
command_with_unused_parameters: String::from("sleep 0.1"),
runs: vec![
BenchmarkRun {
wall_clock_time: 0.1,
@@ -229,7 +225,6 @@ fn test_markup_export_manual_ms() {
let timing_results = [
BenchmarkResult {
command: String::from("sleep 2"),
command_with_unused_parameters: String::from("sleep 2"),
runs: vec![
BenchmarkRun {
wall_clock_time: 2.1,
@@ -257,7 +252,6 @@ fn test_markup_export_manual_ms() {
},
BenchmarkResult {
command: String::from("sleep 0.1"),
command_with_unused_parameters: String::from("sleep 0.1"),
runs: vec![
BenchmarkRun {
wall_clock_time: 0.1,
@@ -329,7 +323,6 @@ fn test_markup_export_manual_s() {
let results = [
BenchmarkResult {
command: String::from("sleep 2"),
command_with_unused_parameters: String::from("sleep 2"),
runs: vec![
BenchmarkRun {
wall_clock_time: 2.01,
@@ -357,7 +350,6 @@ fn test_markup_export_manual_s() {
},
BenchmarkResult {
command: String::from("sleep 0.1"),
command_with_unused_parameters: String::from("sleep 0.1"),
runs: vec![
BenchmarkRun {
wall_clock_time: 0.11,