Rename the small data set
This commit is contained in:
parent
d8f34487dc
commit
2dc56ba47a
3 changed files with 5 additions and 9 deletions
|
@ -1,9 +1,9 @@
|
||||||
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
|
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
|
||||||
use rust_job_scheduling::algorithm::*;
|
use rust_job_scheduling::algorithm::*;
|
||||||
use rust_job_scheduling::data::SMALL;
|
use rust_job_scheduling::data::*;
|
||||||
use rust_job_scheduling::Task;
|
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]))] = &[
|
const TEST_FUNCS: &[(&str, &dyn Fn(&[Task]))] = &[
|
||||||
("single thread", &single_thread),
|
("single thread", &single_thread),
|
||||||
("rayon", &rayon),
|
("rayon", &rayon),
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
mod small;
|
mod t10;
|
||||||
|
|
||||||
pub use small::SMALL;
|
pub use t10::T_10;
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
use crate::Task;
|
use crate::Task;
|
||||||
|
|
||||||
pub const SMALL: &[Task] = &[
|
pub const T_10: &[Task] = &[
|
||||||
Task {
|
|
||||||
data: b"eb17a235c386039c41c65bf5",
|
|
||||||
cost: 500,
|
|
||||||
},
|
|
||||||
Task {
|
Task {
|
||||||
data: b"df33fd171cd4d311775ebe76",
|
data: b"df33fd171cd4d311775ebe76",
|
||||||
cost: 100,
|
cost: 100,
|
Loading…
Reference in a new issue