The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

bencher - A benchmark framework (CLI)

VERSION

This document describes version 1.056 of bencher (from Perl distribution Bencher), released on 2021-08-13.

SYNOPSIS

List all scenario modules (Bencher::Scenario::*) installed locally on your system:

 % bencher --list-scenario-modules
 % bencher -L

Run benchmark described by a scenario module:

 % bencher -m Example

Run benchmark described by a scenario file:

 % bencher -f scenario.pl

Add participants from the command-line instead of (or in addition to) those specified in a scenario file/module:

 % bencher -p '{"fcall_template":"Bar::func(<arg>)"}'

Run module startup overhead benchmark instead of the normal benchmark:

 % bencher -m Example --module-startup

Show/dump scenario instead of running benchmark:

 % bencher -m Example --show-scenario

List participants instead of running benchmark:

 % bencher ... --list-participants
 % bencher ... --list-participants -l ;# show detail

List participating Perl modules (modules mentioned by all the participants):

 % bencher ... --list-participant-modules
 % bencher ... --list-participant-modules -l ;# show detail

List datasets instead of running benchmark:

 % bencher ... --list-datasets
 % bencher ... --list-datasets -l ;# show detail

List items instead of running benchmark:

 % bencher ... --list-items
 % bencher ... --list-items -l ;# show detail

Show items' codes instead of running benchmark:

 % bencher ... --show-items-codes

Show items' results instead of running benchmark:

 % bencher ... --show-items-results

Select (include/exclude) participants before running benchmark (you can also select datasets/modules/items):

 % bencher ... --include-participant-pattern 'Tiny|Lite' --exclude-participant 'HTTP::Tiny'

Benchmarking against multiple perls

You need to install App::perlbrew first and then install some perls. Also, install at least Bencher::Backend to each perl you want to run the benchmark on.

To list available perls (same as perlbrew list, but also shows whether a perl has Bencher):

 % bencher --list-perls
 % bencher --list-perls -l

To run a scenario against all perls which have Bencher:

 % bencher -m ScenarioModule --multiperl ...

To run a scenario against some perls:

 % bencher -m ScenarioModule --multiperl --include-perl perl-5.20.3 --include-perl perl-5.22.1 ...

Benchmarking multiple versions of a module

For example, if version 0.02 of a module is installed and you want to benchmark against version 0.01 (in /my/home/lib):

 % bencher -m ScenarioModule --multimodver Module::Name -I /my/home/lib ...

Note that Module::Name must be among the modules that are being benchmarked (according to the scenario).

DESCRIPTION

Bencher is a benchmark framework. You specify a scenario (either in a Bencher::Scenario::* Perl module, or a Perl script, or over the command-line) containing list of participants and datasets. Participants are codes or commands to run, and datasets are arguments for the codes/commands. Bencher will permute the participants and datasets into benchmark items, ready to run.

You can choose to include only some participants, datasets, or items. And there are options to view your scenario's participants/datasets/items/mentioned modules, run benchmark against multiple perls and module versions, and so on. Bencher comes as a CLI script as well as Perl module. See the Bencher::Backend documentation for more information.

OPTIONS

* marks required options.

Main options

--detail, -l

Show detailed information for each result.

--env-hash=s

Add an environment hash.

See --env-hashes.

--env-hashes-json=s

Add environment hashes (JSON-encoded).

See --env-hashes.

--env-hashes=s

Add environment hashes.

--on-failure=s

What to do when there is a failure.

Valid values:

 ["die","skip"]

For a command participant, failure means non-zero exit code. For a Perl-code participant, failure means Perl code dies or (if expected result is specified) the result is not equal to the expected result.

The default is "die". When set to "skip", will first run the code of each item before benchmarking and trap command failure/Perl exception and if that happens, will "skip" the item.

--on-result-failure=s

What to do when there is a result failure.

Valid values:

 ["die","skip","warn"]

This is like `on_failure` except that it specifically refer to the failure of item's result not being equal to expected result.

There is an extra choice of `warn` for this type of failure, which is to print a warning to STDERR and continue.

--precision-limit=s

Set precision limit.

Instead of setting `precision` which forces a single value, you can also set this `precision_limit` setting. If the precision in the scenario is higher (=number is smaller) than this limit, then this limit is used. For example, if the scenario specifies `default_precision` 0.001 and `precision_limit` is set to 0.005 then 0.005 is used.

This setting is useful on slower computers which might not be able to reach the required precision before hitting maximum number of iterations.

--precision=s

Precision.

When benchmarking with the default <pm:Benchmark::Dumb> runner, will pass the precision to it. The value is a fraction, e.g. 0.5 (for 5% precision), 0.01 (for 1% precision), and so on. Or, it can also be a positive integer to speciify minimum number of iterations, usually need to be at least 6 to avoid the "Number of initial runs is very small (<6)" warning. The default precision is 0, which is to let Benchmark::Dumb determine the precision, which is good enough for most cases.

When benchmarking with <pm:Benchmark> runner, will pass this value as the $count argument. Which can be a positive integer to mean the number of iterations to do (e.g. 10, or 100). Or, can also be set to a negative number (e.g. -0.5 or -2) to mean minimum number of CPU seconds. The default is -0.5.

When benchmarking with <pm:Benchmark::Dumb::SimpleTime>, this value is a positive integer which means the number of iterations to perform.

When profiling, a number greater than 1 will set a repetition loop (e.g. for(1..100){ ... }).

This setting overrides `default_precision` property in the scenario.

--runner=s

Runner module to use.

Valid values:

 ["Benchmark::Dumb","Benchmark","Benchmark::Dumb::SimpleTime"]

The default is `Benchmark::Dumb` which should be good enough for most cases.

You can use `Benchmark` runner (`Benchmark.pm`) if you are accustomed to it and want to see its output format.

You can use `Benchmark::Dumb::SimpleTime` if your participant code runs for at least a few to many seconds and you want to use very few iterations (like 1 or 2) because you don't want to wait for too long.

--save-result

Whether to save benchmark result to file.

Will also be turned on automatically if `BENCHER_RESULT_DIR` environment variabl is defined.

When this is turned on, will save a JSON file after benchmark, containing the result along with metadata. The directory of the JSON file will be determined from the `results_dir` option, while the filename from the `results_filename` option.

--test

Whether to test participant code once first before benchmarking.

By default, participant code is run once first for testing (e.g. whether it dies or return the correct result) before benchmarking. If your code runs for many seconds, you might want to skip this test and set this to 0.

--with-args-size

Also return memory usage of item's arguments.

Memory size is measured using <pm:Devel::Size>.

--with-process-size

Also return process size information for each item.

This is done by dumping each item's code into a temporary file and running the file with a new perl interpreter process and measuring the process size at the end (so it does not need to load Bencher itself or the other items). Currently only works on Linux because process size information is retrieved from `/proc/PID/smaps`. Not all code can work, e.g. if the code tries to access a closure or outside data or extra modules (modules not specified in the participant or loaded by the code itself). Usually does not make sense to use this on external command participants.

--with-result-size

Also return memory usage of each item code's result (return value).

Memory size is measured using <pm:Devel::Size>.

Action options

--action=s, -a

Default value:

 "bench"

Valid values:

 ["list-perls","list-scenario-modules","show-scenario","list-participants","list-participant-modules","list-datasets","list-items","show-items-codes","show-items-results","show-items-results-sizes","show-items-outputs","dump-items","dump-parsed-scenario","profile","bench"]
--code-startup

Benchmark code startup overhead instead of normal benchmark.

--dump-items

Shortcut for -a dump-items.

See --action.

--dump-parsed-scenario

Shortcut for -a dump-parsed-scenario.

See --action.

--list-datasets

Shortcut for -a list-datasets.

See --action.

--list-items

Shortcut for -a list-items.

See --action.

--list-participant-modules

Shortcut for -a list-participant-modules.

See --action.

--list-participants

Shortcut for -a list-participants.

See --action.

--list-perls

Shortcut for -a list-perls.

See --action.

--list-permutes

Shortcut for -a list-permutes.

See --action.

--list-scenario-modules

Shortcut for -a list-scenario-modules.

See --action.

--module-startup

Benchmark module startup overhead instead of normal benchmark.

--profile

Shortcut for -a profile.

See --action.

--show-items-codes

Shortcut for -a show-items-codes.

See --action.

--show-items-outputs

Shortcut for -a show-items-outputs.

See --action.

--show-items-results

Shortcut for -a show-items-results.

See --action.

--show-items-results-sizes

Shortcut for -a show-items-results-sizes.

See --action.

--show-scenario

Shortcut for -a show-scenario.

See --action.

-L

Shortcut for -a list-scenario-modules.

See --action.

Configuration options

--config-path=s, -c

Set path to configuration file.

--config-profile=s, -P

Set configuration profile to use.

--no-config, -C

Do not use any configuration file.

Dataset options

--dataset=s

Add a dataset.

See --datasets.

--datasets-json=s

Add datasets (JSON-encoded).

See --datasets.

--datasets=s

Add datasets.

-d=s

Add a dataset.

See --datasets.

Debugging options

--keep-tempdir

Do not cleanup temporary directory when bencher ends.

--tidy

Run perltidy over generated scripts.

Environment options

--no-env

Do not read environment for default options.

Filtering options

--exclude-dataset-name=s@

Add dataset (by name) to exclude list.

Can be specified multiple times.

--exclude-dataset-names-json=s

Exclude datasets whose name matches this (JSON-encoded).

See --exclude-dataset-name.

--exclude-dataset-pattern=s

Exclude datasets matching this regex pattern.

--exclude-dataset-seq=s@

Add dataset (by sequence number) to exclude list.

Can be specified multiple times.

--exclude-dataset-seqs-json=s

Exclude datasets whose sequence number matches this (JSON-encoded).

See --exclude-dataset-seq.

--exclude-dataset-tag=s@

Add a tag to dataset exclude tag list.

You can specify `A & B` to exclude datasets that have _both_ tags A and B.

Can be specified multiple times.

--exclude-dataset-tags-json=s

Exclude datasets whose tag matches this (JSON-encoded).

See --exclude-dataset-tag.

--exclude-dataset=s@

Add dataset (by name/seq) to exclude list.

Can be specified multiple times.

--exclude-datasets-json=s

Exclude datasets whose seq/name matches this (JSON-encoded).

See --exclude-dataset.

--exclude-function-pattern=s

Exclude function(s) matching this regex pattern.

--exclude-function=s@

Add function to exclude list.

Can be specified multiple times.

--exclude-functions-json=s

Exclude functions specified in this list (JSON-encoded).

See --exclude-function.

--exclude-item-name=s@

Add item (by name) to exclude list.

Can be specified multiple times.

--exclude-item-names-json=s

Exclude items whose name matches this (JSON-encoded).

See --exclude-item-name.

--exclude-item-pattern=s

Exclude items matching this regex pattern.

--exclude-item-seq=s@

Add item (by sequence number) to exclude list.

Can be specified multiple times.

--exclude-item-seqs-json=s

Exclude items whose sequence number matches this (JSON-encoded).

See --exclude-item-seq.

--exclude-item=s@

Add item (by name/seq) to exclude list.

Can be specified multiple times.

--exclude-items-json=s

Exclude items whose seq/name matches this (JSON-encoded).

See --exclude-item.

--exclude-module-pattern=s

Exclude module(s) matching this regex pattern.

--exclude-module=s@

Add module to exclude list.

Can be specified multiple times.

--exclude-modules-json=s

Exclude modules specified in this list (JSON-encoded).

See --exclude-module.

--exclude-participant-name=s@

Add participant (by name) to exclude list.

Can be specified multiple times.

--exclude-participant-names-json=s

Exclude participants whose name matches this (JSON-encoded).

See --exclude-participant-name.

--exclude-participant-pattern=s

Exclude participants matching this regex pattern.

--exclude-participant-seq=s@

Add participant (by sequence number) to exclude list.

Can be specified multiple times.

--exclude-participant-seqs-json=s

Exclude participants whose sequence number matches this (JSON-encoded).

See --exclude-participant-seq.

--exclude-participant-tag=s@

Add a tag to participants exclude tag list.

You can specify `A & B` to exclude participants that have _both_ tags A and B.

Can be specified multiple times.

--exclude-participant-tags-json=s

Exclude participants whose tag matches this (JSON-encoded).

See --exclude-participant-tag.

--exclude-participant=s@

