The other day I was speculating about the JDK performance on the new Apple Macbook Pro with the new M1 chip when run with Rosetta 2. For me, it felt good enough when I compiled source code. IntelliJ run with Rosetta 2, however, felt sluggish. So I was curious how much better a native JDK might be.

Today I measured the performance difference between a JDK run with Rosetta 2 and natively. For my test, I installed a full JDK 8 from BellSoft (bell-sw.com) for x86_64 and an aarch64 JDK 8 from Azul. I used Tomcat 10 to build for my test.

JDK Performance

Building Tomcat 10 with a Rosetta 2 translated JDK required substantial more time to complete than with a native one.

Building Tomcat 10 with a Rosetta 2 translated JDK took 34 seconds as building it with the native JDK only took 9 seconds.

So while Rosetta 2 is a good thing, I’m sure one should go native whenever possible.