[Stackless] Google's new Go programming language
Andrew Dalke
dalke at dalkescientific.com
Fri Nov 13 12:28:34 CET 2009
On Nov 12, 2009, at 3:11 AM, Richard Tew wrote:
> Interesting. I hadn't gone to the effort of writing it yet. I
> expected the difference between a compiled language and a scripting
> language to be more significant.
Oh ye of little faith! CPython is a byte-compiled language, not pure
scripting language, and with many years spent optimizing it. I did a
simple benchmark of Python 2.6 against Python 0.9p1 and there was a
4.5x speedup in that time for the following:
import time
x = range(10000)
y = range(10000)
t1 = time.time()
for a in x:
for b in y:
pass
t2 = time.time()
print t2-t1
Andrew
dalke at dalkescientific.com
More information about the Stackless
mailing list