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)