[Issue 6192] std.algorithm.sort performance
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jan 11 22:06:15 PST 2016
https://issues.dlang.org/show_bug.cgi?id=6192
--- Comment #8 from Andrei Alexandrescu <andrei at erdani.com> ---
After a few more tweaks:
dmd -O -inline -release -run sort-benchmark.d 6000000
sort-sort2 benchmarks (milliseconds), N=6000000:
Random distribution:
sort: 702
sort2: 689
Already sorted arrays:
sort: 108
sort2: 115
Inverted order arrays:
sort: 154
sort2: 215
Few random doubles appended to the sorted arrays:
sort: 247
sort2: 251
--
More information about the Digitalmars-d-bugs
mailing list