Skip to content

Commit 1be986f

Browse files
committed
Auto merge of #107638 - zhangyunhao116:pdqsort-rand, r=cuviper
Optimize break patterns Use `wyrand` instead of calling `XORSHIFT` 2 times in break patterns for the 64-bit platform. The new PRNG is 2x faster than the previous one. Bench result(via https://gist.github.com/zhangyunhao116/11ef41a150f5c23bb47d86255fbeba89): ``` old time: [1.3258 ns 1.3262 ns 1.3266 ns] change: [+0.5901% +0.6731% +0.7791%] (p = 0.00 < 0.05) Change within noise threshold. Found 13 outliers among 100 measurements (13.00%) 7 (7.00%) high mild 6 (6.00%) high severe new time: [657.65 ps 657.89 ps 658.18 ps] change: [-1.6910% -1.6110% -1.5256%] (p = 0.00 < 0.05) Performance has improved. Found 6 outliers among 100 measurements (6.00%) 2 (2.00%) high mild 4 (4.00%) high severe ```
2 parents b933bb1 + 8e7f805 commit 1be986f

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)