Commits

Alex Gaynor committed 281b07d

Fix for forcing with this benchmark.

  • Participants
  • Parent commits 2cf217a
  • Branches numpy-exp

Comments (0)

Files changed (1)

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

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