Contributions

Contributions are appreciated and used to host this site. Thank You for your support.

Feature Products
  • Raspberry Pi with Java: Programming the Internet of Things (IoT)
    Raspberry Pi with Java: Programming the Internet of Things (IoT)
  • Raspberry Pi 2 Model B Project Board - 1GB RAM - 900 MHz Quad-Core CPU
    Raspberry Pi 2 Model B Project Board - 1GB RAM - 900 MHz Quad-Core CPU
  • Premium Clear Case for Raspberry Pi 2 Model B Quad Core and Raspberry Pi Model B+ (B PLUS)
    Premium Clear Case for Raspberry Pi 2 Model B Quad Core and Raspberry Pi Model B+ (B PLUS)
  • Edimax EW-7811Un 150 Mbps Wireless 11n Nano Size USB Adapter with EZmax Setup Wizard
    Edimax EW-7811Un 150 Mbps Wireless 11n Nano Size USB Adapter with EZmax Setup Wizard
  • Getting Started with Raspberry Pi
    Getting Started with Raspberry Pi
  • Raspberry Pi User Guide
    Raspberry Pi User Guide
  • PiBrella LED Add On Board
    PiBrella LED Add On Board
  • Diversitech® WS-1 - Wet Switch Flood Detector
    Diversitech® WS-1 - Wet Switch Flood Detector
  • Onsite Pro FS1NPTW Whole Home Wireless FloodStop with 1 Inch Valve
    Onsite Pro FS1NPTW Whole Home Wireless FloodStop with 1 Inch Valve
  • Floodstop Washing Machine Valve Shutoff Kit
    Floodstop Washing Machine Valve Shutoff Kit
  • Onsite Pro FS3/4H Washing Machine FloodStop with Straight Valves
    Onsite Pro FS3/4H Washing Machine FloodStop with Straight Valves
  • Floodstop Individual Water Appliance Additional Water Sensor XS-01
    Floodstop Individual Water Appliance Additional Water Sensor XS-01
  • Aqua Managers - FS 1 1/4-NPT - Floodstop for Water Heaters Water Leak Detection System - White - 1.25 in. pipe
    Aqua Managers - FS 1 1/4-NPT - Floodstop for Water Heaters Water Leak Detection System - White - 1.25 in. pipe
  • Furman MP-20 Power Relay Accessory, 20 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
    Furman MP-20 Power Relay Accessory, 20 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
  • Furman MP-15 Power Relay Accessory, 15 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
    Furman MP-15 Power Relay Accessory, 15 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
  • Metra 70-2002 Radio Wiring Harness for Saturn 00-05
    Metra 70-2002 Radio Wiring Harness for Saturn 00-05
  • Metra Reverse Wiring Harness 71-2002 for Select 2000-2005 Saturn Vehicles OEM Radio
    Metra Reverse Wiring Harness 71-2002 for Select 2000-2005 Saturn Vehicles OEM Radio
Saturday
Aug252012

Raspberry Pi - Java Virtual Machine Benchmarks

I have recently been performing some benchmarks of the various Java Virtual Machines available on the Raspberry Pi ARM11 platform and thought I would share the results.  I used this test suite:  http://dacapobench.org/

Thanks to forum member chrisg on the Raspberry Pi forums who posted these benchmarks results for the previous Debian "Squeeze" image.  The results listed below for the OpenJDK are taken directly from chrisg's post.  I also ran these same tests on my Pi with Debian "Squeeze" and received very similar (maybe slightly higher) results.  

The following JVMs are represented:

  • Oracle SE 7 JDK (7u6)
  • Oracle SE 7 Embedded JRE (7u4) 
  • OpenJDK Zero VM (6u18)
  • OpenJDK Cacao VM (6u18)

The following chart includes all the tests performed and the resulting time in milliseconds that each test took to complete.  Obviously the lower number the better :-) 

I included a TOTAL line that sums up all the test results in minutes for each test case for rough comparisons, but please note that it does not compensate for the time missing from failed tests.

The test results are charted below for a visual representation.

 

I was particularly interested in the performance between the two available Oracle JVMs.  The results (as expected) were almost negligible.  The graph below illustrates the results of the two Oracle JVMs. 

* Raspberry Pi is a trademark of the Raspberry Pi foundation.
* Oracle and Java are registered trademarks of Oracle.

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (3)

Cool. I've been looking for something like this for a while. It would be cool to know how things stack up when oracle release the hard float jre.

November 1, 2012 | Unregistered CommenterPaul H

@Paul H

I attended JavaOne and the Oracle team confirmed that a hard-float version was in the works, but of course could not provide any estimated timeline when to expect a release. I'm not sure the performance gain will be all that significant unless you are crunching numbers or displaying a GUI app. But it will be nice to be able to use the main Raspian distribution. I hope to be able to update these test results when the hard-float supported JDK is finally released.

Thanks,
Robert

November 1, 2012 | Registered CommenterRobert Savage

Could you please benchmark the JDK8 preview with runs on raspberry pi (hardfloat)
http://www.savagehomeautomation.com/raspi-jdk8
THX Mike

January 15, 2013 | Unregistered Commentermike

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
« Raspberry Pi - Change Default Java Virtual Machine (JVM) | Main | Raspberry Pi - Installing Oracle Java Development Kit (JDK 1.7.0u6) »