by Demiurge · 13y ago · 0 comments
Update:
Well this is interesting ;D
time python test.py
real 0m11.169s
user 0m11.141s
sys 0m0.022s
time pypy test.py
real 0m0.259s
user 0m0.239s
sys 0m0.018s
cat test.py def python_sum(y): N = len(y) x = y[0] for i in xrange(1,N): x += y[i] return x
python_sum(xrange(100000000))