[nylug-talk] Why does "enterprise" imply "Java"?

Michael Bacarella
Fri Jul 7 15:37:17 EDT 2006


On Fri, Jul 07, 2006 at 03:20:37PM -0400, Felix Shnir wrote:
> Eric, the myth of Java's slowness has been floating around since
> release 1.0and it highly exagurated...  Lets just say the things
> changed in the Java
> 1.4 - 1.5 world...  Consider revising your strategy or at least attempting
> some pilots.

So what am I doing wrong?


$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)


$ cat stillslow.java

class stillslow {

        public static void main(String[] args) {

                int i;

                for (i = 0; i < 1000000000; i++)
                        ;
        }
}

$ time java -classpath . stillslow

real    0m2.404s
user    0m0.031s
sys     0m0.031s

$ cat stillfast.c

int main(int argc,char *argv[])
{
        long i;
        for (i = 0; i < 1000000000; i++)
                ;
}

$ time ./stillfast

real    0m0.828s
user    0m0.796s
sys     0m0.031s


I ran them each trial a couple of times.  Those were the best.



More information about the nylug-talk mailing list