Take Two: Comparing JVMs on ARM/Linux
Take Two: Comparing JVMs on ARM/Linux
Join the DZone community and get the full member experience.Join For Free
Java-based (JDBC) data connectivity to SaaS, NoSQL, and Big Data. Download Now.
Although the intent of the previous article, entitled Comparing JVMs on ARM/Linux, was to introduce and highlight the availability of the HotSpot server compiler (referred to as c2) for Java SE-Embedded ARM v7, it seems, based on feedback, that everyone was more interested in the OpenJDK comparisons to Java SE-E. But there were two main concerns:
- The fact that the previous article compared Java SE-E 7 against OpenJDK 6 might be construed as an unlevel playing field because version 7 is newer and therefore potentially more optimized.
- That the generic compiler settings chosen to build the OpenJDK implementations did not put those versions in a particularly favorable light.
With those considerations in mind, we'll institute the following changes to this version of the benchmarking:
- In order to help alleviate an additional concern that there is some sort of benchmark bias, we'll use a different suite, called DaCapo. Funded and supported by many prestigious organizations, DaCapo's aim is to benchmark real world applications. Further information about DaCapo can be found at http://dacapobench.org.
- At the suggestion of Xerxes Ranby, who has been a great help through this entire exercise, a newer Linux distribution will be used to assure that the OpenJDK implementations were built with more optimal compiler settings. The Linux distribution in this instance is Ubuntu 11.10 Oneiric Ocelot.
- Having experienced difficulties getting Ubuntu 11.10 to run on the original D2Plug ARMv7 platform, for these benchmarks, we'll switch to an embedded system that has a supported Ubuntu 11.10 release. That platform is the Freescale i.MX53 Quick Start Board. It has an ARMv7 Coretex-A8 processor running at 1GHz with 1GB RAM.
- We'll limit comparisons to 4 JVM implementations:
- Java SE-E 7 Update 2 c1 compiler (default)
- Java SE-E 6 Update 30 (c1 compiler is the only option)
- OpenJDK 6 IcedTea6 1.11pre 6b23~pre11-0ubuntu22.214.171.124 CACAO build 1.1.0pre2
- OpenJDK 6 IcedTea6 1.11pre 6b23~pre11-0ubuntu126.96.36.199 JamVM build-1.6.0-devel
Certain OpenJDK implementations were eliminated from this round of testing for the simple reason that their performance was not competitive. The Java SE 7u2 c2 compiler was also removed because although quite respectable, it did not perform as well as the c1 compilers. Recall that c2 works optimally in long-lived situations. Many of these benchmarks completed in a relatively short period of time. To get a feel for where c2 shines, take a look at the first chart in this blog.
The first chart that follows includes performance of all benchmark runs on all platforms. Later on we'll look more at individual tests. In all runs, smaller means faster. The DaCapo aficionado may notice that only 10 of the 14 DaCapo tests for this version were executed. The reason for this is that these 10 tests represent the only ones successfully completed by all 4 JVMs. Only the Java SE-E 6u30 could successfully run all of the tests. Both OpenJDK instances not only failed to complete certain tests, but also experienced VM aborts too.
One of the first observations that can be made between Java SE-E 6 and 7 is that, for all intents and purposes, they are on par with regards to performance. While it is a fact that successive Java SE releases add additional optimizations, it is also true that Java SE 7 introduces additional complexity to the Java platform thus balancing out any potential performance gains at this point. We are still early into Java SE 7. We would expect further performance enhancements for Java SE-E 7 in future updates.In comparing Java SE-E to OpenJDK performance, among both OpenJDK VMs, Cacao results are respectable in 4 of the 10 tests. The charts that follow show the individual results of those four tests. Both Java SE-E versions do win every test and outperform Cacao in the range of 9% to 55%.
For the remaining 6 tests, Java SE-E significantly outperforms Cacao in the range of 114% to 311%
So it looks like OpenJDK results are mixed for this round of benchmarks. In some cases, performance looks to have improved. But in a majority of instances, OpenJDK still lags behind Java SE-Embedded considerably.Time to put on my asbestos suit. Let the flames begin...
Published at DZone with permission of Jim Connors . See the original article here.
Opinions expressed by DZone contributors are their own.