#!perl

our $DATE = '2015-04-09'; # DATE
our $VERSION = '0.01'; # VERSION

use 5.010001;
use strict;
use warnings;

use Benchmark::Command;

Benchmark::Command::run(100, {
    perl        => [qw/perl -e1/],
    "bash+true" => [qw/bash --norc -c true/],
    ruby        => [qw/ruby -e1/],
    python      => [qw/python -c1/],
    nodejs      => [qw/nodejs -e 1/],
});

1;
# ABSTRACT: Benchmark startup time of various interpreters
# PODNAME: bench-startup-interpreters

__END__

=pod

=encoding UTF-8

=head1 NAME

bench-startup-interpreters - Benchmark startup time of various interpreters

=head1 VERSION

This document describes version 0.01 of bench-startup-interpreters (from Perl distribution App-BenchStartupInterpreters), released on 2015-04-09.

=head1 SYNOPSIS

 % bench-startup-interpreters

Sample output:

                      Rate        nodejs        ruby      python   bash+true   perl
 nodejs    41.936+-0.039/s            --      -60.3%      -63.0%      -84.6% -93.8%
 ruby       105.73+-0.14/s  152.14+-0.4%          --       -6.8%      -61.1% -84.3%
 python     113.48+-0.39/s 170.61+-0.95% 7.33+-0.39%          --      -58.2% -83.2%
 bash+true      271.7+-2/s     548+-4.9%   157+-1.9%   139.4+-2%          -- -59.8%
 perl         675.3+-3.5/s  1510.4+-8.5% 538.7+-3.4% 495.1+-3.7% 148.5+-2.3%     --
 
 Average times:
   perl     :     1.4808ms
   bash+true:     3.6805ms
   python   :     8.8121ms
   ruby     :     9.4581ms
   nodejs   :    23.8459ms

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/App-BenchStartupInterpreters>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-App-BenchStartupInterpreters>.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-BenchStartupInterpreters>

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.

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2015 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.

=cut
