2014-05-07 16:14:48 +01:00
|
|
|
import bench
|
2016-05-02 12:15:11 +01:00
|
|
|
from ucollections import namedtuple
|
2014-05-07 16:14:48 +01:00
|
|
|
|
2014-12-20 15:37:40 +00:00
|
|
|
T = namedtuple("Tup", ["num", "bar"])
|
2014-05-07 16:14:48 +01:00
|
|
|
|
|
|
|
def test(num):
|
|
|
|
t = T(20000000, 0)
|
|
|
|
i = 0
|
|
|
|
while i < t.num:
|
|
|
|
i += 1
|
|
|
|
|
|
|
|
bench.run(test)
|