From JEP 230 - how to build and run jdk microbenchmarks using openjdk build system:
./configure --with-jmh=/opt/jmh/target
make test-bundles
make build-microbenchmark
will build build/$PROFILE/images/test/micro/benchmarks.jar
make test TEST="micro:java.lang.invoke"
would run all the java.lang.invoke
microbenchmarks with default settings.