Thursday, January 20, 2011

How Long Can Herpes Survive On Cup

Java performance and it is not impossible with gcj

Java is a good language. Very popular and full of documentation and libraries.
The Java VM is very slow. Very slow. Mooooooooolto slow.
so I came in contact with gcj or gcc for Java. This compiler produces an executable file, just like C / C + +.

At this point it is natural to make a small test performance. I state that the proposed test has no absolute value.

Compile this class.
  MiaClass 
public class {public
MiaClass () {



} public void print ()
{long startTime = System.currentTimeMillis
();

callOperationToTime ();
long endTime = System.currentTimeMillis
();

long totalTime = endTime - startTime;

System.out.println ("Time: "+ totalTime);}


private void callOperationToTime ()

{for (int i = 0; i \u0026lt;10000; i + +) {

System.out.println (" ");}


}}

richiamiamola and then by a simple "main".

  public 

class HelloWorld {public static void main (String [] args) {c = new
MiaClass MiaClass ();
c.print ();}


}


This code compiled with gcj performs operations 75ms in the Java VM and launched the rise to 291 milliseconds.

My car has a P8400 and Ubuntu 10.04. The first

0 comments:

Post a Comment