@Test public void testJdkProxyClassCreation() throws Exception { Class<?> type = trivialClassCreationBenchmark.benchmarkJdkProxy(); assertThat(type, not(CoreMatchers.<Class<?>>is(TrivialClassCreationBenchmark.BASE_CLASS))); assertThat(type.getSuperclass(), CoreMatchers.<Class<?>>is(Proxy.class)); assertThat(trivialClassCreationBenchmark.benchmarkJdkProxy(), not(CoreMatchers.<Class<?>>is(type))); }
@Benchmark @SuppressWarnings("deprecation") public Class<?> benchmarkJdkProxy() { return Proxy.getProxyClass(newClassLoader(), new Class<?>[urlLength]); }
TrivialClassCreationBenchmark { @Benchmark @SuppressWarnings("deprecation") public Class<?> benchmarkJdkProxy() { return Proxy.getProxyClass(newClassLoader(), new Class<?>[urlLength]); } }
TrivialClassCreationBenchmark { @Benchmark @SuppressWarnings("deprecation") public Class<?> benchmarkJdkProxy() { return Proxy.getProxyClass(newClassLoader(), new Class<?>[urlLength]); }  }
TrivialClassCreationBenchmark { @Benchmark @SuppressWarnings("deprecation") public Class<?> benchmarkJdkProxy() { return Proxy.getProxyClass(newClassLoader(), new Class<?>[urlLength]); }  @Benchmark Class<?> baseline(); @Benchmark Class<?> benchmarkByteBuddy(); @Benchmark Class<?> benchmarkCglib(); @Benchmark Class<?> benchmarkJavassist(); @Benchmark @SuppressWarnings("deprecation") Class<?> benchmarkJdkProxy(); }
TrivialClassCreationBenchmark { @Benchmark @SuppressWarnings("deprecation") public Class<?> benchmarkJdkProxy() { return Proxy.getProxyClass(newClassLoader(), new Class<?>[urlLength]); }  @Benchmark Class<?> baseline(); @Benchmark Class<?> benchmarkByteBuddy(); @Benchmark Class<?> benchmarkCglib(); @Benchmark Class<?> benchmarkJavassist(); @Benchmark @SuppressWarnings("deprecation") Class<?> benchmarkJdkProxy(); static final Class<?> BASE_CLASS; }