@ Benchmark @ OperationsPerInvocation ( 20 ) public void benchmarkByteBuddyWithProxy ( Blackhole blackHole ) { blackHole . consume ( byteBuddyWithProxyInstance . method ( booleanValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( byteValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( shortValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( intValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( charValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( intValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( longValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( floatValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( doubleValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( stringValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( booleanValue , booleanValue , booleanValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( byteValue , byteValue , byteValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( shortValue , shortValue , shortValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( intValue , intValue , intValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( charValue , charValue , charValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( intValue , intValue , intValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( longValue , longValue , longValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( floatValue , floatValue , floatValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( doubleValue , doubleValue , doubleValue ) ) ; blackHole . consume ( byteBuddyWithProxyInstance . method ( stringValue , stringValue , stringValue ) ) ; }
Performs a benchmark of a super method invocation using Byte Buddy . This benchmark uses an annotation - based approach which is more difficult to optimize by the JIT compiler .