Class GroovyParseHarness
java.lang.Object
org.antlr.v4.test.runtime.java.api.perf.groovy.GroovyParseHarness
Serial + parallel Groovy-like parse harness. Complements
ComparativeParseHarness
with the compact GroovyLike.g4 front end (two-stage SLL→LL and LL).
java ... GroovyParseHarness --files 40 --warmup 5 --iters 15 --threads 4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Stringstatic voidprivate static StringrunBatch(String name, List<CorpusLoader.SourceFile> files, ParseWorkload.PredictionStrategy strategy, boolean clearAtStart, int threads, int warmup, int iters) private static StringrunLex(String name, CorpusLoader.SourceFile file, boolean clearDfa, int warmup, int iters) private static StringrunParse(String name, CorpusLoader.SourceFile file, ParseWorkload.PredictionStrategy strategy, boolean clearDfa, int warmup, int iters)
-
Constructor Details
-
GroovyParseHarness
private GroovyParseHarness()
-
-
Method Details
-
main
- Throws:
Exception
-
runLex
private static String runLex(String name, CorpusLoader.SourceFile file, boolean clearDfa, int warmup, int iters) -
runParse
private static String runParse(String name, CorpusLoader.SourceFile file, ParseWorkload.PredictionStrategy strategy, boolean clearDfa, int warmup, int iters) -
runBatch
private static String runBatch(String name, List<CorpusLoader.SourceFile> files, ParseWorkload.PredictionStrategy strategy, boolean clearAtStart, int threads, int warmup, int iters) throws Exception - Throws:
Exception
-
format
-