@Test public void testBaseline() throws Exception { Class<?> type = trivialClassCreationBenchmark.baseline(); assertThat(type, CoreMatchers.<Class<?>>is(TrivialClassCreationBenchmark.BASE_CLASS)); }
@Benchmark public Class<?> baseline() { return Object.class; }
TrivialClassCreationBenchmark { @Benchmark public Class<?> baseline() { return Object.class; } }
TrivialClassCreationBenchmark { @Benchmark public Class<?> baseline() { return Object.class; }  }
TrivialClassCreationBenchmark { @Benchmark public Class<?> baseline() { return Object.class; }  @Benchmark Class<?> baseline(); @Benchmark Class<?> benchmarkByteBuddy(); @Benchmark Class<?> benchmarkCglib(); @Benchmark Class<?> benchmarkJavassist(); @Benchmark @SuppressWarnings("deprecation") Class<?> benchmarkJdkProxy(); }
TrivialClassCreationBenchmark { @Benchmark public Class<?> baseline() { return Object.class; }  @Benchmark Class<?> baseline(); @Benchmark Class<?> benchmarkByteBuddy(); @Benchmark Class<?> benchmarkCglib(); @Benchmark Class<?> benchmarkJavassist(); @Benchmark @SuppressWarnings("deprecation") Class<?> benchmarkJdkProxy(); static final Class<?> BASE_CLASS; }