mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +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_rbtree_ck, // ms = makeMap 5 80000
|
||||
bench_rbtree_delete, // m = makeMap 100000
|
||||
bench_quicksort, // list size 2000
|
||||
bench_quicksort, // list size 10000
|
||||
];
|
||||
|
||||
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]
|
||||
#[serial(quicksort)]
|
||||
fn run_quicksort_not_optimized() {
|
||||
check_output_with_stdin(
|
||||
&example_file("benchmarks", "QuicksortApp.roc"),
|
||||
"0",
|
||||
"quicksortapp",
|
||||
check_output(
|
||||
&example_file("quicksort", "Quicksort.roc"),
|
||||
"quicksort",
|
||||
&[],
|
||||
"[ 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,
|
||||
);
|
||||
}
|
||||
|
@ -154,12 +153,11 @@ mod cli_run {
|
|||
#[test]
|
||||
#[serial(quicksort)]
|
||||
fn run_quicksort_optimized() {
|
||||
check_output_with_stdin(
|
||||
&example_file("benchmarks", "QuicksortApp.roc"),
|
||||
"0",
|
||||
"quicksortapp",
|
||||
check_output(
|
||||
&example_file("quicksort", "Quicksort.roc"),
|
||||
"quicksort",
|
||||
&["--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,
|
||||
);
|
||||
}
|
||||
|
@ -167,12 +165,11 @@ mod cli_run {
|
|||
#[test]
|
||||
#[serial(quicksort)]
|
||||
fn run_quicksort_optimized_valgrind() {
|
||||
check_output_with_stdin(
|
||||
&example_file("benchmarks", "QuicksortApp.roc"),
|
||||
"0",
|
||||
"quicksortapp",
|
||||
check_output(
|
||||
&example_file("quicksort", "Quicksort.roc"),
|
||||
"quicksort",
|
||||
&["--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,
|
||||
);
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue