Here's a comparison of both the Java and the C versions of pi_css5, run on the same hardware.
All the binaries used are on the pi_css5 program page, unless noted otherwise. Performance is measured as time taken to calculate 1048576 (2^20) digits of pi, in seconds, of the Java version. Relative performance is ratio of native-to-Java performance. JVM version/options recorded under notes.
Machine/OS/Processor/L2 Cache | Performance (in seconds) |
Relative performance | JVM version/options |
HP Proliant DL145/SuSE SLES8/3200MHZ Xeon/.5MB | 18.15 | 0.458 | Sun 1.4.2_03 (default) |
Compaq ES47/Tru64 5.1d/1000MHZ Alpha 21364/? | 28.76 | 0.576 | Compaq 1.3.1 (default) |
HP RP3410/HP-UX 11.11/800MHZ PA8800/? | 36.58 | 0.277 | HP 1.4.2_03 -client |
HP Integrity RX1600/SuSE SLES8/1000MHZ ItaniumII/? | 55.04 | 0.207 | BEA Weblogic JRocket 1.4.2_04 (default) |
Sun Blade 2000/Solaris 8/900MHZ UltraSPARC III/8MB | 69.32 | 0.394 | Sun 1.4.2_04 (default) |
Dell Precision/Redhat 9/1000MHZ Pentium III/.5MB | 62.11 | 0.526 | Sun 1.4.2_04 (default) |
Apple PowerBook G4/MacOS 10.3.4/667MHZ PPC 7450/.25MB | 93.34 | 0.476 | Apple 1.4.2_03 (default) |