Filename | /home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/5.22.0/x86_64-linux/Digest/MD5.pm |
Statements | Executed 18 statements in 304µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
27629 | 1 | 1 | 42.9ms | 42.9ms | md5 (xsub) | Digest::MD5::
1 | 1 | 1 | 8µs | 10µs | BEGIN@3 | Digest::MD5::
1 | 1 | 1 | 5µs | 34µs | BEGIN@4 | Digest::MD5::
0 | 0 | 0 | 0s | 0s | __ANON__[:18] | Digest::MD5::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Digest::MD5; | ||||
2 | |||||
3 | 2 | 16µs | 2 | 11µs | # spent 10µs (8+1) within Digest::MD5::BEGIN@3 which was called:
# once (8µs+1µs) by CHI::Util::BEGIN@6 at line 3 # spent 10µs making 1 call to Digest::MD5::BEGIN@3
# spent 1µs making 1 call to strict::import |
4 | 2 | 119µs | 2 | 63µs | # spent 34µs (5+29) within Digest::MD5::BEGIN@4 which was called:
# once (5µs+29µs) by CHI::Util::BEGIN@6 at line 4 # spent 34µs making 1 call to Digest::MD5::BEGIN@4
# spent 29µs making 1 call to vars::import |
5 | |||||
6 | 1 | 300ns | $VERSION = '2.54'; | ||
7 | |||||
8 | 1 | 300ns | require Exporter; | ||
9 | 1 | 800ns | *import = \&Exporter::import; | ||
10 | 1 | 700ns | @EXPORT_OK = qw(md5 md5_hex md5_base64); | ||
11 | |||||
12 | 1 | 300ns | eval { | ||
13 | 1 | 52µs | require Digest::base; | ||
14 | 1 | 4µs | push(@ISA, 'Digest::base'); | ||
15 | }; | ||||
16 | 1 | 100ns | if ($@) { | ||
17 | my $err = $@; | ||||
18 | *add_bits = sub { die $err }; | ||||
19 | } | ||||
20 | |||||
21 | |||||
22 | 1 | 1µs | eval { | ||
23 | 1 | 300ns | require XSLoader; | ||
24 | 1 | 101µs | 1 | 97µs | XSLoader::load('Digest::MD5', $VERSION); # spent 97µs making 1 call to XSLoader::load |
25 | }; | ||||
26 | 1 | 300ns | if ($@) { | ||
27 | my $olderr = $@; | ||||
28 | eval { | ||||
29 | # Try to load the pure perl version | ||||
30 | require Digest::Perl::MD5; | ||||
31 | |||||
32 | Digest::Perl::MD5->import(qw(md5 md5_hex md5_base64)); | ||||
33 | unshift(@ISA, "Digest::Perl::MD5"); # make OO interface work | ||||
34 | }; | ||||
35 | if ($@) { | ||||
36 | # restore the original error | ||||
37 | die $olderr; | ||||
38 | } | ||||
39 | } | ||||
40 | else { | ||||
41 | 1 | 700ns | *reset = \&new; | ||
42 | } | ||||
43 | |||||
44 | 1 | 7µs | 1; | ||
45 | __END__ | ||||
# spent 42.9ms within Digest::MD5::md5 which was called 27629 times, avg 2µs/call:
# 27629 times (42.9ms+0s) by BenchmarkAnything::Storage::Backend::SQL::Query::execute_query at line 40 of BenchmarkAnything/Storage/Backend/SQL/Query.pm, avg 2µs/call |