tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Hamilton" <david.hamil...@financity.co.uk>
Subject Re: Best JDK For Tomcat ?
Date Wed, 28 Nov 2001 20:27:10 GMT
There is also a danger that, when you are not using the results of variable
assignments or increments/decrements, the compiler or VM may choose to
optimise the code out completely!!

    david

----- Original Message -----
From: "Laurent Michenaud" <lmichenaud@adeuza.fr>
To: <tomcat-user@jakarta.apache.org>
Sent: Wednesday, November 28, 2001 5:54 PM
Subject: Best JDK For Tomcat ?


Hi,

I would like you to comment these results, tell me about your
experiences, and tell me about which jdk is best for a Tomcat...

I'm testing the different jdk with a litte Test.java

Here's the following execution time :

sun jdk1.2.2_rev9 => 16 seconds
sun jdk1.3.1_01 => 2 seconds
ibm jdk1.1.8 => more than 2 minutes, it didnot finish.
ibm jdk1.3 => 3 seconds



Here the Test.java i've done :
( u may think about revelent instructions to add in it, please
tell me about ):

public class Test
{

public static void main( String args[] )
{
   Integer i ;
   String t ;
   for( int cpt = 0 ; cpt < 500000 ; cpt++ )
   {
      cpt++ ;
      cpt-- ;
      t = new String("12345");
      i = new Integer("12345");
      i.toString();
   }
}
}






Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>










--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message