Class GroovyParseWorkload
java.lang.Object
org.antlr.v4.test.runtime.java.api.perf.groovy.GroovyParseWorkload
Groovy-like serial/parallel parse helpers. The compact
GroovyLike.g4 front end shares ParseWorkload's thread pool
and two-stage driver; each worker still owns its lexer/parser while DFA
lives on the static ATN.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic intstatic intparseFile(String text, ParseWorkload.PredictionStrategy strategy, boolean clearDfa, boolean buildTree) static ParseWorkload.StatsparseParallel(List<CorpusLoader.SourceFile> files, ParseWorkload.PredictionStrategy strategy, boolean clearDfaAtStart, boolean buildTree, int threads) static ParseWorkload.StatsparseSerial(List<CorpusLoader.SourceFile> files, ParseWorkload.PredictionStrategy strategy, boolean clearDfaPerFile, boolean buildTree)
-
Field Details
-
GROOVY_LIKE
-
-
Constructor Details
-
GroovyParseWorkload
private GroovyParseWorkload()
-
-
Method Details
-
lexFile
-
parseFile
public static int parseFile(String text, ParseWorkload.PredictionStrategy strategy, boolean clearDfa, boolean buildTree) -
parseSerial
public static ParseWorkload.Stats parseSerial(List<CorpusLoader.SourceFile> files, ParseWorkload.PredictionStrategy strategy, boolean clearDfaPerFile, boolean buildTree) -
parseParallel
public static ParseWorkload.Stats parseParallel(List<CorpusLoader.SourceFile> files, ParseWorkload.PredictionStrategy strategy, boolean clearDfaAtStart, boolean buildTree, int threads) throws InterruptedException, ExecutionException