@Benchmark
    public ExampleClass benchmarkByteBuddyWithAccessorWithTypePool() throws Exception {
        return (ExampleClass) new ByteBuddy()
                .with(TypeValidation.DISABLED)
                .ignore(none())
                .subclass(baseClassDescription)
                .method(isDeclaredBy(baseClassDescription)).intercept(MethodDelegation.to(accessClassDescription))
                .make()
                .load(newClassLoader(), ClassLoadingStrategy.Default.INJECTION)
                .getLoaded()
                .getDeclaredConstructor()
                .newInstance();
    }
@ Benchmark public ExampleClass benchmarkByteBuddyWithAccessorWithTypePool ( ) throws Exception { return ( ExampleClass ) new ByteBuddy ( ) . with ( TypeValidation . DISABLED ) . ignore ( none ( ) ) . subclass ( baseClassDescription ) . method ( isDeclaredBy ( baseClassDescription ) ) . intercept ( MethodDelegation . to ( accessClassDescription ) ) . make ( ) . load ( newClassLoader ( ) , ClassLoadingStrategy . Default . INJECTION ) . getLoaded ( ) . getDeclaredConstructor ( ) . newInstance ( ) ; }
Performs a benchmark of a class extension using Byte Buddy. This benchmark also uses the annotation-based approach
but creates delegation methods which do not require the creation of additional classes. This benchmark uses a type
pool to compare against usage of the reflection API.

@return The created instance, in order to avoid JIT removal.
@throws Exception If the invocation causes an exception.