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