Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

(Robert Flach -- tests aren't equal)RE: Re: simple swap...

by raflach (Pilgrim)
on Jul 21, 2000 at 23:18 UTC ( [id://23801]=note: print w/replies, xml ) Need Help??


in reply to Re: simple swap...
in thread simple swap...

What about testing the number of iterations for a specified amount of runtime, as was done in the original test, as opposed to timing a set number of iterations and checking the time as you did? The first method seems more likely to be accurate to me, and anyway you can't compare the tests unless they are the same, due to the vagaries of benchmark.

I'd be interested to see the results, but don't have Perl 5.6. Both methods of testing show the traditional method to be faster on 5.005_03.

  • Comment on (Robert Flach -- tests aren't equal)RE: Re: simple swap...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-18 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found