esapi-java-legacy
esapi-java-legacy copied to clipboard
Use JMH for ObjFactoryTest.testObjFactoryCache()
In https://github.com/ESAPI/esapi-java-legacy/pull/491#issuecomment-502572982, @hellyguo discovered timing problems, presumably in part caused by the JIT optimization that caused an asserting in the testObjFactoryCache() to fail. For the short-term, I'm just commented out that assert and added a TODO comment to use Java Microbenchmark Harness (JMH) to get more a more accurate portrayal. See those comments for additional details and context.