summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bench/var-8.1-namedtuple-5th.py
blob: b6bdc8d7956cb086c6445d745008c3a8d4900824 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import bench
from _collections import namedtuple

T = namedtuple("Tup", ["foo1", "foo2", "foo3", "foo4", "num"])

def test(num):
    t = T(0, 0, 0, 0, 20000000)
    i = 0
    while i < t.num:
        i += 1

bench.run(test)