NAME

Bencher::Scenario::Perl::Startup - Benchmark startup time of perls

VERSION

This document describes version 0.050 of Bencher::Scenario::Perl::Startup (from Perl distribution Bencher-Scenarios-Perl), released on 2019-10-20.

SYNOPSIS

To run benchmark with default option:

 % bencher -m Perl::Startup

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

DESCRIPTION

Conclusion: in general newer versions of perl has larger startup overhead than previous ones. If startup overhead is important to you, use -e instead of -E unless necessary.

BENCHMARK PARTICIPANTS

  • perl-5.26.2 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.26.2/bin/perl -e1
  • perl-5.26.2 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.26.2/bin/perl -E1
  • perl-5.24.1 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.24.1/bin/perl -e1
  • perl-5.24.1 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.24.1/bin/perl -E1
  • perl-5.24.0 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.24.0/bin/perl -e1
  • perl-5.24.0 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.24.0/bin/perl -E1
  • perl-5.24.0-vanilla -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.24.0-vanilla/bin/perl -e1
  • perl-5.24.0-vanilla -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.24.0-vanilla/bin/perl -E1
  • perl-5.22.2 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.22.2/bin/perl -e1
  • perl-5.22.2 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.22.2/bin/perl -E1
  • cperl-5.22.1 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/cperl-5.22.1/bin/perl -e1
  • cperl-5.22.1 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/cperl-5.22.1/bin/perl -E1
  • stableperl-5.22.0 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/stableperl-5.22.0/bin/perl -e1
  • stableperl-5.22.0 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/stableperl-5.22.0/bin/perl -E1
  • perl-5.20.3 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.20.3/bin/perl -e1
  • perl-5.20.3 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.20.3/bin/perl -E1
  • perl-5.18.4 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.18.4/bin/perl -e1
  • perl-5.18.4 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.18.4/bin/perl -E1
  • perl-5.16.3 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.16.3/bin/perl -e1
  • perl-5.16.3 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.16.3/bin/perl -E1
  • perl-5.14.4 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.14.4/bin/perl -e1
  • perl-5.14.4 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.14.4/bin/perl -E1
  • perl-5.12.5 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.12.5/bin/perl -e1
  • perl-5.12.5 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.12.5/bin/perl -E1
  • perl-5.10.1 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.10.1/bin/perl -e1
  • perl-5.10.1 -E1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.10.1/bin/perl -E1
  • perl-5.8.9 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.8.9/bin/perl -e1
  • perl-5.6.2 -e1 (command)

    Command line:

     /home/s1/perl5/perlbrew/perls/perl-5.6.2/bin/perl -e1

SAMPLE BENCHMARK RESULTS

Run on: perl: v5.24.0, CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (4 cores), OS: GNU/Linux LinuxMint version 18.2, OS kernel: Linux version 4.8.0-53-generic.

Benchmark with default options (bencher -m Perl::Startup):

 #table1#
 +-------------------------+-----------+-----------+------------+---------+---------+
 | participant             | rate (/s) | time (ms) | vs_slowest |  errors | samples |
 +-------------------------+-----------+-----------+------------+---------+---------+
 | perl-5.24.1 -E1         |       280 |      3.6  |       1    | 1.6e-05 |      20 |
 | perl-5.20.3 -E1         |       280 |      3.6  |       1    | 1.8e-05 |      45 |
 | perl-5.24.0 -E1         |       290 |      3.5  |       1    | 1.7e-05 |      34 |
 | perl-5.22.2 -E1         |       300 |      3.4  |       1.1  | 4.1e-06 |      20 |
 | perl-5.24.0-vanilla -E1 |       300 |      3.4  |       1.1  | 3.6e-06 |      20 |
 | perl-5.26.2 -E1         |       300 |      3.3  |       1.1  | 4.5e-06 |      20 |
 | stableperl-5.22.0 -E1   |       300 |      3.3  |       1.1  | 8.3e-06 |      20 |
 | cperl-5.22.1 -E1        |       302 |      3.31 |       1.08 | 1.5e-06 |      20 |
 | perl-5.18.4 -E1         |       310 |      3.3  |       1.1  | 8.7e-06 |      20 |
 | perl-5.16.3 -E1         |       320 |      3.2  |       1.1  | 3.6e-06 |      20 |
 | perl-5.14.4 -E1         |       330 |      3.1  |       1.2  | 3.3e-06 |      20 |
 | perl-5.12.5 -E1         |       330 |      3    |       1.2  | 4.3e-06 |      20 |
 | perl-5.24.0 -e1         |       330 |      3    |       1.2  | 1.5e-05 |      36 |
 | perl-5.10.1 -E1         |       330 |      3    |       1.2  | 6.7e-06 |      20 |
 | perl-5.20.3 -e1         |       340 |      3    |       1.2  | 1.4e-05 |      26 |
 | perl-5.22.2 -e1         |       350 |      2.9  |       1.2  | 2.9e-06 |      20 |
 | perl-5.24.0-vanilla -e1 |       354 |      2.83 |       1.26 | 2.7e-06 |      20 |
 | perl-5.24.1 -e1         |       350 |      2.8  |       1.3  | 2.9e-06 |      21 |
 | perl-5.18.4 -e1         |       350 |      2.8  |       1.3  | 5.8e-06 |      20 |
 | perl-5.26.2 -e1         |       360 |      2.8  |       1.3  | 3.8e-06 |      20 |
 | cperl-5.22.1 -e1        |       360 |      2.8  |       1.3  | 2.9e-06 |      20 |
 | perl-5.16.3 -e1         |       360 |      2.8  |       1.3  | 7.1e-06 |      20 |
 | stableperl-5.22.0 -e1   |       360 |      2.8  |       1.3  |   8e-06 |      20 |
 | perl-5.14.4 -e1         |       360 |      2.7  |       1.3  |   7e-06 |      20 |
 | perl-5.12.5 -e1         |       370 |      2.7  |       1.3  | 3.8e-06 |      20 |
 | perl-5.10.1 -e1         |       370 |      2.7  |       1.3  | 8.3e-06 |      20 |
 | perl-5.8.9 -e1          |       372 |      2.69 |       1.32 | 2.7e-06 |      21 |
 | perl-5.6.2 -e1          |       390 |      2.5  |       1.4  | 4.3e-06 |      20 |
 +-------------------------+-----------+-----------+------------+---------+---------+

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

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Bencher-Scenarios-Perl.

SOURCE

Source repository is at https://github.com/perlancar/perl-Bencher-Scenarios-Perl.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-Scenarios-Perl

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

Bencher::Scenario::Interpreters

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019, 2016 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.