1import bench 2 3 4class Foo: 5 def __init__(self): 6 self.num = 20000000 7 8 9def test(num): 10 o = Foo() 11 i = 0 12 while i < o.num: 13 i += 1 14 15 16bench.run(test) 17