increased quicksort list size to 10k

This commit is contained in:
Anton-4 2021-06-05 17:10:42 +02:00
parent 526481e847
commit df8d4cd270
4 changed files with 16 additions and 19 deletions

View file

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

View file

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