Package jflex.benchmark
Class JFlexBench
java.lang.Object
jflex.benchmark.JFlexBench
- Direct Known Subclasses:
JFlexBench_jmhType_B1
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbaselineReader(JFlexBench.LexerState state, org.openjdk.jmh.infra.Blackhole bh) The base line: a single continuous pass accessing each character once, through a buffer filled by a reader in one single reader invocation.static voidintBenchmark subject generated by JFlex 1.7.0intBenchmark subject generated by JFlex 1.8.2intBenchmark subject generated by current JFlex snapshot.
-
Constructor Details
-
JFlexBench
public JFlexBench()
-
-
Method Details
-
noActionLexer
Benchmark subject generated by current JFlex snapshot.- Parameters:
state- benchmark state parameter. Includes input, factor, etc.- Returns:
- number of matches
- Throws:
IOException- if anything goes wrong in the lexer (should not occur)
-
noAction17Lexer
Benchmark subject generated by JFlex 1.7.0- Parameters:
state- benchmark state parameter. Includes input, factor, etc.- Returns:
- number of matches
- Throws:
IOException- if anything goes wrong in the lexer (should not occur)
-
noAction18Lexer
Benchmark subject generated by JFlex 1.8.2- Parameters:
state- benchmark state parameter. Includes input, factor, etc.- Returns:
- number of matches
- Throws:
IOException- if anything goes wrong in the lexer (should not occur)
-
baselineReader
public void baselineReader(JFlexBench.LexerState state, org.openjdk.jmh.infra.Blackhole bh) throws IOException The base line: a single continuous pass accessing each character once, through a buffer filled by a reader in one single reader invocation.- Throws:
IOException
-
main
- Throws:
org.openjdk.jmh.runner.RunnerException
-