Class JFlexBench

java.lang.Object
jflex.benchmark.JFlexBench
Direct Known Subclasses:
JFlexBench_jmhType_B1

public class JFlexBench extends Object
  • Constructor Details

    • JFlexBench

      public JFlexBench()
  • Method Details

    • noActionLexer

      public int noActionLexer(JFlexBench.LexerState state) throws IOException
      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

      public int noAction17Lexer(JFlexBench.LexerState state) throws IOException
      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

      public int noAction18Lexer(JFlexBench.LexerState state) throws IOException
      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

      public static void main(String[] args) throws org.openjdk.jmh.runner.RunnerException
      Throws:
      org.openjdk.jmh.runner.RunnerException