Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Performance penalty of using qr//

by Eily (Monsignor)
on Dec 21, 2017 at 14:56 UTC ( [id://1205987]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use Benchmark qw( cmpthese timethese );
    ...
        }
    );
    cmpthese $r;
    
  2. or download this
    Benchmark: running use_qr, use_re, use_str for at least 5 CPU seconds.
    +..
        use_qr:  5 wallclock secs ( 5.23 usr +  0.00 sys =  5.23 CPU) @ 98
    +736.51/s (n=515997)
        use_re:  5 wallclock secs ( 5.33 usr +  0.00 sys =  5.33 CPU) @ 23
    +.99/s (n=128)
    ...
    use_re   24.0/s      --    -99%   -100%
    use_str  2268/s   9355%      --    -98%
    use_qr  98737/s 411431%   4253%      --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1205987]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-24 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found