aboutsummaryrefslogtreecommitdiff
path: root/module/calp/entry-points/benchmark.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/calp/entry-points/benchmark.scm')
-rw-r--r--module/calp/entry-points/benchmark.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/module/calp/entry-points/benchmark.scm b/module/calp/entry-points/benchmark.scm
index 0814c44c..8eaf3731 100644
--- a/module/calp/entry-points/benchmark.scm
+++ b/module/calp/entry-points/benchmark.scm
@@ -27,7 +27,9 @@
(print-arg-help opt-spec)
(throw 'return))
- (let ((strm (get-event-set global-event-object)))
- (if (option-ref opts 'enable-output #f)
- (write (stream->list 1000 strm))
- (stream->list 1000 strm))))
+
+ (awhen (option-ref opts '() #f)
+ ((module-ref (resolve-module
+ `(calp benchmark ,@(map string->symbol it)))
+ 'run-benchmark)))
+)