Package org.openjdk.jmh.samples
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Chromosome: encodes solution.static class
Population. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
This example shows the rather convoluted, but fun way to exploit JMH API in complex scenarios. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
v
private int vThis 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
- Throws:
RunnerException
-