#!perl

our $DATE = '2015-06-14'; # DATE
our $VERSION = '0.03'; # VERSION

use 5.010001;
use strict;
use warnings;

use Benchmark::Command;

Benchmark::Command::run(
    undef,
    {
        perl        => [qw/perl -e1/],
        "bash+true" => [qw/bash --norc -c true/],
        ruby        => [qw/ruby -e1/],
        python      => [qw/python -c1/],
        nodejs      => [qw/nodejs -e 1/],
    },
    {
        skip_not_found => 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.03 of bench-startup-interpreters (from Perl distribution App-BenchStartupInterpreters), released on 2015-06-14.

=head1 SYNOPSIS

 % bench-startup-interpreters

Sample output:

                       Rate        nodejs         ruby        python    bash+true   perl
 nodejs     60.513+-0.031/s            --       -61.8%        -65.6%       -86.0% -93.6%
 ruby      158.299+-0.095/s 161.59+-0.21%           --         -9.9%       -63.4% -83.2%
 python      175.78+-0.25/s 190.47+-0.44% 11.04+-0.17%            --       -59.4% -81.4%
 bash+true   432.79+-0.76/s   615.2+-1.3% 173.4+-0.51% 146.22+-0.55%           -- -54.2%
 perl          944.8+-2.3/s  1461.3+-3.9%  496.8+-1.5%   437.5+-1.5% 118.3+-0.66%     --
 
 Average times:
   perl     :     1.0584ms
   bash+true:     2.3106ms
   python   :     5.6889ms
   ruby     :     6.3172ms
   nodejs   :    16.5254ms

=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
