App-BencherUtils
view release on metacpan or search on metacpan
script/bencher-module-startup-overhead view on Meta::CPAN
#!perl
# Note: This script is a CLI for Riap function /App/BencherUtils/bencher_module_startup_overhead
# and generated automatically using Perinci::CmdLine::Gen version 0.501
use 5.010001;
use strict;
use warnings;
use Log::ger;
use Perinci::CmdLine::Any;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2022-08-24'; # DATE
our $DIST = 'App-BencherUtils'; # DIST
our $VERSION = '0.245'; # VERSION
my $cmdline = Perinci::CmdLine::Any->new(
url => "/App/BencherUtils/bencher_module_startup_overhead",
program_name => "bencher-module-startup-overhead",
log => 1,
pass_cmdline_object => 1,
config_filename => ["bencher.conf", "bencher-module-startup-overhead.conf"],
use_utf8 => 1,
);
$cmdline->run;
# ABSTRACT: Accept a list of module names and perform startup overhead benchmark
# PODNAME: bencher-module-startup-overhead
__END__
=pod
=encoding UTF-8
=head1 NAME
bencher-module-startup-overhead - Accept a list of module names and perform startup overhead benchmark
=head1 VERSION
This document describes version 0.245 of bencher-module-startup-overhead (from Perl distribution App-BencherUtils), released on 2022-08-24.
=head1 SYNOPSIS
B<bencher-module-startup-overhead> [B<--config-path>=I<path>|B<-c>|B<--no-config>|B<-C>] [B<--config-profile>=I<profile>|B<-P>] [B<--debug>|B<--log-level>=I<level>|B<--quiet>|B<--trace>|B<--verbose>] [B<--format>=I<name>|B<--json>] [B<--modules>=I<pe...
=head1 DESCRIPTION
% bencher-module-startup-overhead Mod1 Mod2 Mod3
is basically a shortcut for creating a scenario like this:
{
module_startup => 1,
participants => [
{module=>"Mod1"},
{module=>"Mod2"},
{module=>"Mod3"},
],
}
and running that scenario with C<bencher>.
To specify import arguments, you can use:
% bencher-module-startup-overhead Mod1 Mod2=arg1,arg2
which will translate to this Bencher scenario:
{
module_startup => 1,
participants => [
{module=>"Mod1"},
{module=>"Mod2", import_args=>'arg1,arg2'},
],
}
=head1 OPTIONS
C<*> marks required options.
=head2 Main options
=over
=item B<--modules-json>=I<s>
See C<--modules>.
Can also be specified as the 1st command-line argument and onwards.
=item B<--modules>=I<s>*
Can also be specified as the 1st command-line argument and onwards.
=item B<--with-process-size>
=back
=head2 Configuration options
( run in 1.809 second using v1.01-cache-2.11-cpan-39bf76dae61 )