ScenarioR/Scalar/Util/Numeric.pm

filter: Statementstmt 100% 3 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 3 / 3 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Scenario/Scalar/Util/Numeric.pm ↑ Summary
1 ## no critic
2 package Bencher::ScenarioR::Scalar::Util::Numeric;
3  
4 1 our $VERSION = 0.021; # VERSION
5  
6 1 our $results = [[200,"OK",[{_name=>"p_tags=pp, func:isnum participant=isnum-float-pp",_succinct_name=>"i pp, func:isnum",errors=>3.3e-09,p_tags=>"pp, func:isnum",participant=>"isnum-float-pp",pct_faster_vs_slowest=>0,pct_slower_vs_fastest=>40.6666666666667,rate=>490000,samples=>20,time=>2},{_name=>"p_tags=pp, func:isnum participant=isnum-str-pp",_succinct_name=>"i pp, func:isnum",errors=>2.2e-11,p_tags=>"pp, func:isnum",participant=>"isnum-str-pp",pct_faster_vs_slowest=>0.231527093596059,pct_slower_vs_fastest=>32.8333333333333,rate=>615800,samples=>20,time=>1.624},{_name=>"p_tags=pp, func:isfloat participant=isfloat-int-pp",_succinct_name=>"i pp, func:isfloat",errors=>1.6e-09,p_tags=>"pp, func:isfloat",participant=>"isfloat-int-pp",pct_faster_vs_slowest=>0.666666666666667,pct_slower_vs_fastest=>24,rate=>860000,samples=>22,time=>1.2},{_name=>"p_tags=pp, func:isfloat participant=isfloat-float-pp",_succinct_name=>"i pp, func:isfloat",errors=>3.9e-10,p_tags=>"pp, func:isfloat",participant=>"isfloat-float-pp",pct_faster_vs_slowest=>1.05973223480947,pct_slower_vs_fastest=>19.2291666666667,rate=>1030000,samples=>23,time=>0.971},{_name=>"p_tags=pp, func:isfloat participant=isfloat-str-pp",_succinct_name=>"i pp, func:isfloat",errors=>2.2e-11,p_tags=>"pp, func:isfloat",participant=>"isfloat-str-pp",pct_faster_vs_slowest=>1.17344055640078,pct_slower_vs_fastest=>18.1708333333333,rate=>1087000,samples=>20,time=>0.9202},{_name=>"p_tags=pp, func:isint participant=isint-float-pp",_succinct_name=>"i pp, func:isint",errors=>4.6e-11,p_tags=>"pp, func:isint",participant=>"isint-float-pp",pct_faster_vs_slowest=>1.59336099585062,pct_slower_vs_fastest=>15.0666666666667,rate=>1297000,samples=>20,time=>0.7712},{_name=>"p_tags=pp, func:isnum participant=isnum-int-pp",_succinct_name=>"i pp, func:isnum",errors=>2.3e-11,p_tags=>"pp, func:isnum",participant=>"isnum-int-pp",pct_faster_vs_slowest=>2.15357931251971,pct_slower_vs_fastest=>12.2125,rate=>1577000,samples=>20,time=>0.6342},{_name=>"p_tags=pp, func:isint participant=isint-int-pp",_succinct_name=>"i pp, func:isint",errors=>8.3e-10,p_tags=>"pp, func:isint",participant=>"isint-int-pp",pct_faster_vs_slowest=>3.44444444444444,pct_slower_vs_fastest=>8.375,rate=>2200000,samples=>20,time=>0.45},{_name=>"p_tags=xs, func:isint participant=isint-float-xs",_succinct_name=>"i xs, func:isint",errors=>2.2e-11,p_tags=>"xs, func:isint",participant=>"isint-float-xs",pct_faster_vs_slowest=>4.46746856205577,pct_slower_vs_fastest=>6.62083333333333,rate=>2734000,samples=>20,time=>0.3658},{_name=>"p_tags=xs, func:isnum participant=isnum-float-xs",_succinct_name=>"i xs, func:isnum",errors=>2.1e-11,p_tags=>"xs, func:isnum",participant=>"isnum-float-xs",pct_faster_vs_slowest=>4.47045951859956,pct_slower_vs_fastest=>6.61666666666667,rate=>2735000,samples=>20,time=>0.3656},{_name=>"p_tags=xs, func:isfloat participant=isfloat-float-xs",_succinct_name=>"i xs, func:isfloat",errors=>2.9e-11,p_tags=>"xs, func:isfloat",participant=>"isfloat-float-xs",pct_faster_vs_slowest=>4.47495209416918,pct_slower_vs_fastest=>6.61041666666667,rate=>2738000,samples=>20,time=>0.3653},{_name=>"p_tags=pp, func:isint participant=isint-str-pp",_succinct_name=>"i pp, func:isint",errors=>1.1e-10,p_tags=>"pp, func:isint",participant=>"isint-str-pp",pct_faster_vs_slowest=>4.95238095238095,pct_slower_vs_fastest=>6,rate=>2980000,samples=>20,time=>0.336},{_name=>"p_tags=xs, func:isint participant=isint-str-xs",_succinct_name=>"i xs, func:isint",errors=>2.1e-10,p_tags=>"xs, func:isint",participant=>"isint-str-xs",pct_faster_vs_slowest=>32.8983050847458,pct_slower_vs_fastest=>0.229166666666667,rate=>17000000,samples=>20,time=>0.059},{_name=>"p_tags=xs, func:isnum participant=isnum-str-xs",_succinct_name=>"i xs, func:isnum",errors=>2.1e-10,p_tags=>"xs, func:isnum",participant=>"isnum-str-xs",pct_faster_vs_slowest=>34.0877192982456,pct_slower_vs_fastest=>0.1875,rate=>18000000,samples=>20,time=>0.057},{_name=>"p_tags=xs, func:isfloat participant=isfloat-str-xs",_succinct_name=>"i xs, func:isfloat",errors=>1.2e-10,p_tags=>"xs, func:isfloat",participant=>"isfloat-str-xs",pct_faster_vs_slowest=>36.037037037037,pct_slower_vs_fastest=>0.125,rate=>18000000,samples=>20,time=>0.054},{_name=>"p_tags=xs, func:isnum participant=isnum-int-xs",_succinct_name=>"i xs, func:isnum",errors=>2.1e-10,p_tags=>"xs, func:isnum",participant=>"isnum-int-xs",pct_faster_vs_slowest=>37.4615384615385,pct_slower_vs_fastest=>0.0833333333333333,rate=>19000000,samples=>20,time=>0.052},{_name=>"p_tags=xs, func:isfloat participant=isfloat-int-xs",_succinct_name=>"i xs, func:isfloat",errors=>2.1e-10,p_tags=>"xs, func:isfloat",participant=>"isfloat-int-xs",pct_faster_vs_slowest=>37.4615384615385,pct_slower_vs_fastest=>0.0833333333333333,rate=>19000000,samples=>20,time=>0.052},{_name=>"p_tags=xs, func:isint participant=isint-int-xs",_succinct_name=>"i xs, func:isint",errors=>3.4e-10,p_tags=>"xs, func:isint",participant=>"isint-int-xs",pct_faster_vs_slowest=>40.6666666666667,pct_slower_vs_fastest=>0,rate=>21000000,samples=>20,time=>0.048}],{"func.bencher_args"=>{action=>"bench",note=>"Run by Pod::Weaver::Plugin::Bencher::Scenario",scenario=>{participants=>[{fcall_template=>"Scalar::Util::Numeric::PP::isint(1)",function=>"isint",include_by_default=>1,module=>"Scalar::Util::Numeric::PP",name=>"isint-int-pp",seq=>0,tags=>["pp","func:isint"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::PP::isint('a')",function=>"isint",include_by_default=>1,module=>"Scalar::Util::Numeric::PP",name=>"isint-str-pp",seq=>1,tags=>["pp","func:isint"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::PP::isint(1.23)",function=>"isint",include_by_default=>1,module=>"Scalar::Util::Numeric::PP",name=>"isint-float-pp",seq=>2,tags=>["pp","func:isint"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::PP::isfloat(1)",function=>"isfloat",include_by_default=>1,module=>"Scalar::Util::Numeric::PP",name=>"isfloat-int-pp",seq=>3,tags=>["pp","func:isfloat"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::PP::isfloat('a')",function=>"isfloat",include_by_default=>1,module=>"Scalar::Util::Numeric::PP",name=>"isfloat-str-pp",seq=>4,tags=>["pp","func:isfloat"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::PP::isfloat(1.23)",function=>"isfloat",include_by_default=>1,module=>"Scalar::Util::Numeric::PP",name=>"isfloat-float-pp",seq=>5,tags=>["pp","func:isfloat"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::PP::isnum(1)",function=>"isnum",include_by_default=>1,module=>"Scalar::Util::Numeric::PP",name=>"isnum-int-pp",seq=>6,tags=>["pp","func:isnum"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::PP::isnum('a')",function=>"isnum",include_by_default=>1,module=>"Scalar::Util::Numeric::PP",name=>"isnum-str-pp",seq=>7,tags=>["pp","func:isnum"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::PP::isnum(1.23)",function=>"isnum",include_by_default=>1,module=>"Scalar::Util::Numeric::PP",name=>"isnum-float-pp",seq=>8,tags=>["pp","func:isnum"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::isint(1)",function=>"isint",include_by_default=>1,module=>"Scalar::Util::Numeric",name=>"isint-int-xs",seq=>9,tags=>["xs","func:isint"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::isint('a')",function=>"isint",include_by_default=>1,module=>"Scalar::Util::Numeric",name=>"isint-str-xs",seq=>10,tags=>["xs","func:isint"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::isint(1.23)",function=>"isint",include_by_default=>1,module=>"Scalar::Util::Numeric",name=>"isint-float-xs",seq=>11,tags=>["xs","func:isint"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::isfloat(1)",function=>"isfloat",include_by_default=>1,module=>"Scalar::Util::Numeric",name=>"isfloat-int-xs",seq=>12,tags=>["xs","func:isfloat"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::isfloat('a')",function=>"isfloat",include_by_default=>1,module=>"Scalar::Util::Numeric",name=>"isfloat-str-xs",seq=>13,tags=>["xs","func:isfloat"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::isfloat(1.23)",function=>"isfloat",include_by_default=>1,module=>"Scalar::Util::Numeric",name=>"isfloat-float-xs",seq=>14,tags=>["xs","func:isfloat"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::isnum(1)",function=>"isnum",include_by_default=>1,module=>"Scalar::Util::Numeric",name=>"isnum-int-xs",seq=>15,tags=>["xs","func:isnum"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::isnum('a')",function=>"isnum",include_by_default=>1,module=>"Scalar::Util::Numeric",name=>"isnum-str-xs",seq=>16,tags=>["xs","func:isnum"],type=>"perl_code"},{fcall_template=>"Scalar::Util::Numeric::isnum(1.23)",function=>"isnum",include_by_default=>1,module=>"Scalar::Util::Numeric",name=>"isnum-float-xs",seq=>17,tags=>["xs","func:isnum"],type=>"perl_code"}],summary=>"Benchmark Scalar::Util::Numeric vs Scalar::Util::Numeric::PP"}},"func.bencher_version"=>undef,"func.code_startup"=>undef,"func.cpu_info"=>[{L2_cache=>{max_cache_size=>"3072 KB"},address_width=>64,architecture=>"AMD-64",bus_speed=>undef,data_width=>64,family=>6,flags=>["fpu","vme","de","pse","tsc","msr","pae","mce","cx8","apic","sep","mtrr","pge","mca","cmov","pat","pse36","clflush","dts","acpi","mmx","fxsr","sse","sse2","ss","ht","tm","pbe","syscall","nx","pdpe1gb","rdtscp","lm","constant_tsc","art","arch_perfmon","pebs","bts","rep_good","nopl","xtopology","nonstop_tsc","cpuid","aperfmperf","pni","pclmulqdq","dtes64","monitor","ds_cpl","vmx","est","tm2","ssse3","sdbg","fma","cx16","xtpr","pdcm","pcid","sse4_1","sse4_2","x2apic","movbe","popcnt","tsc_deadline_timer","aes","xsave","avx","f16c","rdrand","lahf_lm","abm","3dnowprefetch","cpuid_fault","epb","invpcid_single","pti","ssbd","ibrs","ibpb","stibp","tpr_shadow","vnmi","flexpriority","ept","vpid","ept_ad","fsgsbase","tsc_adjust","bmi1","avx2","smep","bmi2","erms","invpcid","mpx","rdseed","adx","smap","clflushopt","intel_pt","xsaveopt","xsavec","xgetbv1","xsaves","dtherm","ida","arat","pln","pts","hwp","hwp_notify","hwp_act_window","hwp_epp","md_clear","flush_l1d"],manufacturer=>"GenuineIntel",model=>142,name=>"Intel(R) Core(TM) i5-7200U CPU \@ 2.50GHz",number_of_cores=>2,number_of_logical_processors=>4,processor_id=>0,speed=>3100.054,stepping=>9},{L2_cache=>{max_cache_size=>"3072 KB"},address_width=>64,architecture=>"AMD-64",bus_speed=>undef,data_width=>64,family=>6,flags=>["fpu","vme","de","pse","tsc","msr","pae","mce","cx8","apic","sep","mtrr","pge","mca","cmov","pat","pse36","clflush","dts","acpi","mmx","fxsr","sse","sse2","ss","ht","tm","pbe","syscall","nx","pdpe1gb","rdtscp","lm","constant_tsc","art","arch_perfmon","pebs","bts","rep_good","nopl","xtopology","nonstop_tsc","cpuid","aperfmperf","pni","pclmulqdq","dtes64","monitor","ds_cpl","vmx","est","tm2","ssse3","sdbg","fma","cx16","xtpr","pdcm","pcid","sse4_1","sse4_2","x2apic","movbe","popcnt","tsc_deadline_timer","aes","xsave","avx","f16c","rdrand","lahf_lm","abm","3dnowprefetch","cpuid_fault","epb","invpcid_single","pti","ssbd","ibrs","ibpb","stibp","tpr_shadow","vnmi","flexpriority","ept","vpid","ept_ad","fsgsbase","tsc_adjust","bmi1","avx2","smep","bmi2","erms","invpcid","mpx","rdseed","adx","smap","clflushopt","intel_pt","xsaveopt","xsavec","xgetbv1","xsaves","dtherm","ida","arat","pln","pts","hwp","hwp_notify","hwp_act_window","hwp_epp","md_clear","flush_l1d"],manufacturer=>"GenuineIntel",model=>142,name=>"Intel(R) Core(TM) i5-7200U CPU \@ 2.50GHz",number_of_cores=>2,number_of_logical_processors=>4,processor_id=>1,speed=>3100.049,stepping=>9},{L2_cache=>{max_cache_size=>"3072 KB"},address_width=>64,architecture=>"AMD-64",bus_speed=>undef,data_width=>64,family=>6,flags=>["fpu","vme","de","pse","tsc","msr","pae","mce","cx8","apic","sep","mtrr","pge","mca","cmov","pat","pse36","clflush","dts","acpi","mmx","fxsr","sse","sse2","ss","ht","tm","pbe","syscall","nx","pdpe1gb","rdtscp","lm","constant_tsc","art","arch_perfmon","pebs","bts","rep_good","nopl","xtopology","nonstop_tsc","cpuid","aperfmperf","pni","pclmulqdq","dtes64","monitor","ds_cpl","vmx","est","tm2","ssse3","sdbg","fma","cx16","xtpr","pdcm","pcid","sse4_1","sse4_2","x2apic","movbe","popcnt","tsc_deadline_timer","aes","xsave","avx","f16c","rdrand","lahf_lm","abm","3dnowprefetch","cpuid_fault","epb","invpcid_single","pti","ssbd","ibrs","ibpb","stibp","tpr_shadow","vnmi","flexpriority","ept","vpid","ept_ad","fsgsbase","tsc_adjust","bmi1","avx2","smep","bmi2","erms","invpcid","mpx","rdseed","adx","smap","clflushopt","intel_pt","xsaveopt","xsavec","xgetbv1","xsaves","dtherm","ida","arat","pln","pts","hwp","hwp_notify","hwp_act_window","hwp_epp","md_clear","flush_l1d"],manufacturer=>"GenuineIntel",model=>142,name=>"Intel(R) Core(TM) i5-7200U CPU \@ 2.50GHz",number_of_cores=>2,number_of_logical_processors=>4,processor_id=>2,speed=>3100.053,stepping=>9},{L2_cache=>{max_cache_size=>"3072 KB"},address_width=>64,architecture=>"AMD-64",bus_speed=>undef,data_width=>64,family=>6,flags=>["fpu","vme","de","pse","tsc","msr","pae","mce","cx8","apic","sep","mtrr","pge","mca","cmov","pat","pse36","clflush","dts","acpi","mmx","fxsr","sse","sse2","ss","ht","tm","pbe","syscall","nx","pdpe1gb","rdtscp","lm","constant_tsc","art","arch_perfmon","pebs","bts","rep_good","nopl","xtopology","nonstop_tsc","cpuid","aperfmperf","pni","pclmulqdq","dtes64","monitor","ds_cpl","vmx","est","tm2","ssse3","sdbg","fma","cx16","xtpr","pdcm","pcid","sse4_1","sse4_2","x2apic","movbe","popcnt","tsc_deadline_timer","aes","xsave","avx","f16c","rdrand","lahf_lm","abm","3dnowprefetch","cpuid_fault","epb","invpcid_single","pti","ssbd","ibrs","ibpb","stibp","tpr_shadow","vnmi","flexpriority","ept","vpid","ept_ad","fsgsbase","tsc_adjust","bmi1","avx2","smep","bmi2","erms","invpcid","mpx","rdseed","adx","smap","clflushopt","intel_pt","xsaveopt","xsavec","xgetbv1","xsaves","dtherm","ida","arat","pln","pts","hwp","hwp_notify","hwp_act_window","hwp_epp","md_clear","flush_l1d"],manufacturer=>"GenuineIntel",model=>142,name=>"Intel(R) Core(TM) i5-7200U CPU \@ 2.50GHz",number_of_cores=>2,number_of_logical_processors=>4,processor_id=>3,speed=>"3100.080",stepping=>9}],"func.elapsed_time"=>0.664803028106689,"func.module_startup"=>undef,"func.module_versions"=>{"Benchmark::Dumb"=>0.501,"Devel::Platform::Info"=>"1.00","Scalar::Util::Numeric"=>"0.40","Scalar::Util::Numeric::PP"=>0.04,"Sys::Info"=>0.7811,__PACKAGE__=>1.062,perl=>"v5.34.0"},"func.note"=>"Run by Pod::Weaver::Plugin::Bencher::Scenario","func.permute"=>["perl",["perl"],"participant",[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],"func.platform_info"=>{archname=>"x86_64",codename=>"focal",is32bit=>0,is64bit=>1,kernel=>"linux-5.4.0-91-generic",kname=>"Linux",kvers=>"5.4.0-91-generic",osflag=>"linux",oslabel=>"Ubuntu",osname=>"GNU/Linux",osvers=>20.04,source=>{"cat /etc/.issue"=>"","cat /etc/issue"=>"Ubuntu 20.04.3 LTS \\n \\l","lsb_release -a"=>"LSB Version:\tcore-11.1.0ubuntu2-noarch:printing-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch\nDistributor ID:\tUbuntu\nDescription:\tUbuntu 20.04.3 LTS\nRelease:\t20.04\nCodename:\tfocal","uname -a"=>"Linux u1-XPS-13-9360 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux","uname -m"=>"x86_64","uname -o"=>"GNU/Linux","uname -r"=>"5.4.0-91-generic","uname -s"=>"Linux"}},"func.precision"=>0,"func.time_end"=>1673954372.28057,"func.time_factor"=>1,"func.time_start"=>1673954371.61577,"table.field_aligns"=>["left","left","left","number","number","number","number","number","number","number","number"],"table.field_formats"=>[undef,undef,undef,undef,undef,"percent","percent","percent","percent",undef,undef],"table.field_units"=>[undef,undef,undef,"/s","\x{3BC}s",undef,undef],"table.fields"=>["participant","dataset","p_tags","rate","time","pct_faster_vs_slowest","pct_slower_vs_fastest","pct_faster_vs_slowest","pct_slower_vs_fastest","errors","samples"]}]];
7  
8 1 1;
9 # ABSTRACT: Benchmark Scalar::Util::Numeric vs Scalar::Util::Numeric::PP
10  
11 =head1 DESCRIPTION
12  
13 This module is automatically generated by Pod::Weaver::Plugin::Bencher::Scenario during distribution build.
14  
15 A Bencher::ScenarioR::* module contains the raw result of sample benchmark and might be useful for some stuffs later.
16  
« Scenario/Scalar/Util/Numeric.pm ↑ Summary