2014-05-07 14:33:36 -04:00
|
|
|
import bench
|
|
|
|
|
|
|
|
|
2020-03-22 22:26:08 -04:00
|
|
|
class Foo:
|
2014-05-07 14:33:36 -04:00
|
|
|
def __init__(self):
|
|
|
|
self.num1 = 0
|
|
|
|
self.num2 = 0
|
|
|
|
self.num3 = 0
|
|
|
|
self.num4 = 0
|
|
|
|
self.num = 20000000
|
|
|
|
|
2020-03-22 22:26:08 -04:00
|
|
|
|
2014-05-07 14:33:36 -04:00
|
|
|
def test(num):
|
|
|
|
o = Foo()
|
|
|
|
i = 0
|
|
|
|
while i < o.num:
|
|
|
|
i += 1
|
|
|
|
|
2020-03-22 22:26:08 -04:00
|
|
|
|
2014-05-07 14:33:36 -04:00
|
|
|
bench.run(test)
|