Acme-CPANModules-HTMLTable

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

NAME
    Acme::CPANModules::HTMLTable - List of modules that generate HTML tables

VERSION
    This document describes version 0.002 of Acme::CPANModules::HTMLTable
    (from Perl distribution Acme-CPANModules-HTMLTable), released on
    2023-10-29.

SYNOPSIS
    To run benchmark with default option:

     % bencher --cpanmodules-module HTMLTable

    To run module startup overhead benchmark:

     % bencher --module-startup --cpanmodules-module HTMLTable

    For more options (dump scenario, list/include/exclude/add participants,
    list/include/exclude/add datasets, etc), see bencher or run "bencher
    --help".

ACME::CPANMODULES ENTRIES
    Text::Table::Any
        Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>

        This is a common frontend for many text table modules as backends,
        Text::Table::HTML being one.

    Text::Table::HTML
        Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>

    Text::Table::HTML::DataTables
        Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>

    Text::Table::Manifold
        Author: RSAVAGE <https://metacpan.org/author/RSAVAGE>

BENCHMARKED MODULES
    Version numbers shown below are the versions used when running the
    sample benchmark.

    Text::Table::Any 0.115

    Text::Table::HTML 0.010

    Text::Table::HTML::DataTables 0.012

    Text::Table::Manifold 1.03

BENCHMARK PARTICIPANTS
    *   Text::Table::Any (perl_code)

        Text::Table::Any

    *   Text::Table::HTML (perl_code)

        Text::Table::HTML

    *   Text::Table::HTML::DataTables (perl_code)

        Text::Table::HTML::DataTables

    *   Text::Table::Manifold (perl_code)

        Text::Table::Manifold

BENCHMARK DATASETS
    *   tiny (1x1)

    *   small (3x5)

    *   wide (30x5)

    *   long (3x300)

    *   large (30x300)

