Use jmh: <http://openjdk.java.net/projects/code-to...
# getting-started