1 parent c3602e1 commit 52b2529Copy full SHA for 52b2529
1 file changed
tests/bench/var-8-namedtuple-1st.py
@@ -0,0 +1,12 @@
1
+import bench
2
+from _collections import namedtuple
3
+
4
+T = namedtuple("Tup", "num bar")
5
6
+def test(num):
7
+ t = T(20000000, 0)
8
+ i = 0
9
+ while i < t.num:
10
+ i += 1
11
12
+bench.run(test)
0 commit comments