aboutsummaryrefslogtreecommitdiff
path: root/module/calp/entry-points/benchmark.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-08-22 23:56:53 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-08-22 23:56:53 +0200
commit921ae00b825640d00b576c1098bd92bb2e166de5 (patch)
tree8fc3fe7deb6ebb73ce155b19018d75a8dce7751b /module/calp/entry-points/benchmark.scm
parentMove more places to use path-append. (diff)
downloadcalp-921ae00b825640d00b576c1098bd92bb2e166de5.tar.gz
calp-921ae00b825640d00b576c1098bd92bb2e166de5.tar.xz
Some benchmarking impmrovements.
Diffstat (limited to 'module/calp/entry-points/benchmark.scm')
-rw-r--r--module/calp/entry-points/benchmark.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/module/calp/entry-points/benchmark.scm b/module/calp/entry-points/benchmark.scm
index 8eaf3731..7706f6f0 100644
--- a/module/calp/entry-points/benchmark.scm
+++ b/module/calp/entry-points/benchmark.scm
@@ -28,8 +28,9 @@
(throw 'return))
- (awhen (option-ref opts '() #f)
- ((module-ref (resolve-module
- `(calp benchmark ,@(map string->symbol it)))
- 'run-benchmark)))
-)
+ (let ((opt (option-ref opts '() #f)))
+ (if (null? opt)
+ (print-arg-help opt-spec)
+ ((module-ref (resolve-module
+ `(calp benchmark ,@(map string->symbol opt)))
+ 'run-benchmark)))))