Could you give me some basic samples how to use the speed tests testing framework. By now I've used only the unit testing framework in as2lib, and I will find it very usefull if you give me some guidelines on how to do some speed testing too.
Best Regards,
Vladimir
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
speed testing is only in alpha. I didn't work on it further because I've got no response. I thus also don't have an example available.
But the basic workflow is similar to the one for unit testing:
Use the TestSuiteFactory to collect all test cases or just the ones in a specific package. Run the resulting TestSuite and get the result from it. You can then for example just trace myResult.toString().
This will give you information about which method called which other method (the stack trace), how often the methods were called and which time they took totally, on the average etc.
You can use the different layouts to order the result in specific ways.
But note that everything is still rather slow. If I get some more response or if you find it helpful (something you could need in your daily work) I'll improve the algorithms and the API in coming releases.
Greetings,
Simon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Could you give me some basic samples how to use the speed tests testing framework. By now I've used only the unit testing framework in as2lib, and I will find it very usefull if you give me some guidelines on how to do some speed testing too.
Best Regards,
Vladimir
Hi Vladimir,
speed testing is only in alpha. I didn't work on it further because I've got no response. I thus also don't have an example available.
But the basic workflow is similar to the one for unit testing:
Use the TestSuiteFactory to collect all test cases or just the ones in a specific package. Run the resulting TestSuite and get the result from it. You can then for example just trace myResult.toString().
This will give you information about which method called which other method (the stack trace), how often the methods were called and which time they took totally, on the average etc.
You can use the different layouts to order the result in specific ways.
But note that everything is still rather slow. If I get some more response or if you find it helpful (something you could need in your daily work) I'll improve the algorithms and the API in coming releases.
Greetings,
Simon