dsyer / spring-boot-aspectj

Sample applications showing how to use AspectJ with Spring Boot
https://projects.spring.io/spring-boot/
168 stars 52 forks source link

Benchmarks with Java 11 and Spring Boot 2.2.4 Questions #6

Open lofidewanto opened 4 years ago

lofidewanto commented 4 years ago

Hi all,

I tried the benchmarks with Java 11 OpenJDK and Spring Boot 2.2.4 and here is the result:

https://github.com/lofidewanto/spring-boot-aspectj/tree/master/benchmarks

It looks slower than before? Do I have to do something to run it correctly? I run it on my macBook.

Thanks, Lofi

dsyer commented 4 years ago

It depends a lot on your hardware and what else is running at the time. The only meaningful comparison would be for you with Java 8 on master and you with Java 11 and your changes.

lofidewanto commented 4 years ago

Thanks,

I run the original benchmarks with my laptop, here is the result:

https://github.com/lofidewanto/spring-boot-aspectj/tree/master/benchmarks

Why is the old benchmarks with JMH 1.16 faster? Or maybe we cannot compare the result of JMH 1.16 with 1.23? I haven't looked deeply into JMH...

I'm not sure, whether I interpreted the results correctly...