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