Scenario/ProgressAny/Update.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Scenario/ProgressAny/Startup.pm ↑ Summary ScenarioR/ProgressAny/Startup.pm »
1 package Bencher::Scenario::ProgressAny::Update;
2  
3 1 our $DATE = '2018-05-20'; # DATE
4 1 our $VERSION = '0.001'; # VERSION
5  
6 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 our $scenario = {
11 summary => 'Benchmark update()',
12  
13 participants => [
14 {
15 name => '1000x update()',
16 module => 'Progress::Any',
17 code_template => q(use Progress::Any '$progress'; $progress->target(1000); for(1..1000) { $progress->update() } $progress->finish),
18 },
19 {
20 name => '1000x update(pos + message)',
21 module => 'Progress::Any',
22 code_template => q(use Progress::Any '$progress'; $progress->target(1000); for(1..1000) { $progress->update(pos=>$_, message=>$_) } $progress->finish),
23 },
24 ],
25 };
26  
27 1 1;
28 # ABSTRACT: Benchmark update()
29  
30 __END__
« Scenario/ProgressAny/Startup.pm ↑ Summary ScenarioR/ProgressAny/Startup.pm »