Package jflex.benchmark
Class JFlexBench.LexerState
java.lang.Object
jflex.benchmark.JFlexBench.LexerState
- Direct Known Subclasses:
JFlexBench_LexerState_jmhType_B1
- Enclosing class:
JFlexBench
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
factor
public int factorFactor by which to scale the input size. We should see a benchmark time roughly linear in the factor, i.e. the first time times 10 and 100. -
input
public int input -
length
public int lengthThe length of the input for the benchmark. We give this to the baseline, but not JFlex. -
reader
The reader the input will be read from. Must supportreset().
-
-
Constructor Details
-
LexerState
public LexerState()
-
-
Method Details
-
setup
public void setup()Create input and populate state fields. Runs once per entire benchmark.
-