Class JMHSample_25_API_GA

java.lang.Object
org.openjdk.jmh.samples.JMHSample_25_API_GA
Direct Known Subclasses:
JMHSample_25_API_GA_jmhType_B1

public class JMHSample_25_API_GA extends Object
  • Field Details

    • v

      private int v
      This example shows the rather convoluted, but fun way to exploit JMH API in complex scenarios. Up to this point, we haven't consumed the results programmatically, and hence we are missing all the fun. Let's consider this naive code, which obviously suffers from the performance anomalies, since current HotSpot is resistant to make the tail-call optimizations.
  • Constructor Details

    • JMHSample_25_API_GA

      public JMHSample_25_API_GA()
  • Method Details

    • test

      public int test()
    • veryImportantCode

      public int veryImportantCode(int d, int v)
    • main

      public static void main(String[] args) throws RunnerException
      Throws:
      RunnerException