Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re^2: Triangle Numbers Revisited
by Limbic~Region
|
|