Author: Edd Barrett <vex...@gmail.com> Branch: min_5_secs Changeset: r300:b7f0946c13a6 Date: 2014-12-15 11:58 +0000 http://bitbucket.org/pypy/benchmarks/changeset/b7f0946c13a6/
Log: Fix a bug in the Richards benchmark. Spotted by Laurie, confirmed by me, fix from Armin. diff --git a/unladen_swallow/performance/richards.py b/unladen_swallow/performance/richards.py --- a/unladen_swallow/performance/richards.py +++ b/unladen_swallow/performance/richards.py @@ -363,8 +363,10 @@ def run(self, iterations): for i in xrange(iterations): - taskWorkArea.holdCount = 0 - taskWorkArea.qpktCount = 0 + global taskWorkArea + # Must reinitiliase the taskWorkArea or benchmark will run slower + # upon subsequent runs. + taskWorkArea = TaskWorkArea() IdleTask(I_IDLE, 1, 10000, TaskState().running(), IdleTaskRec()) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit