@Benchmark
    @OperationsPerInvocation(20)
    public void benchmarkByteBuddyWithAccessor(Blackhole blackHole) {
        blackHole.consume(byteBuddyWithAccessorInstance.method(booleanValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(byteValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(shortValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(intValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(charValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(intValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(longValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(floatValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(doubleValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(stringValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(booleanValue, booleanValue, booleanValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(byteValue, byteValue, byteValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(shortValue, shortValue, shortValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(intValue, intValue, intValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(charValue, charValue, charValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(intValue, intValue, intValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(longValue, longValue, longValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(floatValue, floatValue, floatValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(doubleValue, doubleValue, doubleValue));
        blackHole.consume(byteBuddyWithAccessorInstance.method(stringValue, stringValue, stringValue));
    }
@ Benchmark @ OperationsPerInvocation ( 20 ) public void benchmarkByteBuddyWithAccessor ( Blackhole blackHole ) { blackHole . consume ( byteBuddyWithAccessorInstance . method ( booleanValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( byteValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( shortValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( intValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( charValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( intValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( longValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( floatValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( doubleValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( stringValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( booleanValue , booleanValue , booleanValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( byteValue , byteValue , byteValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( shortValue , shortValue , shortValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( intValue , intValue , intValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( charValue , charValue , charValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( intValue , intValue , intValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( longValue , longValue , longValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( floatValue , floatValue , floatValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( doubleValue , doubleValue , doubleValue ) ) ; blackHole . consume ( byteBuddyWithAccessorInstance . method ( stringValue , stringValue , stringValue ) ) ; }
Performs a benchmark of a super method invocation using Byte Buddy. This benchmark also uses the annotation-based approach
but creates delegation methods which do not require the creation of additional classes.

@param blackHole A black hole for avoiding JIT erasure.