public class SuperClassInvocationBenchmark extends Object
ExampleClass and call this class's super method invocation. Since it
is not possible to create a subclass with the JDK proxy utilities, the latter is omitted from the benchmark.| Constructor and Description |
|---|
SuperClassInvocationBenchmark() |
| Modifier and Type | Method and Description |
|---|---|
void |
benchmarkByteBuddySpecialized(org.openjdk.jmh.infra.Blackhole blackHole)
Performs a benchmark of a super method invocation using Byte Buddy.
|
void |
benchmarkByteBuddyWithAnnotations(org.openjdk.jmh.infra.Blackhole blackHole)
Performs a benchmark of a super method invocation using Byte Buddy.
|
void |
benchmarkCglib(org.openjdk.jmh.infra.Blackhole blackHole)
Performs a benchmark of a super method invocation using cglib.
|
void |
benchmarkJavassist(org.openjdk.jmh.infra.Blackhole blackHole)
Performs a benchmark of a super method invocation using javassist.
|
void |
setUp()
Creates an instance for each code generation library.
|
public void setUp()
throws Exception
ClassByExtensionBenchmark.Exception - Covers the exception declarations of the setup methods.public void benchmarkByteBuddyWithAnnotations(org.openjdk.jmh.infra.Blackhole blackHole)
blackHole - A black hole for avoiding JIT erasure.public void benchmarkByteBuddySpecialized(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.Copyright © 2014. All rights reserved.