Java vs Python Benchmarks: Java is faster

brueckd at tbye.com brueckd at tbye.com
Fri Feb 1 13:01:18 EST 2002


On Fri, 1 Feb 2002, Anders Dahlberg wrote:

> could re-run them without it. Maybe the low number of replies > is
> because it's not suprising that a semi-compiled-to-native program is >
> faster?
>
> well, but why would you want to compare interpreted java with python?

Well for one, it'd be nice to be a little closer to comparing apples to
apples (how fast a VM can interpret and execute the bytecodes). Secondly,
I was very suprised that, with a JIT, Java was only meagerly faster than
Python.  I was expecting an order of magnitude faster for most stuff, so I
was curious to know how slow Java was without the JIT. Finally, even
though Java and Python are wildly different in many ways, knowing the
interpreted vs. JIT'ed speeds might give a little insight into the
potential benefits of a Python JIT.

If I was really really interested in the Python-Java debate I'd go do the
tests myself, but since I'm just sorta curious I was asking Bryan in the
hopes that he still had the tests setup and it'd be easy to re-run them.

> code during run-time? If you were to compare interpreted java with python
> should you then compare interpreted c++ with java (same ballpark)?

Sure, why not?

-Dave





More information about the Python-list mailing list