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