aboutsummaryrefslogtreecommitdiff
path: root/pkg/bench/subproc.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/subproc.cl
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/bench/subproc.cl')
-rw-r--r--pkg/bench/subproc.cl18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/bench/subproc.cl b/pkg/bench/subproc.cl
new file mode 100644
index 00000000..d1371484
--- /dev/null
+++ b/pkg/bench/subproc.cl
@@ -0,0 +1,18 @@
+# SUBPROC -- Benchmark the process control facilities.
+
+procedure subproc (nreps)
+
+int nreps { prompt = "number of repetitions" }
+int i
+
+begin
+ time; print ("======= begin ========")
+
+ for (i=nreps; i > 0; i-=1) {
+ prcache ("imheader")
+ flprcache ("imheader")
+ time()
+ }
+
+ print ("======= end ========"); time
+end