aboutsummaryrefslogtreecommitdiff
path: root/pkg/bench/fortask.cl
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/bench/fortask.cl
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/bench/fortask.cl')
-rw-r--r--pkg/bench/fortask.cl15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/bench/fortask.cl b/pkg/bench/fortask.cl
new file mode 100644
index 00000000..586386e5
--- /dev/null
+++ b/pkg/bench/fortask.cl
@@ -0,0 +1,15 @@
+# FORTASK -- Execute a foreign task repeatedly.
+
+procedure fortask (nreps)
+
+int nreps { prompt = "number of repetitions" }
+int i
+
+begin
+ time; print ("======= begin ========")
+
+ for (i=nreps; i > 0; i-=1)
+ !rmbin
+
+ print ("======= end ========"); time
+end