public class StubInvocationBenchmark extends Object
ExampleInterface and implement all methods to return the return type's
default value, independently of the arguments.| Constructor and Description |
|---|
StubInvocationBenchmark() |
| Modifier and Type | Method and Description |
|---|---|
void |
benchmarkByteBuddy(org.openjdk.jmh.infra.Blackhole blackHole)
Performs a benchmark for a trivial class creation using Byte Buddy.
|
void |
benchmarkCglib(org.openjdk.jmh.infra.Blackhole blackHole)
Performs a benchmark for a trivial class creation using cglib.
|
void |
benchmarkJavassist(org.openjdk.jmh.infra.Blackhole blackHole)
Performs a benchmark for a trivial class creation using javassist.
|
void |
benchmarkJdkProxy(org.openjdk.jmh.infra.Blackhole blackHole)
Performs a benchmark for a trivial class creation using the Java Class Library's utilities.
|
void |
setUp()
Creates an instance for each code generation library.
|
public void setUp()
throws Exception
ClassByImplementationBenchmark.Exception - Covers the exception declarations of the setup methods.public void benchmarkByteBuddy(org.openjdk.jmh.infra.Blackhole blackHole)
blackHole - A black hole for avoiding JIT erasure.public void benchmarkCglib(org.openjdk.jmh.infra.Blackhole blackHole)
blackHole - A black hole for avoiding JIT erasure.public void benchmarkJavassist(org.openjdk.jmh.infra.Blackhole blackHole)
blackHole - A black hole for avoiding JIT erasure.public void benchmarkJdkProxy(org.openjdk.jmh.infra.Blackhole blackHole)
blackHole - A black hole for avoiding JIT erasure.Copyright © 2014. All rights reserved.