AS3 Performance Test Framework

Sunday, 26 August 2007 | Labels: , | |

This is an extension of something I found (I wish I could remember where) to quickly run performance tests in controlled, repeatable environment. To run your own tests just write a class that implements the ITests interface, see the as an example. All the functions in the array returned by getRegisteredTests() will get exectued. You can change the number of iterations, test cycles etc by modifying the

Also if you do build a new test class, dont forget to change this line in

public var tests:ITests = new BasicLoopTests();

Replacing the BasicLoopTests() with your class name.

The code can be found here: