


The cost in seconds per day deploying 15 times per day The cost time per deployment is much better with the M1 than in the other computers. In the following table, we can see a summary of the numbers and the difference in cost in time using an M1 laptop. In 3,97 seconds the spring-boot application starts In 12.953 seconds the spring boot application startsĮxecution with Macbook Air M1 8GB RAM on Macosx In 9,8 seconds the spring-boot application startsĮxecution with Intel i7 12GB RAM on Windows Here are the results: Execution with Imac 2011 Intel i5 4GB RAM on Macosx The test that I did on all the computers is to start the application locally in each one of the computers. To compare the performance of the new Macbook Air M1 I used my spring-boot-application-example that I have on Github. 3 / bin: $PATH macOS M1 vs Windows 10 Intel i7 vs macOS Intel i5 2011 jdk / Contents / home export PATH =/ opt / apache - maven - 3.6. dmg file, it installs the JDK in the following directory:Įxport JAVA_HOME =/ Library / Java / JavaVirtualMachines / zulu - 8. Add Java to the JAVA_HOME environment variable One option is Azul distribution that you can check out on their website:Īnd the other is from the guys of Microsoft (yes Microsoft) that have a version of the JDK developed for ARM processors available in Github. To install a JDK in your Macbook M1 we have to look for a version compatible with ARM. You can read more info about the transition in this article Current options to install Java in an ARM processor Thanks to Rosetta 2 the transition for the end-users should be smooth and apps that work with Intel should still work fine using Rosetta 2. Now begins a transition period to adapt apps to the new architecture like when Apple moved from PowerPC to Intel in 2006. It opens the door to buy Mac apps that are working through all Apple platforms (macOS, iOS, iPadOS) This change doesn’t mean only a boost in performance. Intel processors use complex instruction set computing (CISC) while ARM uses reduced instruction set computing (RISC) which leads to ARM processors to execute instructions in one cycle and Intel processors to need several cycles. ARM has been used by Apple and Android manufacturers in their phone devices whereas Intel has been used mainly in computers. Intel(x86) to ARM transitionĪpple has replaced Intel x86 for the ARM-based processor chips in their new Macbooks released in late 2020. Disclaimer: This post has been written in early 2021, so all this maybe has changed at the time you are reading this. In this post we are going to see how to use Java in a Macbook M1 with the new Apple processors.
