Re: Poor performance of Java

Posted by Thomas Boudier-4 on
URL: http://imagej.273.s1.nabble.com/Poor-performance-of-Java-tp5015218p5015224.html

Hi Gabriel,

For information on my computer with Debian stable, KDE 1.4, oracle java
1.8.0_66 :

665 ms and 6 ms, same results with Java 1.6.

Is these results linked to the WindowManager ?

Best,

Thomas



On 11/12/2015 20:46, Gabriel Landini 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).
>
> 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
>

--
  /***************************************************************/
       Thomas Boudier, Associate Professor, UPMC,
       Université Pierre et Marie Curie, Paris, France.
       BioInformatics Institute (BII)/IPAL, Singapore.
/**************************************************************/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html