[Shootout-list] Directions of various benchmarks
John Skaller
skaller@users.sourceforge.net
Wed, 25 May 2005 02:41:23 +1000
On Mon, 2005-05-23 at 09:53 +0200, Bengt Kleberg wrote:
> start with n=1 (or 10, or 100, or 1000 depending upon the test).
> increase with either fixed addition (eg ackerman), or with fixed
> multiplication. for the muliplication, once we get over the time out
> limit, we go back by halving ''n'' until we have arrived below the time out.
I have a variation. Start with n=1 and add 1. End of story.
If the test needs to be done for 10, 100, 1000, 10000 .. etc,
then build that into the test. eg calculate m = 10 ^ n and use
m as the control variable.
This relieves the Shootout benchmark of the responsibility
for keeping track of which n's to use for each test,
--
John Skaller, skaller at users.sf.net
PO Box 401 Glebe, NSW 2037, Australia Ph:61-2-96600850
Download Felix here: http://felix.sf.net