Java Virtual Machine Benchmarks


3 posts
by savageautomate » Sat Aug 25, 2012 9:31 pm
Java VM benchmarks for the various JVMs available for Raspberry Pi:
http://www.savagehomeautomation.com/projects/raspberry-pi-java-virtual-machine-benchmarks.html

Image

Image
Robert Savage | Follow me @savageautomate
http://www.pi4j.com | http://www.pislices.com
http://www.savagehomeautomation.com
User avatar
Posts: 186
Joined: Thu Aug 16, 2012 3:20 pm
Location: USA
by xranby » Tue Aug 28, 2012 2:19 pm
Thank you for starting this thread, Dacapo is a nice benchamrk that gives a honest view how fast a JVM can solve large batch jobs.

I have done my own benchmarks using Scimark 2
The Scimark 2 benchmark is good to demonstrate CPU loop optimizations.

The raw numbers:
Image
Relative performance compared to the zero interpreted-mode:
Image

For best results:
Use ahead of time compilation using GCJ on the Pi running armhf.
For good results try:
Oracle JDK 7u6 on armel.
CACAO gives good results for armel and openjdk-6.
Avian also gives good results for armhf and openjdk-7.
JamVM gives ok results for armhf and openjdk-6/7.

The monte carlo benchmark is interesting, here the Oracle JDK clearly got an advantage by being 4 times faster compared to all FOSS options.

References:
How to use GCJ: viewtopic.php?p=159779#p159779
How to insall Oracle JDK 7u6 for armel : http://www.savagehomeautomation.com/pro ... -170u.html
How to build avian + OpenJDK 7 for armhf : http://labb.zafena.se/?p=630
How to build JamVM + OpenJDK 6/7 for armhf : http://labb.zafena.se/?p=576


I am still looking for a good benchmark to measure responsiveness in client applications.
it would be interesting to check which JVM would be most suitable for audio and 3D game programming on the Pi.

Cheers
Xerxes
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby
User avatar
Posts: 401
Joined: Sat Mar 03, 2012 10:02 pm
by xranby » Fri Sep 21, 2012 8:06 am
Yesterday i experimented running a real-time java arcade game on the Pi written using Java2D and deployed using javaws JNLP.
viewtopic.php?p=177614#p177614
Here JamVM came out as a clear winner on the Pi for realtime java game applications:
OpenJDK 7 + JamVM + icedtea-web gave 28 fps in game using Rasbian armhf
OpenJDK 7 + zero mixed mode + icedtea-web gave 21fps in game fps using Rasbian armhf
Oracle 7u6 JDK using Debian armel was unable to start the game since it did not contain a javaws JNLP launcher.

This clearly indicate that we need to have better benchmarks for realtime java use cases like interactive 2D applications.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby
User avatar
Posts: 401
Joined: Sat Mar 03, 2012 10:02 pm