Invoking methods in Java is possible in a lot of ways, let's compare their execution times!
Benchmarks are made with jmh
mvn clean package
java -jar target/benchmark.jar
Or simply open the project in your favourite IDE (like IntelliJ) and run: org.openjdk.jmh.Main
Check out how the standard reflection mechanism has improved between 1.7 and 1.8, see ReflectInvoker (earlier Caliper results):