Add participant (by name/seq) to exclude list.

Can be specified multiple times.

--exclude-participants-json=s

Exclude participants whose seq/name matches this (JSON-encoded).

See --exclude-participant.

--exclude-perl=s@

Add specified perl to exclude list.

Can be specified multiple times.

--exclude-perls-json=s

Exclude some perls (JSON-encoded).

See --exclude-perl.

--exclude-pp-modules, --nopp

Exclude PP (pure-Perl) modules.

--exclude-xs-modules, --noxs

Exclude XS modules.

--include-dataset-name=s@

Add dataset (by name) to include list.

Can be specified multiple times.

--include-dataset-names-json=s

Only include datasets whose name matches this (JSON-encoded).

See --include-dataset-name.

--include-dataset-pattern=s

Only include datasets matching this regex pattern.

--include-dataset-seq=s@

Add dataset (by sequence number) to include list.

Can be specified multiple times.

--include-dataset-seqs-json=s

Only include datasets whose sequence number matches this (JSON-encoded).

See --include-dataset-seq.

--include-dataset-tag=s@

Add a tag to dataset include tag list.

You can specify `A & B` to include datasets that have _both_ tags A and B.

Can be specified multiple times.

--include-dataset-tags-json=s

Only include datasets whose tag matches this (JSON-encoded).

See --include-dataset-tag.

--include-dataset=s@

Add dataset (by name/seq) to include list.

Can be specified multiple times.

--include-datasets-json=s

Only include datasets whose seq/name matches this (JSON-encoded).

See --include-dataset.

--include-function-pattern=s

Only include functions matching this regex pattern.

--include-function=s@

Add function to include list.

Can be specified multiple times.

--include-functions-json=s

Only include functions specified in this list (JSON-encoded).

See --include-function.

--include-item-name=s@

Add item (by name) to include list.

Can be specified multiple times.

--include-item-names-json=s

Only include items whose name matches this (JSON-encoded).

See --include-item-name.

--include-item-pattern=s

Only include items matching this regex pattern.

--include-item-seq=s@

Add item (by sequence number) to include list.

Can be specified multiple times.

--include-item-seqs-json=s

Only include items whose sequence number matches this (JSON-encoded).

See --include-item-seq.

--include-item=s@

Add item (by name/seq) to include list.

Can be specified multiple times.

--include-items-json=s

Only include items whose seq/name matches this (JSON-encoded).

See --include-item.

--include-module-pattern=s

Only include modules matching this regex pattern.

--include-module=s@

Add module to include list.

Can be specified multiple times.

--include-modules-json=s

Only include modules specified in this list (JSON-encoded).

See --include-module.

--include-participant-name=s@

Add participant (by name) to include list.

Can be specified multiple times.

--include-participant-names-json=s

Only include participants whose name matches this (JSON-encoded).

See --include-participant-name.

--include-participant-pattern=s

Only include participants matching this regex pattern.

--include-participant-seq=s@

Add participant (by sequence number) to include list.

Can be specified multiple times.

--include-participant-seqs-json=s

Only include participants whose sequence number matches this (JSON-encoded).

See --include-participant-seq.

--include-participant-tag=s@

Add a tag to participants include tag list.

You can specify `A & B` to include participants that have _both_ tags A and B.

Can be specified multiple times.

--include-participant-tags-json=s

Only include participants whose tag matches this (JSON-encoded).

See --include-participant-tag.

--include-participant=s@

Add participant (by name/seq) to include list.

Can be specified multiple times.

--include-participants-json=s

Only include participants whose seq/name matches this (JSON-encoded).

See --include-participant.

--include-perl=s@

Add specified perl to include list.

Can be specified multiple times.

--include-perls-json=s

Only include some perls (JSON-encoded).

See --include-perl.

Logging options

--debug

Shortcut for --log-level=debug.

--log-level=s

Set log level.

--quiet

Shortcut for --log-level=error.

--trace

Shortcut for --log-level=trace.

--verbose

Shortcut for --log-level=info.

Multi module version options

--include-path-json=s, -I

Additional module search paths (JSON-encoded).

See --include-path.

--include-path=s@

Add path to module search path.

Used when searching for scenario module, or when in multimodver mode.

Can be specified multiple times.

