From 2dc56ba47add930f03a86f57572ffd3fbec23ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Wed, 30 Oct 2024 21:54:25 +0100 Subject: [PATCH] Rename the small data set --- benches/job_scheduling.rs | 4 ++-- src/data.rs | 4 ++-- src/data/{small.rs => t10.rs} | 6 +----- 3 files changed, 5 insertions(+), 9 deletions(-) rename src/data/{small.rs => t10.rs} (87%) diff --git a/benches/job_scheduling.rs b/benches/job_scheduling.rs index 3ac854d..8a6c0d7 100644 --- a/benches/job_scheduling.rs +++ b/benches/job_scheduling.rs @@ -1,9 +1,9 @@ use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion}; use rust_job_scheduling::algorithm::*; -use rust_job_scheduling::data::SMALL; +use rust_job_scheduling::data::*; use rust_job_scheduling::Task; -const TEST_DATA: &[(&str, &[Task])] = &[("small", SMALL)]; +const TEST_DATA: &[(&str, &[Task])] = &[("10 tasks", T_10)]; const TEST_FUNCS: &[(&str, &dyn Fn(&[Task]))] = &[ ("single thread", &single_thread), ("rayon", &rayon), diff --git a/src/data.rs b/src/data.rs index 7bc3e4c..1e57649 100644 --- a/src/data.rs +++ b/src/data.rs @@ -1,3 +1,3 @@ -mod small; +mod t10; -pub use small::SMALL; +pub use t10::T_10; diff --git a/src/data/small.rs b/src/data/t10.rs similarity index 87% rename from src/data/small.rs rename to src/data/t10.rs index 17b6445..5b38206 100644 --- a/src/data/small.rs +++ b/src/data/t10.rs @@ -1,10 +1,6 @@ use crate::Task; -pub const SMALL: &[Task] = &[ - Task { - data: b"eb17a235c386039c41c65bf5", - cost: 500, - }, +pub const T_10: &[Task] = &[ Task { data: b"df33fd171cd4d311775ebe76", cost: 100,