bonifaido / method-invocation-benchmark

Various method invocation benchmarks for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JDK Method Invocation Benchmark

Invoking methods in Java is possible in a lot of ways, let's compare their execution times!

Benchmarks are made with jmh

Usage

Build and Run

  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

Example Results

Check out how the standard reflection mechanism has improved between 1.7 and 1.8, see ReflectInvoker (earlier Caliper results):

About

Various method invocation benchmarks for Java


Languages

Language:Java 100.0%