Rename the small data set

This commit is contained in:
Rodolphe Bréard 2024-10-30 21:54:25 +01:00
parent d8f34487dc
commit 2dc56ba47a
3 changed files with 5 additions and 9 deletions

View file

@ -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),

View file

@ -1,3 +1,3 @@
mod small;
mod t10;
pub use small::SMALL;
pub use t10::T_10;

View file

@ -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,