Source

pypy / pypy / module / micronumpy / bench / iterate.py

Full commit
1
2
3
4
5
6
7
8
9

def f():
    sum = 0
    a = numpy.zeros(1000000)
    for i in range(1000000):
        sum += a[i]
    return sum

f()