Source

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

The branch 'numpy-exp' does not exist.

import numpy

def f():
    a = numpy.zeros(10000000)
    a = a + a + a + a + a
    # To ensure that the computation isn't totally optimized away.
    a[0] = 3.0

f()