::Scenario::JSONDecodeRegexp;
our $DATE = '2017-01-25'; # DATE
our $VERSION = '0.003'; # VERSION
use 5.010001;
use strict;
use warnings;
our $scenario = {
summary => 'Benchmark JSON decoding',
mplate => 'JSON::Decode::Regexp::from_json(<data>)',
},
{
module => 'JSON::PP',
function => 'decode',
code_template => 'state $json = JSON::PP->new-
>allow_nonref; $json->decode(<data>)',
},
],
datasets => [
{name => 'str-a' , args=>{data=>'"123456789012345678901234567890123456789012345678901234567890123456789012345678901
package Bencher::ScenarioR::JSONDecodeRegexp::Startup;
our $VERSION = 0.003; # VERSION
our $results = [
[
200,
"OK",
[
{
errors => 5.5e-05,
mod_overhead_time => 2
ors => 1.9e-05,
mod_overhead_time => 3.4,
modver => 0.09,
participant => "JSON::Decode::Regexp",
proc_private_dirty_size => 3.7,
proc_rss_size => 7.3,
p
ors => 2.6e-05,
mod_overhead_time => 3.3,
modver => 0.07,
participant => "JSON::Decode::Regexp",
proc_private_dirty_size => 3.7,
proc_rss_size => 7.4,
p
er::Scenarios::JSONDecodeRegexp;
our $DATE = '2017-01-25'; # DATE
our $VERSION = '0.003'; # VERSION
use 5.010001;
use strict;
use warnings;
1;
# ABSTRACT: Scenarios to benchmark JSON::Decode::Regex
1 NAME
Bencher::Scenarios::JSONDecodeRegexp - Scenarios to benchmark JSON::Decode::Regexp
=head1 VERSION
This document describes version 0.003 of Bencher::Scenarios::JSONDecodeRegexp (from Perl dis
er-Scenarios-JSONDecodeRegexp), released on 2017-01-25.
=head1 DESCRIPTION
This distribution contains the following L<Bencher> scenario modules:
=over
=item * L<Bencher::Scenario::JSONDecodeRegexp
package Bencher::Scenario::JSONDecodeRegexp::Startup;
our $DATE = '2017-01-25'; # DATE
our $VERSION = '0.003'; # VERSION
use 5.010001;
use strict;
use warnings;
our $scenario = {
summary => 'Be
nchmark startup overhead of JSON::Decode::Regexp vs some other modules',
module_startup => 1,
participants => [
{module=>'JSON::Decode::Regexp'},
{module=>'Regexp::Grammars'},
up overhead of JSON::Decode::Regexp vs some other modules
__END__
=pod
=encoding UTF-8
=head1 NAME
Bencher::Scenario::JSONDecodeRegexp::Startup - Benchmark startup overhead of JSON::Decode::Regex
R::JSONDecodeRegexp;
our $VERSION = 0.003; # VERSION
our $results = [
[
200,
"OK",
[
{
errors => 1.9e-07,
modver => 0.06,
participant => "JSON::
Decode::Regexp::from_json",
rate => 11000,
samples => 24,
time => 87,
vs_slowest => 1,
},
{
errors => 1.9e-07,
modve
r => 0.03,
participant => "JSON::Decode::Regexp::from_json",
rate => 17000,
samples => 20,
time => 60,
vs_slowest => 1.4,
},