aqa-tests icon indicating copy to clipboard operation
aqa-tests copied to clipboard

Add an example jmh microbenchmark to perf test group

Open smlambert opened this issue 5 years ago • 3 comments

As has always been in plan (see perf/README.md), we want to add some example microbenchmarks from the ones available in jmh-jdk-microbenchmarks.

Can use a jar file from mvn or some other known location

smlambert avatar Mar 03 '20 03:03 smlambert

Close this enhancement issue as we are unlikely to get to it quickly. Can reopen when more likely to revisit.

smlambert avatar Jun 07 '22 01:06 smlambert

Re-opening now as we may be able to enable some (into special.perf? with jdk11+):

https://github.com/openjdk/jdk11u/tree/master/test/micro/org/openjdk/bench https://github.com/openjdk/jdk17u/tree/master/test/micro/org/openjdk/bench https://github.com/openjdk/jdk19u/tree/master/test/micro/org/openjdk/bench

smlambert avatar Jul 05 '22 18:07 smlambert

@ChengJin01 got it working locally. Thanks for sharing, Cheng!

cd  openj9-openjdk-jdk19
rm -rf build
sh make/devkit/createJMHBundle.sh

bash configure --with-jmh=build/jmh/jars  --disable-warnings-as-errors --disable-ccache --with-mixedrefs=no --with-boot-jdk=/cygdrive/c/temp/jdk18_openj9_win_x64 --with-toolchain-version=2019 --with-freemarker-jar=/cygdrive/c/temp/freemarker.jar
make all
make test TEST="micro:java.lang.reflect"

llxia avatar Dec 12 '22 20:12 llxia