Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: perl process slower and slower when loop number increase

by pryrt (Abbot)
on Jan 22, 2018 at 16:22 UTC ( [id://1207682]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #/usr/bin/perl
    use warnings;
    ...
        oneE9 => sub { for( 1 .. 1e9 ) {} },
    });
    cmpthese($r);
    
  2. or download this
         oneE5: 63.876 wallclock secs (63.43 usr +  0.20 sys = 63.63 CPU) 
    +@ 140.81/s (n=8960)
         oneE6: 63.7849 wallclock secs (63.09 usr +  0.23 sys = 63.32 CPU)
    + @ 14.17/s (n=897)
    ...
    oneE6     14.2/s  104829%    9738%     896%       --     -90%
    oneE5      141/s 1042910%   97688%    9798%     894%       --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-20 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found