Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: 2Re: Not-so-Simple Switch statement

by NetWallah (Canon)
on Sep 14, 2003 at 02:07 UTC ( [id://291333]=note: print w/replies, xml ) Need Help??


in reply to 2Re: Not-so-Simple Switch statement
in thread Simple Switch statement

I re-ran the tests too, replacing the "print STDERR" with an assignment.

The "if" and "HashSub" methods speeds converge faster, with Hashsub becoming faster than "if" at a 22% match rate.

The minor differences in results may have to do with OS and perl implementations. I'm running Activestate perl 5.8 under Windows XP.

  • Comment on Re: 2Re: Not-so-Simple Switch statement

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-09-20 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (25 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.