Related link: http://www.briancoyner.com/java-xp-cookbook.html
JUnitPerfDoclet is a free, custom XDoclet code generator, written by me, to generate JUnitPerf tests. JUnitPerf simply decorates existing JUnit tests for testing code performance (this screams “generate me!”).
One of our goals for the XDoclet chapter was to create a custom code generator. We wanted something that developers might actually use. The outcome was JUnitPerfDoclet, which fits into our book nicely because we are automating the creation of performance tests. If you have not used JUnitPerf, I would try it out, too. It’s a nice tool, and we have a chapter dedicated to it in our book.