summaryrefslogtreecommitdiff
path: root/bench/runner.myr
diff options
context:
space:
mode:
Diffstat (limited to 'bench/runner.myr')
-rw-r--r--bench/runner.myr23
1 files changed, 23 insertions, 0 deletions
diff --git a/bench/runner.myr b/bench/runner.myr
new file mode 100644
index 0000000..8ddc1de
--- /dev/null
+++ b/bench/runner.myr
@@ -0,0 +1,23 @@
+use std
+
+const Nsamp = 10
+
+const main = {args : byte[:][:]
+ for a in args
+ time(a)
+ ;;
+}
+
+const time = {a
+ var rusage
+ var t
+
+ for i = 0; i < Nsamp; i++
+ if !run(a, &rusage)
+ break
+ ;;
+ ;;
+}
+
+
+