Bencher-Scenario-List-Util

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    *   num100

    *   num1000

    *   str10

    *   str100

    *   str1000

BENCHMARK SAMPLE RESULTS
  Sample benchmark #1
    Run on: perl: *v5.34.0*, CPU: *Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
    (4 cores)*, OS: *GNU/Linux LinuxMint version 19*, OS kernel: *Linux
    version 5.3.0-68-generic*.

    Benchmark command (default options):

     % bencher -m List::Util

    Result formatted as table:

     #table1#
     +-----------------------------------+---------+---------+------------+------------+-----------------------+-----------------------+---------+---------+
     | participant                       | dataset | p_tags  | rate (/s)  | time (μs)  | pct_faster_vs_slowest | pct_slower_vs_fastest |  errors | samples |
     +-----------------------------------+---------+---------+------------+------------+-----------------------+-----------------------+---------+---------+
     | PERLANCAR::List::Util::PP::maxstr | num1000 | stringy |    6135.85 | 162.977    |                 0.00% |             55156.61% |   0     |      20 |
     | PERLANCAR::List::Util::PP::minstr | num1000 | stringy |    6289.97 | 158.983    |                 2.51% |             53802.63% |   0     |      20 |
     | PERLANCAR::List::Util::PP::maxstr | str1000 | stringy |    7710    | 130        |                25.70% |             43859.94% | 4.7e-08 |      26 |
     | PERLANCAR::List::Util::PP::minstr | str1000 | stringy |    9283.05 | 107.723    |                51.29% |             36423.12% |   0     |      20 |
     | List::Util::minstr                | num1000 | stringy |   10000    |  95        |                71.11% |             32193.44% | 1.1e-07 |      20 |
     | List::Util::maxstr                | num1000 | stringy |   11000    |  93        |                75.33% |             31415.40% | 1.1e-07 |      20 |
     | PERLANCAR::List::Util::PP::max    | num1000 | numeric |   11000    |  90        |                80.96% |             30435.28% | 1.1e-07 |      20 |
     | PERLANCAR::List::Util::PP::min    | num1000 | numeric |   13429.3  |  74.4638   |               118.87% |             25146.66% |   0     |      20 |
     | List::Util::minstr                | str1000 | stringy |   20700    |  48.2      |               237.92% |             16251.83% | 4.6e-08 |      27 |
     | List::Util::maxstr                | str1000 | stringy |   20900    |  47.9      |               240.03% |             16150.30% | 1.1e-08 |      29 |
     | List::Util::max                   | num1000 | numeric |   57543.4  |  17.3782   |               837.82% |              5792.00% |   0     |      21 |
     | List::Util::min                   | num1000 | numeric |   57800    |  17.3      |               842.65% |              5761.81% | 5.6e-09 |      28 |
     | PERLANCAR::List::Util::PP::maxstr | num100  | stringy |   65768.4  |  15.2049   |               971.87% |              5055.15% |   0     |      20 |
     | PERLANCAR::List::Util::PP::minstr | num100  | stringy |   68589.6  |  14.5795   |              1017.85% |              4843.11% |   0     |      26 |
     | PERLANCAR::List::Util::PP::maxstr | str100  | stringy |   76348.4  |  13.0979   |              1144.30% |              4340.78% |   0     |      20 |
     | PERLANCAR::List::Util::PP::minstr | str100  | stringy |   91599.7  |  10.9171   |              1392.86% |              3601.39% |   0     |      20 |
     | PERLANCAR::List::Util::PP::max    | num100  | numeric |  109301    |   9.14904  |              1681.35% |              3001.95% |   0     |      20 |
     | List::Util::minstr                | num100  | stringy |  127000    |   7.87     |              1971.90% |              2566.96% | 3.3e-09 |      20 |
     | List::Util::maxstr                | num100  | stringy |  128000    |   7.83     |              1982.55% |              2553.32% | 3.3e-09 |      20 |
     | PERLANCAR::List::Util::PP::min    | num100  | numeric |  130770    |   7.64701  |              2031.25% |              2492.69% |   0     |      20 |
     | List::Util::minstr                | str100  | stringy |  205000    |   4.89     |              3234.59% |              1557.07% | 1.6e-09 |      21 |
     | List::Util::maxstr                | str100  | stringy |  210000    |   4.9      |              3253.86% |              1547.55% |   5e-09 |      20 |
     | PERLANCAR::List::Util::PP::maxstr | num10   | stringy |  520000    |   1.92     |              8379.72% |               551.63% | 7.3e-10 |      26 |
     | List::Util::max                   | num100  | numeric |  543000    |   1.84     |              8755.75% |               523.96% | 8.1e-10 |      21 |
     | List::Util::min                   | num100  | numeric |  550379    |   1.81693  |              8869.89% |               516.02% |   0     |      20 |
     | PERLANCAR::List::Util::PP::minstr | num10   | stringy |  616000    |   1.62     |              9935.11% |               450.63% | 7.3e-10 |      26 |
     | PERLANCAR::List::Util::PP::maxstr | str10   | stringy |  664000    |   1.51     |             10713.89% |               410.98% | 3.6e-10 |      27 |
     | PERLANCAR::List::Util::PP::minstr | str10   | stringy |  758910    |   1.3177   |             12268.50% |               346.75% | 5.5e-12 |      20 |
     | PERLANCAR::List::Util::PP::max    | num10   | numeric |  891148    |   1.12215  |             14423.64% |               280.46% |   0     |      20 |
     | PERLANCAR::List::Util::PP::min    | num10   | numeric | 1018900    |   0.981455 |             16505.63% |               232.76% |   0     |      20 |
     | List::Util::maxstr                | num10   | stringy | 1100000    |   0.93     |             17388.70% |               215.96% | 1.7e-09 |      20 |
     | List::Util::minstr                | num10   | stringy | 1075300    |   0.92996  |             17425.07% |               215.30% | 5.8e-12 |      20 |
     | List::Util::maxstr                | str10   | stringy | 1670620    |   0.59858  |             27127.21% |               102.95% |   0     |      20 |
     | List::Util::minstr                | str10   | stringy | 1692510    |   0.590839 |             27483.93% |               100.32% |   0     |      20 |
     | List::Util::min                   | num10   | numeric | 3300000    |   0.3      |             54048.23% |                 2.05% | 4.2e-10 |      20 |
     | List::Util::max                   | num10   | numeric | 3390000    |   0.295    |             55156.61% |                 0.00% |   1e-10 |      20 |
     +-----------------------------------+---------+---------+------------+------------+-----------------------+-----------------------+---------+---------+

    The above result formatted in Benchmark.pm style:

                                   Rate  PLUP:m stringy num1000  PLUP:m stringy num1000  PLUP:m stringy str1000  PLUP:m stringy str1000  LU:m stringy num1000  LU:m stringy num1000  PLUP:m numeric num1000  PLUP:m numeric num1000  LU:m stringy str1000 ...
      PLUP:m stringy num1000  6135.85/s                      --                     -2%                    -20%                    -33%                  -41%                  -42%                    -44%                    -54%                  -70% ...
      PLUP:m stringy num1000  6289.97/s                      2%                      --                    -18%                    -32%                  -40%                  -41%                    -43%                    -53%                  -69% ...
      PLUP:m stringy str1000     7710/s                     25%                     22%                      --                    -17%                  -26%                  -28%                    -30%                    -42%                  -62% ...
      PLUP:m stringy str1000  9283.05/s                     51%                     47%                     20%                      --                  -11%                  -13%                    -16%                    -30%                  -55% ...
      LU:m stringy num1000      10000/s                     71%                     67%                     36%                     13%                    --                   -2%                     -5%                    -21%                  -49% ...
      LU:m stringy num1000      11000/s                     75%                     70%                     39%                     15%                    2%                    --                     -3%                    -19%                  -48% ...
      PLUP:m numeric num1000    11000/s                     81%                     76%                     44%                     19%                    5%                    3%                      --                    -17%                  -46% ...
      PLUP:m numeric num1000  13429.3/s                    118%                    113%                     74%                     44%                   27%                   24%                     20%                      --                  -35% ...
      LU:m stringy str1000      20700/s                    238%                    229%                    169%                    123%                   97%                   92%                     86%                     54%                    -- ...
      LU:m stringy str1000      20900/s                    240%                    231%                    171%                    124%                   98%                   94%                     87%                     55%                    0% ...
      LU:m numeric num1000    57543.4/s                    837%                    814%                    648%                    519%                  446%                  435%                    417%                    328%                  177% ...
      LU:m numeric num1000      57800/s                    842%                    818%                    651%                    522%                  449%                  437%                    420%                    330%                  178% ...
      PLUP:m stringy num100   65768.4/s                    971%                    945%                    754%                    608%                  524%                  511%                    491%                    389%                  217% ...
      PLUP:m stringy num100   68589.6/s                   1017%                    990%                    791%                    638%                  551%                  537%                    517%                    410%                  230% ...
      PLUP:m stringy str100   76348.4/s                   1144%                   1113%                    892%                    722%                  625%                  610%                    587%                    468%                  267% ...
      PLUP:m stringy str100   91599.7/s                   1392%                   1356%                   1090%                    886%                  770%                  751%                    724%                    582%                  341% ...
      PLUP:m numeric num100    109301/s                   1681%                   1637%                   1320%                   1077%                  938%                  916%                    883%                    713%                  426% ...
      LU:m stringy num100      127000/s                   1970%                   1920%                   1551%                   1268%                 1107%                 1081%                   1043%                    846%                  512% ...
      LU:m stringy num100      128000/s                   1981%                   1930%                   1560%                   1275%                 1113%                 1087%                   1049%                    851%                  515% ...
      PLUP:m numeric num100    130770/s                   2031%                   1979%                   1600%                   1308%                 1142%                 1116%                   1076%                    873%                  530% ...
      LU:m stringy str100      210000/s                   3226%                   3144%                   2553%                   2098%                 1838%                 1797%                   1736%                   1419%                  883% ...
      LU:m stringy str100      205000/s                   3232%                   3151%                   2558%                   2102%                 1842%                 1801%                   1740%                   1422%                  885% ...
      PLUP:m stringy num10     520000/s                   8388%                   8180%                   6670%                   5510%                 4847%                 4743%                   4587%                   3778%                 2410% ...
      LU:m numeric num100      543000/s                   8757%                   8540%                   6965%                   5754%                 5063%                 4954%                   4791%                   3946%                 2519% ...
      LU:m numeric num100      550379/s                   8869%                   8650%                   7054%                   5828%                 5128%                 5018%                   4853%                   3998%                 2552% ...
      PLUP:m stringy num10     616000/s                   9960%                   9713%                   7924%                   6549%                 5764%                 5640%                   5455%                   4496%                 2875% ...
      PLUP:m stringy str10     664000/s                  10693%                  10428%                   8509%                   7033%                 6191%                 6058%                   5860%                   4831%                 3092% ...
      PLUP:m stringy str10     758910/s                  12268%                  11965%                   9765%                   8075%                 7109%                 6957%                   6730%                   5551%                 3557% ...
      PLUP:m numeric num10     891148/s                  14423%                  14067%                  11484%                   9499%                 8365%                 8187%                   7920%                   6535%                 4195% ...
      PLUP:m numeric num10    1018900/s                  16505%                  16098%                  13145%                  10875%                 9579%                 9375%                   9070%                   7487%                 4811% ...
      LU:m stringy num10      1100000/s                  17424%                  16994%                  13878%                  11483%                10115%                 9900%                   9577%                   7906%                 5082% ...
      LU:m stringy num10      1075300/s                  17425%                  16995%                  13879%                  11483%                10115%                 9900%                   9577%                   7907%                 5083% ...
      LU:m stringy str10      1670620/s                  27127%                  26460%                  21618%                  17896%                15770%                15436%                  14935%                  12340%                 7952% ...
      LU:m stringy str10      1692510/s                  27483%                  26808%                  21902%                  18132%                15978%                15640%                  15132%                  12503%                 8057% ...
      LU:m numeric num10      3300000/s                  54225%                  52894%                  43233%                  35807%                31566%                30900%                  29900%                  24721%                15966% ...
      LU:m numeric num10      3390000/s                  55146%                  53792%                  43967%                  36416%                32103%                31425%                  30408%                  25141%                16238% ...
 
     Legends:
       LU:m numeric num10: dataset=num10 p_tags=numeric participant=List::Util::max
       LU:m numeric num100: dataset=num100 p_tags=numeric participant=List::Util::min
       LU:m numeric num1000: dataset=num1000 p_tags=numeric participant=List::Util::min
       LU:m stringy num10: dataset=num10 p_tags=stringy participant=List::Util::minstr
       LU:m stringy num100: dataset=num100 p_tags=stringy participant=List::Util::maxstr
       LU:m stringy num1000: dataset=num1000 p_tags=stringy participant=List::Util::maxstr
       LU:m stringy str10: dataset=str10 p_tags=stringy participant=List::Util::minstr
       LU:m stringy str100: dataset=str100 p_tags=stringy participant=List::Util::minstr
       LU:m stringy str1000: dataset=str1000 p_tags=stringy participant=List::Util::maxstr
       PLUP:m numeric num10: dataset=num10 p_tags=numeric participant=PERLANCAR::List::Util::PP::min
       PLUP:m numeric num100: dataset=num100 p_tags=numeric participant=PERLANCAR::List::Util::PP::min
       PLUP:m numeric num1000: dataset=num1000 p_tags=numeric participant=PERLANCAR::List::Util::PP::min
       PLUP:m stringy num10: dataset=num10 p_tags=stringy participant=PERLANCAR::List::Util::PP::minstr
       PLUP:m stringy num100: dataset=num100 p_tags=stringy participant=PERLANCAR::List::Util::PP::minstr
       PLUP:m stringy num1000: dataset=num1000 p_tags=stringy participant=PERLANCAR::List::Util::PP::minstr
       PLUP:m stringy str10: dataset=str10 p_tags=stringy participant=PERLANCAR::List::Util::PP::minstr



( run in 1.667 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )