The stupid question is the question not asked | |
PerlMonks |
Re^2: Triangle Numbers Revisitedby Limbic~Region (Chancellor) |
on Oct 14, 2004 at 02:34 UTC ( [id://399080]=note: print w/replies, xml ) | Need Help?? |
FoxtrotUniform,
The trouble with selecting a single number to benchmark from is that it may favor one method over the other. With this in mind, I created another rudimentary benchmark that shows the two methods are fairly equal: First generate 5,000 random numbers between 1 .. 5_000_000
Next, I just modified our 2 scripts as follows:
And finally, the results:
Cheers - L~R
In Section
Seekers of Perl Wisdom
|
|