sanity-tool / sanity

1 stars 0 forks source link

Add parser performance profiling #42

Open okutane opened 5 years ago

okutane commented 5 years ago

My expectations on how it should work or be tested: After you run mvn clean verify -Pparser-native you should see pretty-printed table with rows like "Parser.parse", "NativeParsersFacade.parseRValue", "NativeParsersFacade.parse", etc and columns like "name", "count", "total", "min", "max", "avg" sorted by total time, descending

Coding recommendations: This library is good for adding performance meters: https://github.com/dropwizard/metrics

This library MAY be good for printing stats out: https://github.com/vdmeer/asciitable

dropwizard should have good spring aop integration and there are many ways to add on-shutdown logic in spring: https://www.baeldung.com/spring-shutdown-callbacks