mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
increased quicksort list size to 10k
This commit is contained in:
parent
526481e847
commit
df8d4cd270
4 changed files with 16 additions and 19 deletions
|
@ -17,7 +17,7 @@ fn bench_group_wall_time(c: &mut Criterion) {
|
||||||
bench_deriv, // nest deriv 8 f
|
bench_deriv, // nest deriv 8 f
|
||||||
bench_rbtree_ck, // ms = makeMap 5 80000
|
bench_rbtree_ck, // ms = makeMap 5 80000
|
||||||
bench_rbtree_delete, // m = makeMap 100000
|
bench_rbtree_delete, // m = makeMap 100000
|
||||||
bench_quicksort, // list size 2000
|
bench_quicksort, // list size 10000
|
||||||
];
|
];
|
||||||
|
|
||||||
for bench_func in bench_funcs.iter() {
|
for bench_func in bench_funcs.iter() {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -141,12 +141,11 @@ mod cli_run {
|
||||||
#[test]
|
#[test]
|
||||||
#[serial(quicksort)]
|
#[serial(quicksort)]
|
||||||
fn run_quicksort_not_optimized() {
|
fn run_quicksort_not_optimized() {
|
||||||
check_output_with_stdin(
|
check_output(
|
||||||
&example_file("benchmarks", "QuicksortApp.roc"),
|
&example_file("quicksort", "Quicksort.roc"),
|
||||||
"0",
|
"quicksort",
|
||||||
"quicksortapp",
|
|
||||||
&[],
|
&[],
|
||||||
"[ 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 6, 6, 8, 9 ]\n",
|
"[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2]\n",
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -154,12 +153,11 @@ mod cli_run {
|
||||||
#[test]
|
#[test]
|
||||||
#[serial(quicksort)]
|
#[serial(quicksort)]
|
||||||
fn run_quicksort_optimized() {
|
fn run_quicksort_optimized() {
|
||||||
check_output_with_stdin(
|
check_output(
|
||||||
&example_file("benchmarks", "QuicksortApp.roc"),
|
&example_file("quicksort", "Quicksort.roc"),
|
||||||
"0",
|
"quicksort",
|
||||||
"quicksortapp",
|
|
||||||
&["--optimize"],
|
&["--optimize"],
|
||||||
"[ 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 6, 6, 8, 9 ]\n",
|
"[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2]\n",
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -167,12 +165,11 @@ mod cli_run {
|
||||||
#[test]
|
#[test]
|
||||||
#[serial(quicksort)]
|
#[serial(quicksort)]
|
||||||
fn run_quicksort_optimized_valgrind() {
|
fn run_quicksort_optimized_valgrind() {
|
||||||
check_output_with_stdin(
|
check_output(
|
||||||
&example_file("benchmarks", "QuicksortApp.roc"),
|
&example_file("quicksort", "Quicksort.roc"),
|
||||||
"0",
|
"quicksort",
|
||||||
"quicksortapp",
|
|
||||||
&["--optimize"],
|
&["--optimize"],
|
||||||
"[ 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 6, 6, 8, 9 ]\n",
|
"[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2]\n",
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue