I have a library that provides a reflection API on top of describeType() (a method that returns an XML object with all the specs of a class or instance). Since this library is used in several other libraries and frameworks, I really want it to be as fast as possible.
The problem I'm facing is that I'm not sure about the best approach to refactor this libraries' code and make it possible to test and compare the results. I could easily add timers to the code, log the ouput and compare the results, but it seems like a lot of work to do this manually.
So this brings me to the following questions:
- Has anyone done something similar before?
- How did you test and compare the results of the changes?
- Is there perhaps any testing framework (also non-actionscript) that helps in performance testing in such a scenario?
- Do you have any other general tips?