Skip to content

Instantly share code, notes, and snippets.

@Ixrec
Created November 20, 2016 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ixrec/c7bdf926c6f9ac1b42d4e298380e5258 to your computer and use it in GitHub Desktop.
Save Ixrec/c7bdf926c6f9ac1b42d4e298380e5258 to your computer and use it in GitHub Desktop.
C:\faster-sort>rustup run nightly cargo bench
Compiling libc v0.2.17
Compiling rand v0.3.14
Compiling faster-sort v0.1.0 (file:///C:/faster-sort)
warning: unused import: `std::cmp`, #[warn(unused_imports)] on by default
--> src\lib.rs:8:5
|
8 | use std::cmp;
| ^^^^^^^^
warning: unused variable: `v_end`, #[warn(unused_variables)] on by default
--> src\lib.rs:200:13
|
200 | let v_end = v_start.offset(len as isize);
| ^^^^^
Finished release [optimized] target(s) in 10.75 secs
Running target\release\deps\faster_sort-d78658f4a7b9ecaf.exe
running 21 tests
test tests::test ... ignored
test tests::new_sort_ascending ... bench: 81,065 ns/iter (+/- 7,845
) = 493 MB/s
test tests::new_sort_big_ascending ... bench: 224,345 ns/iter (+/- 127,3
86) = 1426 MB/s
test tests::new_sort_big_descending ... bench: 238,310 ns/iter (+/- 87,53
2) = 1342 MB/s
test tests::new_sort_big_random_large ... bench: 2,327,797 ns/iter (+/- 654,1
44) = 137 MB/s
test tests::new_sort_big_random_medium ... bench: 15,941 ns/iter (+/- 2,405
) = 200 MB/s
test tests::new_sort_big_random_small ... bench: 891 ns/iter (+/- 83) =
179 MB/s
test tests::new_sort_descending ... bench: 86,248 ns/iter (+/- 7,451
) = 463 MB/s
test tests::new_sort_random_large ... bench: 945,279 ns/iter (+/- 60,67
9) = 84 MB/s
test tests::new_sort_random_medium ... bench: 6,602 ns/iter (+/- 2,183
) = 121 MB/s
test tests::new_sort_random_small ... bench: 488 ns/iter (+/- 53) =
81 MB/s
test tests::sort_ascending ... bench: 67,838 ns/iter (+/- 7,461
) = 589 MB/s
test tests::sort_big_ascending ... bench: 436,538 ns/iter (+/- 86,77
0) = 733 MB/s
test tests::sort_big_descending ... bench: 451,481 ns/iter (+/- 110,9
36) = 708 MB/s
test tests::sort_big_random_large ... bench: 2,446,213 ns/iter (+/- 417,1
97) = 130 MB/s
test tests::sort_big_random_medium ... bench: 17,790 ns/iter (+/- 12,67
4) = 179 MB/s
test tests::sort_big_random_small ... bench: 909 ns/iter (+/- 341)
= 176 MB/s
test tests::sort_descending ... bench: 71,843 ns/iter (+/- 18,97
0) = 556 MB/s
test tests::sort_random_large ... bench: 995,698 ns/iter (+/- 104,2
56) = 80 MB/s
test tests::sort_random_medium ... bench: 6,906 ns/iter (+/- 1,799
) = 115 MB/s
test tests::sort_random_small ... bench: 542 ns/iter (+/- 308)
= 73 MB/s
test result: ok. 0 passed; 0 failed; 1 ignored; 20 measured
C:\faster-sort>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment