esapi-java-legacy icon indicating copy to clipboard operation
esapi-java-legacy copied to clipboard

Use JMH for ObjFactoryTest.testObjFactoryCache()

Open kwwall opened this issue 6 years ago • 0 comments

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.

kwwall avatar Jun 17 '19 23:06 kwwall