App-BencherUtils

 view release on metacpan or  search on metacpan

script/bencher-code  view on Meta::CPAN

#!perl

# Note: This script is a CLI for Riap function /App/BencherUtils/bencher_code
# and generated automatically using Perinci::CmdLine::Gen version 0.501

use 5.010001;
use strict;
use warnings;

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_code",
    program_name => "bencher-code",
    pass_cmdline_object => 1,
    config_filename => ["bencher.conf", "bencher-code.conf"],
    use_utf8 => 1,
);

$cmdline->run;

# ABSTRACT: Accept a list of codes and perform benchmark
# PODNAME: bencher-code

__END__

=pod

=encoding UTF-8

=head1 NAME

bencher-code - Accept a list of codes and perform benchmark

=head1 VERSION

This document describes version 0.245 of bencher-code (from Perl distribution App-BencherUtils), released on 2022-08-24.

=head1 SYNOPSIS

B<bencher-code> [(B<--code>=I<str>)+|B<--codes-json>=I<json>] [B<--config-path>=I<path>|B<-c>|B<--no-config>|B<-C>] [B<--config-profile>=I<profile>|B<-P>] [B<--format>=I<name>|B<--json>] [B<--(no)naked-res>] [B<--no-env>] [B<--page-result>[=I<program...

=head1 DESCRIPTION

    % bencher-code 'code1' 'code2'

is basically a shortcut for creating a scenario like this:

 {
     participants => [
         {code_template=>'code1'},
         {code_template=>'code2'},
     ],
 }

and running that scenario with C<bencher>.

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--code>=I<s@>*

Can also be specified as the 1st command-line argument and onwards.

Can be specified multiple times.

=item B<--codes-json>=I<s>

See C<--code>.

Can also be specified as the 1st command-line argument and onwards.

=item B<--precision>=I<s>

=item B<--startup>

Use code_startup mode instead of normal benchmark.

=item B<--with-process-size>

=back

=head2 Configuration options

=over

=item B<--config-path>=I<s>, B<-c>

Set path to configuration file.

Can actually be specified multiple times to instruct application to read from
multiple configuration files (and merge them).



( run in 3.152 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )