Saturday, September 20, 2014

Java Performance Testing

    This article describes attempts to determine whether it is beneficial to upgrade from Java 7 to 8 from a purely performance view.  I also figure out which machines and OS's are best at the task.  So far all my Apple Mac machines seem to do BigInteger benchmarks faster.

Machine and Java Version Baseline

    The following table sets a baseline based on machine type and java version (6/7/8) - for single threaded performance

Single Threaded
OSMachineJavabitsBenchmark time (sec)
Win8.1i7 5820K 4.1Ghz1.8.0_316442
OSX 10.9.4i7 4970 2.6Ghz1.8.0_206448
OSX 10.9.4i7 4970 2.6Ghz1.7.0_516451
Win7i7 4700MQ 2.4Ghz1.7.0_556453
Win7i7 4700MQ 2.4Ghz1.6.0_456455
Win7i7 4700MQ 2.4Ghz1.8.0_206456
Win7i7 3610QM 2.6Ghz1.8.0_206458
Win7i7 3610QM 2.6Ghz1.7.0_456463
OSX 10.10.0i5 4260U 1.6Ghz1.8.0_2564167
XPP4 3Ghz1.6.0_3132172

Multi Threaded