#!perl

our $DATE = '2015-04-12'; # DATE
our $VERSION = '0.02'; # 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/],
    },
    {
        skip_not_found => 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.02 of bench-startup-interpreters (from Perl distribution App-BenchStartupInterpreters), released on 2015-04-12.

=head1 SYNOPSIS

 % bench-startup-interpreters

Sample output:

                       Rate        nodejs          ruby        python     bash+true   perl
 nodejs     59.019+-0.036/s            --        -62.7%        -66.6%        -86.1% -93.9%
 ruby      158.285+-0.093/s 168.19+-0.23%            --        -10.4%        -62.7% -83.7%
 python      176.59+-0.19/s  199.2+-0.37%  11.56+-0.14%            --        -58.4% -81.8%
 bash+true   424.53+-0.36/s 619.31+-0.75% 168.21+-0.28% 140.41+-0.33%            -- -56.3%
 perl          971.5+-1.6/s    1546+-2.9%   513.7+-1.1%   450.1+-1.1% 128.83+-0.42%     --
 
 Average times:
   perl     :     1.0293ms
   bash+true:     2.3555ms
   python   :     5.6628ms
   ruby     :     6.3177ms
   nodejs   :    16.9437ms

=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
