- RoyLongbottom
- Posts: 515
- Joined: Fri Apr 12, 2013 9:27 am
JRE For Applet Hard Float
On the Pi I have JRE 6, 7 and 8 installed and JDK 7 to compile class files. I have the Java Whetstone benchmark (floating point) with both off-line and on-line versions. I switch between the Javas using sudo update-alternatives --config java. The off-line benchmark runs using all Java JREs but needs JRE 8 Hard Float for reasonably fast speeds.
The on-line Applet always uses JRE 6, whatever JRE is selected. How can I select a different JRE for Midori and will it use hard float?
Googling suggests solutions but there is invariably a specified command that is not valid. The Whetstone Applet is available via:
http://www.roylongbottom.org.uk/online%20benchmarks.htm
A poor score shows MFLOPS less than 8 and a good one >20 (off-line 26 to 49).
Roy
The on-line Applet always uses JRE 6, whatever JRE is selected. How can I select a different JRE for Midori and will it use hard float?
Googling suggests solutions but there is invariably a specified command that is not valid. The Whetstone Applet is available via:
http://www.roylongbottom.org.uk/online%20benchmarks.htm
A poor score shows MFLOPS less than 8 and a good one >20 (off-line 26 to 49).
Roy
Re: JRE For Applet Hard Float
Midori can be used in combination with the IcedTea-web plugin on Debian & Rasbian by installing the icedtea-plugin or icedtea-7-plugin package.RoyLongbottom wrote:...
The on-line Applet always uses JRE 6, whatever JRE is selected. How can I select a different JRE for Midori and will it use hard float?...
http://icedtea.classpath.org/wiki/IcedTea-Web
http://packages.debian.org/source/sid/icedtea-web
icedtea-plugin / icedtea-6-plugin is using OpenJDK 6 that includes 3 JVM
Zero, JamVM and CACAO
You can configure which JVM to be used by default for OpenJDK 6 by editing /etc/java-6-openjdk/jvm-armhf.cfg
icedtea-7-plugin is using OpenJDK 7 that includes 2 JVM
Zero and JamVM
You can configure which JVM to be used by default by editing /etc/java-7-openjdk/jvm-armhf.cfg
All the JVM's listed above "will use hard float" and runs on Rasbian.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby
twitter.com/xranby
- RoyLongbottom
- Posts: 515
- Joined: Fri Apr 12, 2013 9:27 am
Re: JRE For Applet Hard Float
Thanks xranbyicedtea-plugin / icedtea-6-plugin is using OpenJDK 6 that includes 3 JVM
Zero, JamVM and CACAO
You can configure which JVM to be used by default for OpenJDK 6 by editing /etc/java-6-openjdk/jvm-armhf.cfg
It took a while to find how to edit the files (sudo pico filename, insert -jamvm KNOWN as first line, save by Ctrl O). I can’t remember how I edited such files the last time I played with Linux.
Anyway hard float now works on JRE 6 and JRE 7 off-line. Midori also uses hard float but only seems to use Java 1.6. Results follow, showing JRE 7 a little faster than JRE 8, JRE 8 a lot faster but far behind the C version.
Code: Select all
Old JRE6 and 7
Test Result MFLOPS MOPS millisecs
N1 floating point -1.124750137 4.39 4.3700
N2 floating point -1.131330609 6.35 21.1700
N3 if then else 1.000000000 2.93 35.2700
N4 fixed point 12.000000000 7.94 39.6500
N5 sin,cos etc. 0.499110103 0.99 83.9300
N6 floating point 0.999999821 3.32 162.3700
N7 assignments 3.000000000 2.51 73.5600
N8 exp,sqrt etc. 0.751108646 0.30 125.3100
MWIPS 18.33 545.6300
Java Vendor Sun Microsystems Inc., Version 1.6.0_27
Test Result MFLOPS MOPS millisecs
N1 floating point -1.124750137 9.41 2.0400
N2 floating point -1.131330609 10.01 13.4300
N3 if then else 1.000000000 8.14 12.7200
N4 fixed point 12.000000000 17.84 17.6600
N5 sin,cos etc. 0.499110103 0.69 121.4300
N6 floating point 0.999999821 8.91 60.5200
N7 assignments 3.000000000 5.35 34.5700
N8 exp,sqrt etc. 0.751108646 0.23 164.7500
MWIPS 23.41 427.1200
Java Vendor Oracle Corporation, Version 1.7.0_07
Test Result MFLOPS MOPS millisecs
N1 floating point -1.124750137 12.32 1.5580
N2 floating point -1.131330609 11.73 11.4600
N3 if then else 1.000000000 10.89 9.5080
N4 fixed point 12.000000000 23.60 13.3500
N5 sin,cos etc. 0.499110103 0.74 112.9900
N6 floating point 0.999999821 9.73 55.4400
N7 assignments 3.000000000 6.16 30.0100
N8 exp,sqrt etc. 0.751108646 0.24 154.2600
MWIPS 25.73 388.5760
Java Vendor Oracle Corporation, Version 1.8.0-ea
Test Result MFLOPS MOPS millisecs
N1 floating point -1.124750137 49.18 0.3904
N2 floating point -1.131330490 46.54 2.8880
N3 if then else 1.000000000 27.73 3.7320
N4 fixed point 12.000000000 92.48 3.4060
N5 sin,cos etc. 0.499110103 1.08 77.3100
N6 floating point 0.999999821 26.69 20.2100
N7 assignments 3.000000000 39.90 4.6320
N8 exp,sqrt etc. 0.751108646 0.31 119.9300
MWIPS 43.01 232.4984
Whetstone Single Precision C Benchmark Opt 3 32 Bit, Wed May 15 16:41:59 2013
Loop content Result MFLOPS MOPS Seconds
N1 floating point -1.12475013732910156 97.811 0.053
N2 floating point -1.12274742126464844 100.800 0.360
N3 if then else 1.00000000000000000 698.625 0.040
N4 fixed point 12.00000000000000000 425.250 0.200
N5 sin,cos etc. 0.49911010265350342 5.850 3.840
N6 floating point 0.99999982118606567 85.669 1.700
N7 assignments 3.00000000000000000 498.960 0.100
N8 exp,sqrt etc. 0.75110864639282227 2.722 3.690
MWIPS 270.460 9.983
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion