Poor performance of Java
Posted by
Gabriel Landini on
Dec 11, 2015; 12:46pm
URL: http://imagej.273.s1.nabble.com/Poor-performance-of-Java-tp5015218.html
Hi,
I noted that when dealing with several windows the performance of Java 1.8 is
appalling compared to 1.6, so I tested a few versions of Java under linux with
the following macro (just times the MRI Stack being converted to images).
run("MRI Stack (528K)");
t=getTime();
run("Stack to Images");
print (getTime()-t);
run("Images to Stack", "name=Stack title=[] use");
The difference is quite incredible, more than one order of magnitude (the
figures are the 'best' out of 3 runs):
// JavaVersion Time(ms) Batchmode(ms)
// 1.8 Oracle 7367 27
// 1.8 OpenJDK 7237 23
// 1.7 OpenJDK 7562 40
// 1.6 Oracle 554 32
Fortunately when the macro batch can be used, it avoids these delays, but when
running IJ interactively the poor performance is noticeable too.
I wonder why this performance glitch is there. Does this happen in Win and
Macs too?
Cheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html