Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Benchmarking Your Code

by Sartak (Hermit)
on Jun 10, 2006 at 06:43 UTC ( #554594=note: print w/ replies, xml ) Need Help??

in reply to Benchmarking Your Code

Interestingly, you used the <=> operator to compare words. When a word ([a-zA-Z]+) is numified, it becomes a numeric 0. So the results you're seeing are probably from {0 <=> 0} being far faster than {'mountain' cmp 'mountable'}.

Perhaps a better test would be the use of <=> and cmp on numbers?

Comment on Re: Benchmarking Your Code
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2015-11-28 06:50 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (739 votes), past polls