This is how I created the project:
$ mvn archetype:generate -DinteractiveMode=false -DarchetypeGroupId=org.openjdk.jmh -DarchetypeArtifactId=jmh-java-benchmark-archetype -DgroupId=nl.cwi.timsort.benchmark -DartifactId=timsort-benchmark -Dversion=1.0
Then prepared the project to be loaded in eclipse by:
$ cd timsort-benchmark
$ mvn eclipse:eclipse -DdownloadSources=true
Now, it's ready to be imported into eclipse.
Just have a look at the class TimSortBenchmark
.
Simply run the benchmark by:
$ ./run.sh