--multimodver=s

Benchmark multiple module versions.

If set to a module name, will search for all (instead of the first occurrence) of the module in `@INC`. Then will generate items for each version.

Currently only one module can be multi version.

Multiperl options

--exclude-perl=s@

Add specified perl to exclude list.

Can be specified multiple times.

--exclude-perls-json=s

Exclude some perls (JSON-encoded).

See --exclude-perl.

--include-perl=s@

Add specified perl to include list.

Can be specified multiple times.

--include-perls-json=s

Only include some perls (JSON-encoded).

See --include-perl.

--multiperl

Benchmark against multiple perls.

Requires <pm:App::perlbrew> to be installed. Will use installed perls from the perlbrew installation. Each installed perl must have <pm:Bencher::Backend> module installed (in addition to having all modules that you want to benchmark, obviously).

By default, only perls having Bencher::Backend will be included. Use `--include-perl` and `--exclude-perl` to include and exclude which perls you want.

Also note that due to the way this is currently implemented, benchmark code that contains closures (references to variables outside the code) won't work.

Output options

--capture-stderr

Trap output to stderr.

--capture-stdout

Trap output to stdout.

--format=s

Choose output format, e.g. json, text.

Default value:

 undef
--json

Set output format to json.

--naked-res

When outputing as JSON, strip result envelope.

Default value:

 0

By default, when outputing as JSON, the full enveloped result is returned, e.g.:

    [200,"OK",[1,2,3],{"func.extra"=>4}]

The reason is so you can get the status (1st element), status message (2nd element) as well as result metadata/extra result (4th element) instead of just the result (3rd element). However, sometimes you want just the result, e.g. when you want to pipe the result for more post-processing. In this case you can use `--naked-res` so you just get:

    [1,2,3]
--note=s

Put additional note in the result.

--page-result

Filter output through a pager.

--raw

Show "raw" data.

When action=show-items-result, will print result as-is instead of dumping as Perl.

--render-as-benchmark-pm

Format result like Benchmark.pm.

--result-dir=s

Directory to use when saving benchmark result.

Default is from `BENCHER_RESULT_DIR` environment variable, or the home directory.

--result-filename=s

Filename to use when saving benchmark result.

Default is:

    <NAME>.<yyyy-dd-dd-"T"HH-MM-SS>.json

or, when running in module startup mode:

    <NAME>.module_startup.<yyyy-dd-dd-"T"HH-MM-SS>.json

or, when running in code startup mode:

    <NAME>.code_startup.<yyyy-dd-dd-"T"HH-MM-SS>.json

