summaryrefslogtreecommitdiff
path: root/tests/bench/loop_count-4-while_down_gt.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bench/loop_count-4-while_down_gt.py')
-rw-r--r--tests/bench/loop_count-4-while_down_gt.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/bench/loop_count-4-while_down_gt.py b/tests/bench/loop_count-4-while_down_gt.py
new file mode 100644
index 000000000..de8dee2ca
--- /dev/null
+++ b/tests/bench/loop_count-4-while_down_gt.py
@@ -0,0 +1,7 @@
+import bench
+
+def test(num):
+ while num > 0:
+ num -= 1
+
+bench.run(test)