NAME
Bencher::Scenario::Perl::Startup - Benchmark startup time of perls
VERSION
This document describes version 0.02 of Bencher::Scenario::Perl::Startup (from Perl distribution Bencher-Scenarios-Perl), released on 2016-01-07.
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
.
BENCHMARK PARTICIPANTS
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.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.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.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.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.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.22.0 -e1 (command)
Command line:
/home/s1/perl5/perlbrew/perls/perl-5.22.0/bin/perl -e1
perl-5.22.0 -E1 (command)
Command line:
/home/s1/perl5/perlbrew/perls/perl-5.22.0/bin/perl -E1
perl-5.22.1 -e1 (command)
Command line:
/home/s1/perl5/perlbrew/perls/perl-5.22.1/bin/perl -e1
perl-5.22.1 -E1 (command)
Command line:
/home/s1/perl5/perlbrew/perls/perl-5.22.1/bin/perl -E1
perl-5.6.2 -e1 (command)
Command line:
/home/s1/perl5/perlbrew/perls/perl-5.6.2/bin/perl -e1
perl-5.8.9 -e1 (command)
Command line:
/home/s1/perl5/perlbrew/perls/perl-5.8.9/bin/perl -e1
SAMPLE BENCHMARK RESULTS
Run on: perl: v5.22.0, CPU: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz (4 cores), OS: GNU/Linux Debian version 8.0, OS kernel: Linux version 3.16.0-4-amd64.
Benchmark with default option:
+-----+-----------------+------+--------+---------+---------+
| seq | name | rate | time | errors | samples |
+-----+-----------------+------+--------+---------+---------+
| 15 | perl-5.22.1 -E1 | 183 | 5.48ms | 5.4e-06 | 915 |
| 13 | perl-5.22.0 -E1 | 186 | 5.39ms | 5.3e-06 | 679 |
| 11 | perl-5.20.3 -E1 | 186 | 5.37ms | 5.3e-06 | 1180 |
| 9 | perl-5.18.4 -E1 | 191 | 5.22ms | 5.2e-06 | 905 |
| 7 | perl-5.16.3 -E1 | 193 | 5.19ms | 5.2e-06 | 1060 |
| 5 | perl-5.14.4 -E1 | 196 | 5.1ms | 5.1e-06 | 1158 |
| 3 | perl-5.12.5 -E1 | 198 | 5.06ms | 5e-06 | 1040 |
| 1 | perl-5.10.1 -E1 | 203 | 4.93ms | 4.8e-06 | 1301 |
| 14 | perl-5.22.1 -e1 | 220 | 4.55ms | 4.4e-06 | 1542 |
| 12 | perl-5.22.0 -e1 | 220 | 4.54ms | 4.4e-06 | 1680 |
| 10 | perl-5.20.3 -e1 | 222 | 4.5ms | 4.4e-06 | 1402 |
| 6 | perl-5.16.3 -e1 | 225 | 4.44ms | 4.4e-06 | 1541 |
| 8 | perl-5.18.4 -e1 | 226 | 4.43ms | 4.4e-06 | 1332 |
| 4 | perl-5.14.4 -e1 | 227 | 4.41ms | 4.3e-06 | 1335 |
| 2 | perl-5.12.5 -e1 | 228 | 4.38ms | 4.4e-06 | 1219 |
| 0 | perl-5.10.1 -e1 | 232 | 4.31ms | 4.2e-06 | 1207 |
| 17 | perl-5.8.9 -e1 | 232 | 4.3ms | 4.3e-06 | 948 |
| 16 | perl-5.6.2 -e1 | 247 | 4.04ms | 3.9e-06 | 1184 |
+-----+-----------------+------+--------+---------+---------+
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.
SEE ALSO
Bencher::Scenario::Interpreters
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.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 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.