public class JMHSample_16_CompilerControl extends Object
Constructor and Description |
---|
JMHSample_16_CompilerControl() |
Modifier and Type | Method and 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() |
public void target_blank()
public void target_dontInline()
public void target_inline()
public void target_exclude()
public void baseline()
public void blank()
public void dontinline()
public void inline()
public void exclude()
public static void main(String[] args) throws RunnerException
RunnerException
Copyright © 2015. All rights reserved.