Class JMHSample_25_API_GA

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int v
      This example shows the rather convoluted, but fun way to exploit JMH API in complex scenarios.
    • Field Detail

      • 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 Detail

      • JMHSample_25_API_GA

        public JMHSample_25_API_GA()
    • Method Detail

      • test

        public int test()
      • veryImportantCode

        public int veryImportantCode​(int d,
                                     int v)