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
public class JMHSample_16_CompilerControl extends Object
-
-
Constructor Summary
Constructors Constructor Description JMHSample_16_CompilerControl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
baseline()
void
blank()
void
dontinline()
void
exclude()
void
inline()
static void
main(String[] args)
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.void
target_dontInline()
void
target_exclude()
void
target_inline()
-
-
-
Method Detail
-
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
public static void main(String[] args) throws org.openjdk.jmh.runner.RunnerException
- Throws:
org.openjdk.jmh.runner.RunnerException
-
-