diff -r cacb26257190 perf.py --- a/perf.py Tue Sep 07 19:20:06 2010 +0200 +++ b/perf.py Fri Nov 12 10:16:25 2010 -0800 @@ -1528,7 +1528,7 @@ # Without this, Python may start and exit before the memory sampler # thread has time to work. We can't just do 'time.sleep(x)', because # under -S, 'import time' fails. - work = "for _ in xrange(200000): pass" + work = "i = 0\nwhile i < 200000: i += 1" command = python + cmd_opts + ["-c", work] mem_usage = [] info("Running `%s` %d times", command, num_loops * 20)