summaryrefslogtreecommitdiff
path: root/tests/internal_bench/var-8-namedtuple-1st.py
blob: 1a6daa6cddc0fb8a0cc1fdc1e20b55a3ffb7daf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import bench
from ucollections import namedtuple

T = namedtuple("Tup", ["num", "bar"])


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


bench.run(test)