Class JFlexBench.LexerState

java.lang.Object
jflex.benchmark.JFlexBench.LexerState
Direct Known Subclasses:
JFlexBench_LexerState_jmhType_B1
Enclosing class:
JFlexBench

public static class JFlexBench.LexerState extends Object
  • Field Details

    • factor

      public int factor
      Factor 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 length
      The length of the input for the benchmark. We give this to the baseline, but not JFlex.
    • reader

      public Reader reader
      The reader the input will be read from. Must support reset().
  • Constructor Details

    • LexerState

      public LexerState()
  • Method Details

    • setup

      public void setup()
      Create input and populate state fields. Runs once per entire benchmark.