summaryrefslogtreecommitdiffstatshomepage
path: root/tests/internal_bench/var-8-namedtuple-1st.py
blob: e3a2fa19cd32e06dc0914c6a2419a431c81bc980 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import bench
from collections 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)