aboutsummaryrefslogtreecommitdiff
path: root/module/calp/benchmark
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/benchmark
parentMove more places to use path-append. (diff)
downloadcalp-921ae00b825640d00b576c1098bd92bb2e166de5.tar.gz
calp-921ae00b825640d00b576c1098bd92bb2e166de5.tar.xz
Some benchmarking impmrovements.
Diffstat (limited to 'module/calp/benchmark')
-rw-r--r--module/calp/benchmark/parse.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/calp/benchmark/parse.scm b/module/calp/benchmark/parse.scm
index 68a6d5ff..e9bc509f 100644
--- a/module/calp/benchmark/parse.scm
+++ b/module/calp/benchmark/parse.scm
@@ -12,6 +12,7 @@
(define all-calendar-files
(statprof
(lambda ()
+ (display "All calendar files\n")
(concatenate
(map (lambda (path)
(map
@@ -23,6 +24,7 @@
(define all-read
(statprof
(lambda ()
+ (display "All read\n")
(map (lambda ( fullname)
(let ((cal (call-with-input-file fullname
(@@ (vcomponent ical parse) read-file))))
@@ -32,6 +34,7 @@
(define tokenized
(statprof
(lambda ()
+ (display "Tokenized\n")
(map (lambda (one-read)
(map (@@ (vcomponent ical parse) tokenize)
one-read))
@@ -40,6 +43,7 @@
(define parsed
(statprof
(lambda ()
+ (display "Parsed\n")
(map (@@ (vcomponent ical parse) parse) tokenized))))
(format #t "~a files processed~%"