where <NAME> is scenario module name, or `NO_MODULE` if scenario is not from a module. The `::` (double colon in the module name will be replaced with `-` (dash).

--return-meta

Whether to return extra metadata.

When set to true, will return extra metadata such as platform information, CPU information, system load before & after the benchmark, system time, and so on. This is put in result metadata under `func.*` keys.

The default is to true (return extra metadata) unless when run as CLI and format is text (where the extra metadata is not shown).

--scientific-notation
--sort=s@

Default value:

 ["-time"]

Can be specified multiple times.

--sorts-json=s

See --sort.

--view-result

View output using a viewer.

Participant options

--cpanmodules-module=s

Load a scenario from an Acme::CPANModules:: Perl module.

An <pm:Acme::CPANModules> module can also contain benchmarking information, e.g. <pm:Acme::CPANModules::TextTable>.

--participant=s

Add a participant.

See --participants.

--participants-json=s

Add participants (JSON-encoded).

See --participants.

--participants=s

Add participants.

--scenario-file=s, -f

Load a scenario from a Perl file.

Perl file will be do()'ed and the last expression should be a hash containing the scenario specification.

--scenario-json=s

Load a scenario from data structure (JSON-encoded).

See --scenario.

--scenario-module=s, -m

Load a scenario from a Bencher::Scenario:: Perl module.

Will try to load module `Bencher::Scenario::<NAME>` and expect to find a package variable in the module called `$scenario` which should be a hashref containing the scenario specification.

--scenario=s

Load a scenario from data structure.

-p=s

Add a participant.

See --participants.

Scenario options

--cpanmodules-module=s

Load a scenario from an Acme::CPANModules:: Perl module.

An <pm:Acme::CPANModules> module can also contain benchmarking information, e.g. <pm:Acme::CPANModules::TextTable>.

--scenario-file=s, -f

Load a scenario from a Perl file.

Perl file will be do()'ed and the last expression should be a hash containing the scenario specification.

--scenario-json=s

Load a scenario from data structure (JSON-encoded).

See --scenario.

--scenario-module=s, -m

Load a scenario from a Bencher::Scenario:: Perl module.

Will try to load module `Bencher::Scenario::<NAME>` and expect to find a package variable in the module called `$scenario` which should be a hashref containing the scenario specification.

--scenario=s

Load a scenario from data structure.

Other options

--help, -h, -?

Display help message and exit.

--version, -v

Display program's version and exit.

COMPLETION

This script has shell tab completion capability with support for several shells.

bash

To activate bash completion for this script, put:

 complete -C bencher bencher

in your bash startup (e.g. ~/.bashrc). Your next shell session will then recognize tab completion for the command. Or, you can also directly execute the line above in your shell to activate immediately.

It is recommended, however, that you install modules using cpanm-shcompgen which can activate shell completion for scripts immediately.

tcsh

To activate tcsh completion for this script, put:

 complete bencher 'p/*/`bencher`/'

in your tcsh startup (e.g. ~/.tcshrc). Your next shell session will then recognize tab completion for the command. Or, you can also directly execute the line above in your shell to activate immediately.

It is also recommended to install shcompgen (see above).

other shells

For fish and zsh, install shcompgen as described above.

CONFIGURATION FILE

This script can read configuration files. Configuration files are in the format of IOD, which is basically INI with some extra features.

By default, these names are searched for configuration filenames (can be changed using --config-path): ~/.config/bencher.conf, ~/bencher.conf, or /etc/bencher.conf.

All found files will be read and merged.

To disable searching for configuration files, pass --no-config.

You can put multiple profiles in a single file by using section names like [profile=SOMENAME] or [SOMESECTION profile=SOMENAME]. Those sections will only be read if you specify the matching --config-profile SOMENAME.

You can also put configuration for multiple programs inside a single file, and use filter program=NAME in section names, e.g. [program=NAME ...] or [SOMESECTION program=NAME]. The section will then only be used when the reading program matches.

You can also filter a section by environment variable using the filter env=CONDITION in section names. For example if you only want a section to be read if a certain environment variable is true: [env=SOMEVAR ...] or [SOMESECTION env=SOMEVAR ...]. If you only want a section to be read when the value of an environment variable equals some string: [env=HOSTNAME=blink ...] or [SOMESECTION env=HOSTNAME=blink ...]. If you only want a section to be read when the value of an environment variable does not equal some string: [env=HOSTNAME!=blink ...] or [SOMESECTION env=HOSTNAME!=blink ...]. If you only want a section to be read when the value of an environment variable includes some string: [env=HOSTNAME*=server ...] or [SOMESECTION env=HOSTNAME*=server ...]. If you only want a section to be read when the value of an environment variable does not include some string: [env=HOSTNAME!*=server ...] or [SOMESECTION env=HOSTNAME!*=server ...]. Note that currently due to simplistic parsing, there must not be any whitespace in the value being compared because it marks the beginning of a new section filter or section name.

To load and configure plugins, you can use either the -plugins parameter (e.g. -plugins=DumpArgs or -plugins=DumpArgs@before_validate_args), or use the [plugin=NAME ...] sections, for example:

 [plugin=DumpArgs]
 -event=before_validate_args
 -prio=99
 
 [plugin=Foo]
 -event=after_validate_args
 arg1=val1
 arg2=val2

 

which is equivalent to setting -plugins=-DumpArgs@before_validate_args@99,-Foo@after_validate_args,arg1,val1,arg2,val2.

List of available configuration parameters:

 action (see --action)
 capture_stderr (see --capture-stderr)
 capture_stdout (see --capture-stdout)
 code_startup (see --code-startup)
 cpanmodules_module (see --cpanmodules-module)
 datasets (see --datasets)
 detail (see --detail)
 env_hashes (see --env-hashes)
 exclude_dataset_names (see --exclude-dataset-name)
 exclude_dataset_pattern (see --exclude-dataset-pattern)
 exclude_dataset_seqs (see --exclude-dataset-seq)
 exclude_dataset_tags (see --exclude-dataset-tag)
 exclude_datasets (see --exclude-dataset)
 exclude_function_pattern (see --exclude-function-pattern)
 exclude_functions (see --exclude-function)
 exclude_item_names (see --exclude-item-name)
 exclude_item_pattern (see --exclude-item-pattern)
 exclude_item_seqs (see --exclude-item-seq)
 exclude_items (see --exclude-item)
 exclude_module_pattern (see --exclude-module-pattern)
 exclude_modules (see --exclude-module)
 exclude_participant_names (see --exclude-participant-name)
 exclude_participant_pattern (see --exclude-participant-pattern)
 exclude_participant_seqs (see --exclude-participant-seq)
 exclude_participant_tags (see --exclude-participant-tag)
 exclude_participants (see --exclude-participant)
 exclude_perls (see --exclude-perl)
 exclude_pp_modules (see --exclude-pp-modules)
 exclude_xs_modules (see --exclude-xs-modules)
 format (see --format)
 include_dataset_names (see --include-dataset-name)
 include_dataset_pattern (see --include-dataset-pattern)
 include_dataset_seqs (see --include-dataset-seq)
 include_dataset_tags (see --include-dataset-tag)
 include_datasets (see --include-dataset)
 include_function_pattern (see --include-function-pattern)
 include_functions (see --include-function)
 include_item_names (see --include-item-name)
 include_item_pattern (see --include-item-pattern)
 include_item_seqs (see --include-item-seq)
 include_items (see --include-item)
 include_module_pattern (see --include-module-pattern)
 include_modules (see --include-module)
 include_participant_names (see --include-participant-name)
 include_participant_pattern (see --include-participant-pattern)
 include_participant_seqs (see --include-participant-seq)
 include_participant_tags (see --include-participant-tag)
 include_participants (see --include-participant)
 include_path (see --include-path)
 include_perls (see --include-perl)
 keep_tempdir (see --keep-tempdir)
 log_level (see --log-level)
 module_startup (see --module-startup)
 multimodver (see --multimodver)
 multiperl (see --multiperl)
 naked_res (see --naked-res)
 note (see --note)
 on_failure (see --on-failure)
 on_result_failure (see --on-result-failure)
 participants (see --participants)
 precision (see --precision)
 precision_limit (see --precision-limit)
 raw (see --raw)
 render_as_benchmark_pm (see --render-as-benchmark-pm)
 result_dir (see --result-dir)
 result_filename (see --result-filename)
 return_meta (see --return-meta)
 runner (see --runner)
 save_result (see --save-result)
 scenario (see --scenario)
 scenario_file (see --scenario-file)
 scenario_module (see --scenario-module)
 scientific_notation (see --scientific-notation)
 sorts (see --sort)
 test (see --test)
 tidy (see --tidy)
 with_args_size (see --with-args-size)
 with_process_size (see --with-process-size)
 with_result_size (see --with-result-size)

ENVIRONMENT

BENCHER_OPT => str

Specify additional command-line options.

BENCHER_RESULT_DIR => str

Set default for --results-dir.

FILES

~/.config/bencher.conf

~/bencher.conf

/etc/bencher.conf

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Bencher.

SOURCE

Source repository is at https://github.com/perlancar/perl-Bencher.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher

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.

SEE ALSO

bencher-tiny if you want a simpler CLI with no non-core dependencies.

Bencher

Bencher::Backend

Bencher::Manual::*

AUTHOR

perlancar <perlancar@cpan.org>

CONTRIBUTING

To contribute, you can send patches by email/via RT, or send pull requests on GitHub.

Most of the time, you don't need to build the distribution yourself. You can simply modify the code, then test via:

 % prove -l

If you want to build the distribution (e.g. to try to install it locally on your system), you can install Dist::Zilla, Dist::Zilla::PluginBundle::Author::PERLANCAR, and sometimes one or two other Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required beyond that are considered a bug and can be reported to me.

COPYRIGHT AND LICENSE

This software is copyright (c) 2021, 2020, 2019, 2018, 2017, 2016, 2015 by perlancar <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.