Scenario/PERLANCARParseArithmetic/parse_arithmetic.pm

filter: Statementstmt 100% 4 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 4 / 4 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
↑ Summary ScenarioR/PERLANCARParseArithmetic/parse_arithmetic.pm »
1 package Bencher::Scenario::PERLANCARParseArithmetic::parse_arithmetic;
2  
3 1 our $DATE = '2017-01-25'; # DATE
4 1 our $VERSION = '0.006'; # VERSION
5  
6 1 our $scenario = {
7 summary => 'Benchmark parse_arithmetic()',
8 modules => {
9 },
10 participants => [
11 {
12 fcall_template => 'PERLANCAR::Parse::Arithmetic::parse_arithmetic(<expr>)',
13 },
14 {
15 fcall_template => 'PERLANCAR::Parse::Arithmetic::Marpa::parse_arithmetic(<expr>)',
16 },
17 {
18 fcall_template => 'PERLANCAR::Parse::Arithmetic::NoHash::parse_arithmetic(<expr>)',
19 },
20 {
21 fcall_template => 'PERLANCAR::Parse::Arithmetic::Pegex::parse_arithmetic(<expr>)',
22 },
23 ],
24 datasets => [
25 {
26 args => {expr => '1'},
27 },
28 {
29 args => {expr => '1' . ('+1' x ( 2-1)) },
30 },
31 {
32 args => {expr => '1' . ('+1' x ( 5-1)) },
33 },
34 {
35 name => '1+1+..+1 (10x)',
36 args => {expr => '1' . ('+1' x ( 10-1)) } },
37 {
38 name => '1+1+..+1 (20x)',
39 args => {expr => '1' . ('+1' x ( 20-1)) },
40 },
41 {
42 name => '1+1+..+1 (100x)',
43 args => {expr => '1' . ('+1' x (100-1)) },
44 },
45 {
46 name => '1+1+..+1 (200x)',
47 args => {expr => '1' . ('+1' x (200-1)) },
48 },
49 {
50 name => '1+1+..+1 (500x)',
51 args => {expr => '1' . ('+1' x (500-1)) },
52 },
53 {
54 name => '1+1+..+1 (1000x)',
55 args => {expr => '1' . ('+1' x (1000-1)) },
56 },
57 ],
58 };
59  
60 1 1;
61 # ABSTRACT: Benchmark parse_arithmetic()
62  
63 __END__
↑ Summary ScenarioR/PERLANCARParseArithmetic/parse_arithmetic.pm »