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 da...@dalkescientific.com _______________________________________________ Stackless mailing list Stackless@stackless.com http://www.stackless.com/mailman/listinfo/stackless