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