Re: Poor performance of Java
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Dec 11, 2015; 5:45pm
URL: http://imagej.273.s1.nabble.com/Poor-performance-of-Java-tp5015218p5015221.html
> On Dec 11, 2015, at 7:46 AM, Gabriel Landini <
[hidden email]> wrote:
>
> 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).
Hi Gabriel,
On my Mac laptop, your test macro takes twice as long to run on Java 1.8 compared to Java 1.6. On Windows, it runs the same speed with both Java 1.6 and Java 1.8, and it runs two times faster than my Mac running Java 1.6.
-wayne
> 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