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

Re: each or keys?

by chromatic (Archbishop)
on Oct 11, 2000 at 02:44 UTC ( #36146=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use Benchmark;
    use strict;
    ...
    
    timethese(500, { 'each' => \&e,
             'keys' => \&k });
    
  2. or download this
    Benchmark: timing 500 iterations of each, keys...
        each:  4 wallclock secs ( 3.77 usr +  0.01 sys =  3.78 CPU)
        keys:  5 wallclock secs ( 4.85 usr +  0.00 sys =  4.85 CPU)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2021-04-13 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?