Re: Java (bytecode) execution speed



Lee wrote:
All other things being equal, we expect an interpreted language to run a bit slower than native machine code.

Since a Java is not interpreted but JIT compiled, then that point
is not so relevant.

I understand that in the beginning, the earliest version of the JVM was
perceived to be demonstrably slower than a coresponding C program; but that more recent versions have impreved coniderably.

Whats the current state of the art? Would we expect a java program to run at 0.5 * the speed of C, or 0.7 or 0.9 or what?

My expectations would be within the range 0.75-1.25 !

The variations between different C compilers with difference
settings and different JVM's with different switches and
the differences for different tasks is so big that the
language difference is insignificant.

Arne
.