Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: What could cause excessive page faults?

by Marshall (Canon)
on Mar 11, 2010 at 03:49 UTC ( [id://827933]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\Projects>perl -MTime::HiRes=time -wE"my $t=time; my @a=map{$_}map{$
    +_}1..1e6;say time-$t;"
    12.703125
    
  2. or download this
    C:\Projects>perl -MTime::HiRes=time -wE"my $t=time; my @a=map{$_}map{ 
    +$_}1..100e3;say time-$t;"
    0.193822860717773
    ...
    
    C:\Projects>perl -MTime::HiRes=time -wE"my $t=time; my @a=map{$_}map{ 
    +$_}1..2000e3;say time-$t;"
    50.140625
    
  3. or download this
    C:\Projects>perl -MTime::HiRes=time -wE"my $t=time; my @a=1..16000e3;s
    +ay time-$t;"
    1.5
    ...
    
    C:\Projects>perl -MTime::HiRes=time -wE"my $t=time; my @a=map{$_}map{$
    +_}1..16000e3;say time-$t;"
    3173.625
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-24 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found