My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads

ActionScript 3 performances unit testing framework

zanbench 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 :
    1. prepare() : called before any test method
    2. setUp() : called before each test method
    3. tearDown() : called after each test method
    4. 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

Powered by Google Project Hosting