summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bench/from_iter-4-tuple_unbound.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bench/from_iter-4-tuple_unbound.py')
-rw-r--r--tests/bench/from_iter-4-tuple_unbound.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/bench/from_iter-4-tuple_unbound.py b/tests/bench/from_iter-4-tuple_unbound.py
new file mode 100644
index 0000000000..7c7f134c85
--- /dev/null
+++ b/tests/bench/from_iter-4-tuple_unbound.py
@@ -0,0 +1,8 @@
+import bench
+
+def test(num):
+ for i in iter(range(num//10000)):
+ l = [0] * 1000
+ l2 = tuple(map(lambda x: x, l))
+
+bench.run(test)