PYTHON IS CRAP

Courageous jkraska1 at san.rr.com
Tue Aug 15 21:40:24 EDT 2000


> I agree fully.  Honestly, part of the reason I've stayed away from Java
> is pure performance...
> off on a tangent:
>      Some people say that it performs well, but just doing a very
> simple (non-scientific) loop test, counting to something like 1
> million, C took about .25 seconds, python took about 1.15 seconds, and
> java took about 11 seconds, that was enough for me ;).

Hrm. My recollection is that C will outperform a Python
loop by 100:1. Conversely, I would expect Java to do far
better than Python. In all cases I would expect that you
would begin your timing immediately before and after the
loops, and not from a shell, otherwise you would be
counting the spin-up-time for the interpreters. While it
is noteworty to know that the virtual machines have spin-
up-time, this can be discounted in longer running applications.

You might also consider running your Java programs under
a JIT.

Python will not outperform Java. If some performance savvy
wizard wants to prove me wrong, I'll gracefully accept
tons of egg on my face, but otherwise I believe that you
have made some sort of measurement error.

Sorry. =(

C//



More information about the Python-list mailing list