Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

LWP head replacement

by crazyinsomniac (Prior)
on Nov 21, 2001 at 13:01 UTC ( [id://126739]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    
  2. or download this
    print "\n>>>>>>>>>>>>>>>>>>>>and now for the benchmark\n";
    use Benchmark;
    timethese(50, { 'real_HEAD' => sub { real_HEAD('http://japhy.perlmonk.
    +org/book/')},
                    'HEAD' => sub { HEAD('http://japhy.perlmonk.org/book/'
    +)},
                  });
    
  3. or download this
     ........ output from the HEAD .....
          HEAD: 140 wallclock secs (139.73 usr +  0.00 sys = 139.73 CPU) @
    +  0.36/s (n=50)
     ........ output from the HEAD .....
     real_HEAD: 208 wallclock secs (208.00 usr +  0.00 sys = 208.00 CPU) @
    +  0.24/s (n=50)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-25 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found