Going from JSPWiki 2.8 to 3.0 I noticed a dramatic increase in time it takes to run the JUnit tests ("ant tests").
All tests were run :
| Case # | Env. | Tweak | Num tests | Total time |
|---|---|---|---|---|
| 1 | JSPWiki-2.8 | none | 947 | 5 minutes 1 second |
| 2 | JSPWiki-2.8 | JUnit task attribute in build.xml forkmode="once" maxmemory="512m" | 947 | 3 minutes 16 seconds |
| 3 | JSPWiki-3.0 | none | 1049 | 15 minutes 11 seconds |
| 4 | JSPWiki-3.0 | LoggerFactory c_isLog4jPresent = false (no JMX Logger Objects) | 1049 | 14 minutes 57 seconds |
| 5 | JSPWiki-3.0 | JUnit task attribute in build.xml forkmode="once" maxmemory="512m" | 1049 | 8 minutes 3 seconds |
| 6 | JSPWiki-3.0 | tweak 4 & 5 | 1049 | 7 minutes 46 seconds |
It would require further analysis, but I suspect the most delay was introduced because we switched to Stripes.
The WikiContextFactory calls the Resolver to find all implementations of WikiActionBean.