Bencher-Scenarios-Data-Dmp

 view release on metacpan or  search on metacpan

lib/Bencher/Scenario/Data/Dmp/Dump.pm  view on Meta::CPAN

package Bencher::Scenario::Data::Dmp::Dump;

use 5.010001;
use strict;
use warnings;

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2024-03-02'; # DATE
our $DIST = 'Bencher-Scenarios-Data-Dmp'; # DIST
our $VERSION = '0.004'; # VERSION

our $scenario = {
    summary => 'Benchmark Data::Dmp',
    modules => {
        'Data::Dmp' => {version=>'0.242'},
    },
    participants => [
        {name => 'Data::Dmp', fcall_template => 'Data::Dmp::dmp(<data>)'},
        {name => 'Data::MiniDumpX', fcall_template => 'Data::MiniDumpX::dump(<data>)'},
        {module => 'Data::Dump', code_template => 'my $dummy = Data::Dump::dump(<data>)'},
    ],
    datasets => [
        {
            name => 'a100-num-various',
            args => { data => [ (0, 1, -1, "+1", 1e100,
                                 -1e-100, "0123", "Inf", "-Inf", "NaN") x 10 ] },
        },
        {
            name => 'a100-num-int',
            args => { data => [ 1..100 ] },
        },
        {
            name => 'a100-str',
            args => { data => [ "a" x 100 ] },
        },
    ],
};

# ABSTRACT: Benchmark Data::Dmp

__END__

=pod

=encoding UTF-8

=head1 NAME

Bencher::Scenario::Data::Dmp::Dump - Benchmark Data::Dmp

=head1 VERSION

This document describes version 0.004 of Bencher::Scenario::Data::Dmp::Dump (from Perl distribution Bencher-Scenarios-Data-Dmp), released on 2024-03-02.

=head1 SYNOPSIS

To run benchmark with default option:

 % bencher -m Data::Dmp::Dump

To run module startup overhead benchmark:

 % bencher --module-startup -m Data::Dmp::Dump

For more options (dump scenario, list/include/exclude/add participants, list/include/exclude/add datasets, etc), see L<bencher> or run C<bencher --help>.

=head1 DESCRIPTION

Packaging a benchmark script as a Bencher scenario makes it convenient to include/exclude/add participants/datasets (either via CLI or Perl code), send the result to a central repository, among others . See L<Bencher> and L<bencher> (CLI) for more de...

=head1 BENCHMARKED MODULES

Version numbers shown below are the versions used when running the sample benchmark.

L<Data::Dmp> 0.242

L<Data::Dump> 1.25

L<Data::MiniDumpX> 0.000001

=head1 BENCHMARK PARTICIPANTS

=over

=item * Data::Dmp (perl_code)



( run in 0.737 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )