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