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 VectorTests.as 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 TestRunner.as

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

public var tests:ITests = new BasicLoopTests();

Replacing the BasicLoopTests() with your class name.

The code can be found here: http://home.planet.nl/%7Eborst595/BenchmarkAS3.zip

0 comments: