|
Project Information
Featured
|
ActionScript 3 performances unit testing frameworkzanbench is a lightweight actionscript 3 framework for performances testing. It allow you to write benchmarks in a xUnit like style : - Create a BenchmarkCase by inheriting from BenchmarkCase or implementing Benchmarkable
- Write tests methods (basicaly, something you want to loop over)
- Tag these tests methods with the Benchmark metadata tag
- If needed, define callback's actions in four methods :
- prepare() : called before any test method
- setUp() : called before each test method
- tearDown() : called after each test method
- clean() : called after all test methods
- add your BenchmarkCase to a suite
- run the suite
zanbench let you split the tests methods iterations in runs, and define delay between these runs. This allow you to have more control over the system resources usage for very loud benchmarks. zanbench is in it's very first release, more features will come over time. --- There isn't any wiki page yet. If you want to learn about using zanbench, just have a look to the examples provided with the sources
|