From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- pkg/bench/plots.cl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pkg/bench/plots.cl (limited to 'pkg/bench/plots.cl') diff --git a/pkg/bench/plots.cl b/pkg/bench/plots.cl new file mode 100644 index 00000000..dc92ae4b --- /dev/null +++ b/pkg/bench/plots.cl @@ -0,0 +1,20 @@ +# PLOTS -- Measure the time required to make a number of row plots of an image. + +procedure plots (image, nlines) + +string image { prompt = "image to be plotted" } +int nlines { prompt = "number of line plots to be made" } + +string imname +int nleft + +begin + cache ("prow") + imname = image + time(); print ("======== start ========") + + for (nleft=nlines; nleft > 0; nleft-=1) + $prow (imname, 50, >G "dev$null") + + print ("======== end ========"); time() +end -- cgit