summaryrefslogtreecommitdiffstats
path: root/tests/langbench/loop.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/langbench/loop.tcl')
-rw-r--r--tests/langbench/loop.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/langbench/loop.tcl b/tests/langbench/loop.tcl
new file mode 100644
index 0000000..c1de6f7
--- /dev/null
+++ b/tests/langbench/loop.tcl
@@ -0,0 +1,4 @@
+proc doit {n} {
+ while {$n > 0} { incr n -1 }
+}
+doit 1000000