Source

pypy / pypy / module / micronumpy / bench / add.py


import numpy

def f():
    a = numpy.zeros(10000000)
    a = a + a + a + a + a
    if hasattr(a, 'force'):
        a.force()

f()