Featured image of post OpenJDK 1.7 for OSX Benchs

OpenJDK 1.7 for OSX Benchs

After building and packaging OpenJDK 1.7 for OS/X, I wanted to see how performed new VMs.

Test vms

Recents OpenJDK 1.7 32 and 64bits where used :

openjdk version "1.7.0-internal" OpenJDK Runtime Environment (build 1.7.0-internal-henri_2010_12_01_00_46-b00) OpenJDK Server VM (build 20.0-b02, mixed mode)

openjdk version "1.7.0-internal" OpenJDK Runtime Environment (build 1.7.0-internal-henri_2010_12_01_00_49-b00) OpenJDK 64-Bit Server VM (build 20.0-b02, mixed mode)

Test system

My test system is an Apple Mac Book Pro (MacBookPro5,1) with Intel Core 2 Duo 2.66Ghz and 4Gb DDR3 1067Mhz, running under SnowLeopard 10.6.5 32bits.

DaCapo Benchmarks

I used again DaCapo 9.12-bach, discarding batik test, this one requiring a working AWT/Swing support .

Bench tests launched with -n X, ie (java -jar dacapo-9.12-bach.jar -n 10 pmd)

BenchApple JDK6OpenJDK 6OpenJDK 1.7 32bitsOpenJDK 1.7 64bits
avrora (10 iterations)5247ms4980ms6592ms4808ms
eclipse (2 iterations)53292ms34404ms40996ms38335ms
fop (10 iterations)560ms408ms505ms383ms
h2 (2 iterations)Failure (pending test)6488ms6876ms5557ms
jython (2 iterations)6034msFailure (Trace/BPT trap)Failure (Trace/BPT trap)Failure (Trace/BPT trap)
luindex (10 iterations)1072ms990ms1034ms967ms
lusearch (10 iterations)5997ms3957ms4884ms3895ms
pmd (10 iterations)3067ms2890ms3085ms2188ms
sunflow (10 iterations)6998ms6442ms6898ms6719ms
tomcat (5 iterations)4108msFailure (connection reset)4041ms3698ms
tradebeans (5 iterations)8257msFailure (connection reset)6384ms5545ms
tradesoap (5 iterations)20472ms12378ms16250ms13583ms
xalan (10 iterations)2877ms2847ms3071ms2875ms

Conclusion

Good news, two tests Tomcat and tradebeans now pass the bench

OpenJDK 1.7 64bits perform better than OpenJDK 1.7 32bits and OpenJDK 6.

Even if OpenJDK 1.7 32bits performances are better than Apple Java 6, it’s allways behind OpenJDK 1.7 64bits version on OS/X, so you should select the 64bits version if performance is the key for your use.

Next article will cover OpenJDK 1.7 and jtreg, the Regression Test Harness for the OpenJDK platform.

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy