adoptium / aqa-tests

Home of test infrastructure for Adoptium builds
https://adoptium.net/aqavit
Apache License 2.0
129 stars 308 forks source link

Add an example jmh microbenchmark to perf test group #1663

Open smlambert opened 4 years ago

smlambert commented 4 years ago

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 commented 2 years ago

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

smlambert commented 2 years ago

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

llxia commented 1 year ago

@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"