@Test public void testBaseline() throws Exception { ExampleClass instance = classByExtensionBenchmark.baseline(); assertThat(instance.getClass(), CoreMatchers.<Class<?>>is(ClassByExtensionBenchmark.BASE_CLASS)); assertReturnValues(instance); }
@Benchmark public ExampleClass baseline() { return new ExampleClass(); }
ClassByExtensionBenchmark { @Benchmark public ExampleClass baseline() { return new ExampleClass(); } }
ClassByExtensionBenchmark { @Benchmark public ExampleClass baseline() { return new ExampleClass(); }  }
ClassByExtensionBenchmark { @Benchmark public ExampleClass baseline() { return new ExampleClass(); }  @Setup void setup(); @Benchmark ExampleClass baseline(); @Benchmark ExampleClass benchmarkByteBuddyWithProxy(); @Benchmark ExampleClass benchmarkByteBuddyWithProxyAndReusedDelegator(); @Benchmark ExampleClass benchmarkByteBuddyWithProxyWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddyWithProxyAndReusedDelegatorWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddyWithAccessor(); @Benchmark ExampleClass benchmarkByteBuddyWithAccessorAndReusedDelegator(); @Benchmark ExampleClass benchmarkByteBuddyWithAccessorWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddyWithAccessorAndReusedDelegatorWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddyWithPrefix(); @Benchmark ExampleClass benchmarkByteBuddyWithPrefixAndReusedDelegator(); @Benchmark ExampleClass benchmarkByteBuddyWithPrefixWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddyWithPrefixAndReusedDelegatorWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddySpecialized(); @Benchmark ExampleClass benchmarkCglib(); @Benchmark ExampleClass benchmarkJavassist(); }
ClassByExtensionBenchmark { @Benchmark public ExampleClass baseline() { return new ExampleClass(); }  @Setup void setup(); @Benchmark ExampleClass baseline(); @Benchmark ExampleClass benchmarkByteBuddyWithProxy(); @Benchmark ExampleClass benchmarkByteBuddyWithProxyAndReusedDelegator(); @Benchmark ExampleClass benchmarkByteBuddyWithProxyWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddyWithProxyAndReusedDelegatorWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddyWithAccessor(); @Benchmark ExampleClass benchmarkByteBuddyWithAccessorAndReusedDelegator(); @Benchmark ExampleClass benchmarkByteBuddyWithAccessorWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddyWithAccessorAndReusedDelegatorWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddyWithPrefix(); @Benchmark ExampleClass benchmarkByteBuddyWithPrefixAndReusedDelegator(); @Benchmark ExampleClass benchmarkByteBuddyWithPrefixWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddyWithPrefixAndReusedDelegatorWithTypePool(); @Benchmark ExampleClass benchmarkByteBuddySpecialized(); @Benchmark ExampleClass benchmarkCglib(); @Benchmark ExampleClass benchmarkJavassist(); static final Class<? extends ExampleClass> BASE_CLASS; }