Class ParseLoop
java.lang.Object
org.antlr.v4.test.runtime.java.api.perf.jmh.ParseLoop
Tight parse loop for throughput A/B and async-profiler. Avoids Maven
exec:java per-iteration overhead that inflates
ComparativeParseHarness cells.
java -Xms2g -Xmx2g -XX:+UseG1GC -cp ... \
org.antlr.v4.test.runtime.java.api.perf.jmh.ParseLoop \
serial|parallel|sll|profiling [seconds] [threads]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate static ParseWorkload.StatsrunOnce(List<CorpusLoader.SourceFile> files, ParseWorkload.PredictionStrategy strategy, boolean parallel, int threads)
-
Constructor Details
-
ParseLoop
private ParseLoop()
-
-
Method Details
-
main
- Throws:
Exception
-
runOnce
private static ParseWorkload.Stats runOnce(List<CorpusLoader.SourceFile> files, ParseWorkload.PredictionStrategy strategy, boolean parallel, int threads) throws Exception - Throws:
Exception
-