Java 20xfaster then Python !!??

Mike Meyer mwm at mired.org
Fri Jan 10 10:28:49 EST 2003


Axel Kowald <kowald at molgen.mpg.de> writes:

> I just had a look at these very detailed benchmark tests,
> http://www.bagley.org/~doug/shootout/, and I was surprised to see that
> often java is 20 times faster than python !!
> 
> How can this be? Both languages interprete bytecode. Maybe because
> java has a JIT compiler ??

That could well be part of it. Dynamic vs. Static typing probably has
something to do with it as well. In particular, since Java doesn't
allow operator overloading (right?), anything using the standard
operators will be much faster because there's no method search
involved.

        <mike

-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.




More information about the Python-list mailing list