2014-05-07 18:14:48 +03:00
|
|
|
import bench
|
2022-08-18 16:57:45 +10:00
|
|
|
from collections import namedtuple
|
2014-05-07 18:14:48 +03:00
|
|
|
|
2014-12-20 16:37:40 +01:00
|
|
|
T = namedtuple("Tup", ["num", "bar"])
|
2014-05-07 18:14:48 +03:00
|
|
|
|
2020-03-22 21:26:08 -05:00
|
|
|
|
2014-05-07 18:14:48 +03:00
|
|
|
def test(num):
|
|
|
|
t = T(20000000, 0)
|
|
|
|
i = 0
|
|
|
|
while i < t.num:
|
|
|
|
i += 1
|
|
|
|
|
2020-03-22 21:26:08 -05:00
|
|
|
|
2014-05-07 18:14:48 +03:00
|
|
|
bench.run(test)
|