Package org.openjdk.jmh.samples
Class JMHSample_16_CompilerControl
java.lang.Object
org.openjdk.jmh.samples.JMHSample_16_CompilerControl
- Direct Known Subclasses:
JMHSample_16_CompilerControl_jmhType_B1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
baseline()
void
blank()
void
void
exclude()
void
inline()
static void
void
These are our targets: - first method is prohibited from inlining - second method is forced to inline - third method is prohibited from compiling We might even place the annotations directly to the benchmarked methods, but this expresses the intent more clearly.void
void
void
-
Constructor Details
-
JMHSample_16_CompilerControl
public JMHSample_16_CompilerControl()
-
-
Method Details
-
target_blank
public void target_blank()These are our targets: - first method is prohibited from inlining - second method is forced to inline - third method is prohibited from compiling We might even place the annotations directly to the benchmarked methods, but this expresses the intent more clearly. -
target_dontInline
public void target_dontInline() -
target_inline
public void target_inline() -
target_exclude
public void target_exclude() -
baseline
public void baseline() -
blank
public void blank() -
dontinline
public void dontinline() -
inline
public void inline() -
exclude
public void exclude() -
main
- Throws:
RunnerException
-