]> git.draconx.ca Git - cdecl99.git/commit
Batch up crossparse tests to improve performance.
authorNick Bowler <nbowler@draconx.ca>
Sat, 3 Mar 2012 03:30:15 +0000 (22:30 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 3 Mar 2012 03:33:33 +0000 (22:33 -0500)
commit9c8633f0258d0750fd81387fe826d4522873cd90
tree72990b4178460b2c2dfcbe3724ef639de545c229
parent582d63a4d10968f6729410310fdd520a41941b17
Batch up crossparse tests to improve performance.

A significant portion of the crossparse test time is spent just starting
the program hundreds of times.  Batch up the random declarations to
reduce this.  This makes the test script somewhat more complex, but the
gain is significant: the test time (500 iterations) on my machine is
shortened from 7 seconds to a mere .7 seconds.
test/crossparse.c
tests/crossparse-c-random.sh