README  view on Meta::CPAN

       TT:A: participant=Text::Table::Any
       TT:H: participant=Text::Table::HTML
       TT:M: participant=Text::Table::Manifold
       TTH:D: participant=Text::Table::HTML::DataTables

    Result formatted as table (split, part 4 of 5):

     #table4#
     {dataset=>"tiny (1x1)"}
     +-------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
     | participant                   | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest |  errors | samples |
     +-------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
     | Text::Table::Manifold         |      9700 |    100    |                 0.00% |              1436.99% | 1.3e-07 |      20 |
     | Text::Table::HTML::DataTables |     18000 |     55    |                87.14% |               721.28% | 7.8e-08 |      22 |
     | Text::Table::Any              |    114000 |      8.81 |              1072.17% |                31.12% | 5.6e-09 |      22 |
     | Text::Table::HTML             |    149000 |      6.72 |              1436.99% |                 0.00% | 2.9e-09 |      20 |
     +-------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+

    The above result formatted in Benchmark.pm style:

                 Rate   TT:M  TTH:D  TT:A  TT:H 
      TT:M     9700/s     --   -44%  -91%  -93% 
      TTH:D   18000/s    81%     --  -83%  -87% 
      TT:A   114000/s  1035%   524%    --  -23% 
      TT:H   149000/s  1388%   718%   31%    -- 
 
     Legends:
       TT:A: participant=Text::Table::Any
       TT:H: participant=Text::Table::HTML
       TT:M: participant=Text::Table::Manifold
       TTH:D: participant=Text::Table::HTML::DataTables

    Result formatted as table (split, part 5 of 5):

     #table5#
     {dataset=>"wide (30x5)"}
     +-------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
     | participant                   | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest |  errors | samples |
     +-------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
     | Text::Table::Manifold         |       830 |      1200 |                 0.00% |               434.10% | 1.7e-06 |      20 |
     | Text::Table::Any              |      3390 |       295 |               307.45% |                31.08% | 1.4e-07 |      20 |
     | Text::Table::HTML             |      3430 |       291 |               313.00% |                29.32% | 1.3e-07 |      26 |
     | Text::Table::HTML::DataTables |      4400 |       230 |               434.10% |                 0.00% | 2.3e-07 |      21 |
     +-------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+

    The above result formatted in Benchmark.pm style:

               Rate  TT:M  TT:A  TT:H  TTH:D 
      TT:M    830/s    --  -75%  -75%   -80% 
      TT:A   3390/s  306%    --   -1%   -22% 
      TT:H   3430/s  312%    1%    --   -20% 
      TTH:D  4400/s  421%   28%   26%     -- 
 
     Legends:
       TT:A: participant=Text::Table::Any
       TT:H: participant=Text::Table::HTML
       TT:M: participant=Text::Table::Manifold
       TTH:D: participant=Text::Table::HTML::DataTables

  Sample benchmark #2
    Benchmark command (benchmarking module startup overhead):

     % bencher --cpanmodules-module HTMLTable --module-startup

    Result formatted as table:

     #table6#
     +-------------------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+
     | participant                   | time (ms) | mod_overhead_time | pct_faster_vs_slowest | pct_slower_vs_fastest |  errors | samples |
     +-------------------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+
     | Text::Table::Manifold         |     91    |             84.55 |                 0.00% |              1310.03% | 4.8e-05 |      20 |
     | Text::Table::Any              |     11    |              4.55 |               727.82% |                70.33% | 5.1e-06 |      22 |
     | Text::Table::HTML::DataTables |      9.37 |              2.92 |               870.91% |                45.23% | 6.8e-06 |      20 |
     | Text::Table::HTML             |      9.13 |              2.68 |               897.27% |                41.39% | 4.9e-06 |      20 |
     | perl -e1 (baseline)           |      6.45 |              0    |              1310.03% |                 0.00% | 3.2e-06 |      20 |
     +-------------------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+

    The above result formatted in Benchmark.pm style:

                              Rate   TT:M  TT:A  TTH:D  TT:H  perl -e1 (baseline) 
      TT:M                  11.0/s     --  -87%   -89%  -89%                 -92% 
      TT:A                  90.9/s   727%    --   -14%  -16%                 -41% 
      TTH:D                106.7/s   871%   17%     --   -2%                 -31% 
      TT:H                 109.5/s   896%   20%     2%    --                 -29% 
      perl -e1 (baseline)  155.0/s  1310%   70%    45%   41%                   -- 
 
     Legends:
       TT:A: mod_overhead_time=4.55 participant=Text::Table::Any
       TT:H: mod_overhead_time=2.68 participant=Text::Table::HTML
       TT:M: mod_overhead_time=84.55 participant=Text::Table::Manifold
       TTH:D: mod_overhead_time=2.92 participant=Text::Table::HTML::DataTables
       perl -e1 (baseline): mod_overhead_time=0 participant=perl -e1 (baseline)

    To display as an interactive HTML table on a browser, you can add option
    "--format html+datatables".

FAQ
  What is an Acme::CPANModules::* module?
    An Acme::CPANModules::* module, like this module, contains just a list
    of module names that share a common characteristics. It is a way to
    categorize modules and document CPAN. See Acme::CPANModules for more
    details.

  What are ways to use this Acme::CPANModules module?
    Aside from reading this Acme::CPANModules module's POD documentation,
    you can install all the listed modules (entries) using cpanm-cpanmodules
    script (from App::cpanm::cpanmodules distribution):

     % cpanm-cpanmodules -n HTMLTable

    Alternatively you can use the cpanmodules CLI (from App::cpanmodules
    distribution):

        % cpanmodules ls-entries HTMLTable | cpanm -n

    or Acme::CM::Get:

        % perl -MAcme::CM::Get=HTMLTable -E'say $_->{module} for @{ $LIST->{entries} }' | cpanm -n

    or directly:

        % perl -MAcme::CPANModules::HTMLTable -E'say $_->{module} for @{ $Acme::CPANModules::HTMLTable::LIST->{entries} }' | cpanm -n



( run in 0.647 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )