[Issue 6192] std.algorithm.sort performance
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon Jan 11 19:27:23 PST 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=6192
--- Comment #7 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Andrei Alexandrescu from comment #6)
> https://github.com/D-Programming-Language/phobos/pull/3922
With this PR and the command line:
dmd -O -inline -release -run sort-benchmark.d 6000000
the output is:
sort-sort2 benchmarks (milliseconds), N=6000000:
  Random distribution:
    sort:     696
    sort2:    680
  Already sorted arrays:
    sort:     122
    sort2:    113
  Inverted order arrays:
    sort:     132
    sort2:    224
  Few random doubles appended to the sorted arrays:
    sort:     244
    sort2:    234
--
    
    
More information about the Digitalmars-d-bugs
mailing list