Bencher-Scenario-shuffle
view release on metacpan or search on metacpan
(2 cores)*, OS: *GNU/Linux Ubuntu version 20.04*, OS kernel: *Linux
version 5.4.0-91-generic*.
Benchmark with default options ("bencher -m shuffle"):
#table1#
+----------------------------------------+---------+-----------+------------+-----------------------+-----------------------+---------+---------+
| participant | dataset | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+----------------------------------------+---------+-----------+------------+-----------------------+-----------------------+---------+---------+
| Algorithm::Numerical::Shuffle::shuffle | ary1k | 3160 | 317 | 0.00% | 296454.40% | 1.6e-07 | 20 |
| Array::Shuffle::shuffle | ary1k | 3410 | 294 | 7.90% | 274735.26% | 2.1e-07 | 20 |
| List::Util::PP::shuffle | ary1k | 3410 | 293 | 7.95% | 274624.64% | 2.1e-07 | 20 |
| Algorithm::Numerical::Shuffle::shuffle | ary100 | 29804.3 | 33.5522 | 844.04% | 31313.27% | 1.2e-11 | 32 |
| Array::Shuffle::shuffle | ary100 | 32000 | 31.2 | 914.02% | 29145.56% | 1e-08 | 34 |
| List::Util::shuffle | ary1k | 33300 | 30 | 955.45% | 27997.31% | 1.3e-08 | 22 |
| List::MoreUtils::XS::samples | ary1k | 34500 | 29 | 991.32% | 27073.94% | 1.3e-08 | 22 |
| List::Util::PP::shuffle | ary100 | 36442.3 | 27.4407 | 1054.30% | 25591.36% | 1.1e-11 | 20 |
| List::MoreUtils::PP::samples | ary1k | 48300 | 20.7 | 1429.75% | 19285.81% | 5.2e-09 | 33 |
| Algorithm::Numerical::Shuffle::shuffle | ary10 | 272780 | 3.6659 | 8540.36% | 3332.20% | 1.1e-11 | 20 |
| Array::Shuffle::shuffle | ary10 | 280000 | 3.58 | 8754.38% | 3249.24% | 1.7e-09 | 20 |
| List::Util::PP::shuffle | ary10 | 295000 | 3.39 | 9243.25% | 3074.00% | 1.7e-09 | 20 |
| List::Util::shuffle | ary100 | 300930 | 3.3231 | 9431.76% | 3011.22% | 1.1e-11 | 20 |
| List::MoreUtils::XS::samples | ary100 | 344700 | 2.901 | 10819.76% | 2615.76% | 1.5e-10 | 20 |
| List::MoreUtils::PP::samples | ary100 | 413750 | 2.4169 | 13005.43% | 2162.84% | 1.1e-11 | 20 |
| List::Util::PP::shuffle | ary1 | 1110000 | 0.9 | 35082.83% | 742.90% | 4.2e-10 | 20 |
| Array::Shuffle::shuffle | ary1 | 1518000 | 0.6589 | 47971.18% | 516.91% | 1.1e-11 | 20 |
| List::Util::shuffle | ary10 | 1817000 | 0.5503 | 57456.38% | 415.24% | 1.1e-11 | 26 |
| List::MoreUtils::PP::samples | ary10 | 1820000 | 0.5495 | 57545.03% | 414.45% | 1e-11 | 20 |
| Algorithm::Numerical::Shuffle::shuffle | ary1 | 1880000 | 0.532 | 59396.24% | 398.44% | 1.9e-10 | 23 |
| List::Util::PP::shuffle | ary0 | 2070000 | 0.484 | 65338.08% | 353.18% | 2e-10 | 22 |
| List::MoreUtils::XS::samples | ary10 | 2260000 | 0.442 | 71527.76% | 314.02% | 2e-10 | 22 |
| List::MoreUtils::PP::samples | ary1 | 2669000 | 0.3747 | 84440.49% | 250.78% | 1.1e-11 | 22 |
| Array::Shuffle::shuffle | ary0 | 3170000 | 0.315 | 100315.98% | 195.33% | 1e-10 | 20 |
| List::MoreUtils::PP::samples | ary0 | 3233000 | 0.3093 | 102317.52% | 189.55% | 1.1e-11 | 20 |
| List::Util::shuffle | ary1 | 3670000 | 0.272 | 116143.82% | 155.11% | 3.5e-11 | 20 |
| List::Util::shuffle | ary0 | 4400000 | 0.227 | 139213.85% | 112.87% | 8.4e-11 | 22 |
| List::MoreUtils::XS::samples | ary1 | 5858700 | 0.170686 | 185472.45% | 59.81% | 0 | 20 |
| Algorithm::Numerical::Shuffle::shuffle | ary0 | 6149000 | 0.1626 | 194667.26% | 52.26% | 1e-11 | 20 |
| List::MoreUtils::XS::samples | ary0 | 9360000 | 0.107 | 296454.40% | 0.00% | 5.3e-11 | 20 |
+----------------------------------------+---------+-----------+------------+-----------------------+-----------------------+---------+---------+
Formatted as Benchmark.pm result:
Rate ANS:s ary1k AS:s ary1k LUP:s ary1k ANS:s ary100 AS:s ary100 LU:s ary1k LMX:s ary1k LUP:s ary100 LMP:s ary1k ANS:s ary10 AS:s ary10 LUP:s ary10 LU:s ary100 LMX:s ary100 LMP:s ary100 LUP:s ary1 AS:s ary1 ...
ANS:s ary1k 3160/s -- -7% -7% -89% -90% -90% -90% -91% -93% -98% -98% -98% -98% -99% -99% -99% -99% ...
AS:s ary1k 3410/s 7% -- 0% -88% -89% -89% -90% -90% -92% -98% -98% -98% -98% -99% -99% -99% -99% ...
LUP:s ary1k 3410/s 8% 0% -- -88% -89% -89% -90% -90% -92% -98% -98% -98% -98% -99% -99% -99% -99% ...
ANS:s ary100 29804.3/s 844% 776% 773% -- -7% -10% -13% -18% -38% -89% -89% -89% -90% -91% -92% -97% -98% ...
AS:s ary100 32000/s 916% 842% 839% 7% -- -3% -7% -12% -33% -88% -88% -89% -89% -90% -92% -97% -97% ...
LU:s ary1k 33300/s 956% 880% 876% 11% 4% -- -3% -8% -31% -87% -88% -88% -88% -90% -91% -97% -97% ...
LMX:s ary1k 34500/s 993% 913% 910% 15% 7% 3% -- -5% -28% -87% -87% -88% -88% -89% -91% -96% -97% ...
LUP:s ary100 36442.3/s 1055% 971% 967% 22% 13% 9% 5% -- -24% -86% -86% -87% -87% -89% -91% -96% -97% ...
LMP:s ary1k 48300/s 1431% 1320% 1315% 62% 50% 44% 40% 32% -- -82% -82% -83% -83% -85% -88% -95% -96% ...
ANS:s ary10 272780/s 8547% 7919% 7892% 815% 751% 718% 691% 648% 464% -- -2% -7% -9% -20% -34% -75% -82% ...
AS:s ary10 280000/s 8754% 8112% 8084% 837% 771% 737% 710% 666% 478% 2% -- -5% -7% -18% -32% -74% -81% ...
LUP:s ary10 295000/s 9251% 8572% 8543% 889% 820% 784% 755% 709% 510% 8% 5% -- -1% -14% -28% -73% -80% ...
LU:s ary100 300930/s 9439% 8747% 8717% 909% 838% 802% 772% 725% 522% 10% 7% 2% -- -12% -27% -72% -80% ...
LMX:s ary100 344700/s 10827% 10034% 9999% 1056% 975% 934% 899% 845% 613% 26% 23% 16% 14% -- -16% -68% -77% ...
LMP:s ary100 413750/s 13015% 12064% 12022% 1288% 1190% 1141% 1099% 1035% 756% 51% 48% 40% 37% 20% -- -62% -72% ...
LUP:s ary1 1110000/s 35122% 32566% 32455% 3628% 3366% 3233% 3122% 2948% 2200% 307% 297% 276% 269% 222% 168% -- -26% ...
AS:s ary1 1518000/s 48010% 44519% 44368% 4992% 4635% 4453% 4301% 4064% 3041% 456% 443% 414% 404% 340% 266% 36% -- ...
LU:s ary10 1817000/s 57504% 53325% 53143% 5997% 5569% 5351% 5169% 4886% 3661% 566% 550% 516% 503% 427% 339% 63% 19% ...
LMP:s ary10 1820000/s 57588% 53403% 53221% 6005% 5577% 5359% 5177% 4893% 3667% 567% 551% 516% 504% 427% 339% 63% 19% ...
ANS:s ary1 1880000/s 59486% 55163% 54975% 6206% 5764% 5539% 5351% 5058% 3790% 589% 572% 537% 524% 445% 354% 69% 23% ...
LUP:s ary0 2070000/s 65395% 60643% 60437% 6832% 6346% 6098% 5891% 5569% 4176% 657% 639% 600% 586% 499% 399% 85% 36% ...
LMX:s ary10 2260000/s 71619% 66415% 66189% 7490% 6958% 6687% 6461% 6108% 4583% 729% 709% 666% 651% 556% 446% 103% 49% ...
LMP:s ary1 2669000/s 84501% 78362% 78095% 8854% 8226% 7906% 7639% 7223% 5424% 878% 855% 804% 786% 674% 545% 140% 75% ...
AS:s ary0 3170000/s 100534% 93233% 92915% 10551% 9804% 9423% 9106% 8611% 6471% 1063% 1036% 976% 954% 820% 667% 185% 109% ...
LMP:s ary0 3233000/s 102389% 94953% 94630% 10747% 9987% 9599% 9276% 8771% 6592% 1085% 1057% 996% 974% 837% 681% 190% 113% ...
LU:s ary1 3670000/s 116444% 107988% 107620% 12235% 11370% 10929% 10561% 9988% 7510% 1247% 1216% 1146% 1121% 966% 788% 230% 142% ...
LU:s ary0 4400000/s 139547% 129415% 128974% 14680% 13644% 13115% 12675% 11988% 9018% 1514% 1477% 1393% 1363% 1177% 964% 296% 190% ...
LMX:s ary1 5858700/s 185621% 172146% 171560% 19557% 18179% 17476% 16890% 15976% 12027% 2047% 1997% 1886% 1846% 1599% 1315% 427% 286% ...
ANS:s ary0 6149000/s 194856% 180711% 180096% 20534% 19088% 18350% 17735% 16776% 12630% 2154% 2101% 1984% 1943% 1684% 1386% 453% 305% ...
LMX:s ary0 9360000/s 296161% 274666% 273731% 31257% 29058% 27937% 27002% 25545% 19245% 3326% 3245% 3068% 3005% 2611% 2158% 741% 515% ...
Legends:
ANS:s ary0: dataset=ary0 participant=Algorithm::Numerical::Shuffle::shuffle
ANS:s ary1: dataset=ary1 participant=Algorithm::Numerical::Shuffle::shuffle
ANS:s ary10: dataset=ary10 participant=Algorithm::Numerical::Shuffle::shuffle
ANS:s ary100: dataset=ary100 participant=Algorithm::Numerical::Shuffle::shuffle
ANS:s ary1k: dataset=ary1k participant=Algorithm::Numerical::Shuffle::shuffle
AS:s ary0: dataset=ary0 participant=Array::Shuffle::shuffle
AS:s ary1: dataset=ary1 participant=Array::Shuffle::shuffle
AS:s ary10: dataset=ary10 participant=Array::Shuffle::shuffle
AS:s ary100: dataset=ary100 participant=Array::Shuffle::shuffle
AS:s ary1k: dataset=ary1k participant=Array::Shuffle::shuffle
LMP:s ary0: dataset=ary0 participant=List::MoreUtils::PP::samples
LMP:s ary1: dataset=ary1 participant=List::MoreUtils::PP::samples
LMP:s ary10: dataset=ary10 participant=List::MoreUtils::PP::samples
LMP:s ary100: dataset=ary100 participant=List::MoreUtils::PP::samples
LMP:s ary1k: dataset=ary1k participant=List::MoreUtils::PP::samples
LMX:s ary0: dataset=ary0 participant=List::MoreUtils::XS::samples
LMX:s ary1: dataset=ary1 participant=List::MoreUtils::XS::samples
LMX:s ary10: dataset=ary10 participant=List::MoreUtils::XS::samples
LMX:s ary100: dataset=ary100 participant=List::MoreUtils::XS::samples
LMX:s ary1k: dataset=ary1k participant=List::MoreUtils::XS::samples
LU:s ary0: dataset=ary0 participant=List::Util::shuffle
LU:s ary1: dataset=ary1 participant=List::Util::shuffle
LU:s ary10: dataset=ary10 participant=List::Util::shuffle
LU:s ary100: dataset=ary100 participant=List::Util::shuffle
LU:s ary1k: dataset=ary1k participant=List::Util::shuffle
LUP:s ary0: dataset=ary0 participant=List::Util::PP::shuffle
LUP:s ary1: dataset=ary1 participant=List::Util::PP::shuffle
LUP:s ary10: dataset=ary10 participant=List::Util::PP::shuffle
LUP:s ary100: dataset=ary100 participant=List::Util::PP::shuffle
LUP:s ary1k: dataset=ary1k participant=List::Util::PP::shuffle
Benchmark module startup overhead ("bencher -m shuffle
--module-startup"):
#table2#
+-------------------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+
| participant | time (ms) | mod_overhead_time | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+-------------------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+
| List::MoreUtils::PP | 11.5 | 4.9 | 0.00% | 73.32% | 6.5e-06 | 20 |
| List::MoreUtils::XS | 11.1 | 4.5 | 3.53% | 67.40% | 6.7e-06 | 20 |
| List::Util::PP | 10.6 | 4 | 8.66% | 59.50% | 7e-06 | 20 |
| List::Util | 9.87 | 3.27 | 16.24% | 49.11% | 4.7e-06 | 20 |
| Algorithm::Numerical::Shuffle | 9.35 | 2.75 | 22.60% | 41.36% | 7.4e-06 | 20 |
| Array::Shuffle | 9.27 | 2.67 | 23.75% | 40.05% | 6.9e-06 | 21 |
| perl -e1 (baseline) | 6.6 | 0 | 73.32% | 0.00% | 2.3e-05 | 21 |
( run in 1.164 second using v1.01-cache-2.11-cpan-5a3173703d6 )