Python is slow

Isaac Gouy igouy2 at yahoo.com
Sat Dec 13 10:18:28 EST 2008


On Dec 12, 11:41 am, Bruno Desthuilliers
<bdesth.quelquech... at free.quelquepart.fr> wrote:
> sturlamolden a écrit :
> (snip)
>
> > Creating a fast implementation of a dynamic language is almost rocket
> > science. But it has been done. There is Stronghold, the fastest
> > version of Smalltalk known to man, on which the Sun Java VM is based.
> > On a recent benchmark Java 6 -server beats C compiled by GCC 4.2.3
>
> cf bearophile's comment on this point (CPU architecture and RAM)
>
> > And
> > most of that magic comes from an implementation of a dynamically typed
> > language (Smalltalk).
>
> Err... Where is _Java_ "dynamic" actually ? A benchmark of _Smalltalk_
> VM vs CPython VM would make more sense.


http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=vw&lang2=python


>
> > Second, there are other fast implementations of dynamic languages. The
> > CMUCL and SBCL versions of Common Lisp comes to min; you can see how
> > SBCL does in the same benchmark (CMUCL tends to be even faster).
>
> Could it be that there are some type hints in the lisp versions of the
> source code ?
>
> > So Python is a lot slower than it needs to be.
>
> Please fix it, you're welcome.




More information about the Python-list mailing list