Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:cosmetic fixes for cl-bench demo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | master | trunk
Files: files | file ages | folders
SHA3-256: c5124687f653e5a04601807ccb0bf869e91e9dd5b77348221fb0d8e009840f50
User & Date: jack 2026-06-23 15:39:58
Context
2026-06-23
15:39
cosmetic fixes for cl-bench demo Leaf check-in: c5124687f6 user: jack tags: master, trunk
2026-05-29
10:37
add fixme, rework slightly *bench* demo check-in: 7695068fee user: jack tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Demo/cl-bench-results.lisp.

︙︙
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

(defun read-data (output-dir)
  "Constructs a poor man's data frame."
  (flet ((process-result (form)
           (destructuring-bind (lisp . tests) form
             (loop for i from 0
                   for (test real user sys cons) in tests
                   for batch = (floor i 4)
                   when user            ; FIXME handle gracefully n/a
                     collect (list lisp test user batch)))))
    (cons (list "Lisp" "Test" "Time" "Batch")
          (loop with *read-eval* = nil
                for file in (directory (merge-pathnames "CL-benchmark*.*" output-dir))
                for form = (with-open-file (stream file :direction :input)
                             (read stream))







|







95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

(defun read-data (output-dir)
  "Constructs a poor man's data frame."
  (flet ((process-result (form)
           (destructuring-bind (lisp . tests) form
             (loop for i from 0
                   for (test real user sys cons) in tests
                   for batch = (floor i 2)
                   when user            ; FIXME handle gracefully n/a
                     collect (list lisp test user batch)))))
    (cons (list "Lisp" "Test" "Time" "Batch")
          (loop with *read-eval* = nil
                for file in (directory (merge-pathnames "CL-benchmark*.*" output-dir))
                for form = (with-open-file (stream file :direction :input)
                             (read stream))
︙︙
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149

150
151
152
153
154
155
156
157
158
159
  (let* ((dataset-raw (read-data *output-dir*))
         (dataset (normalize-results dataset-raw))
         (groups (group-by '("Batch") dataset))
         (plots nil))
    (i::dohash ((batch dataset) groups)
      (declare (ignore batch))
      (push (<polyclot> :title "Common Lisp Benchmark"
                        :width 800 :height 280
                        :dataset dataset
                        :aesthetics (list :x "Test" :y "Time" :ink "Lisp")
                                        ;:faceting (<faceting-wrap> :var '("Batch") :ncol 1)
                        :layers (list (<geom-bar>
                                       :bin-width (/ 1 5)
                                       :statistical-transformation i::+stat-identity+
                                       :position-adjustment (i::<position-dodge>)))
                        :scales (list (make-scale :discrete :x)
                                      (make-scale :continuous :y :min-pos 0 :max-pos 4)

                                      (make-scale :discrete :ink)))
            plots))
    (reverse plots)))

(defun draw-benches ()
  (let ((plots (benches)))
    (com-draw-plots plots)))

;; (find-application-frame 'a-repl :width 800 :height 600)








|




|



|
>










133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
  (let* ((dataset-raw (read-data *output-dir*))
         (dataset (normalize-results dataset-raw))
         (groups (group-by '("Batch") dataset))
         (plots nil))
    (i::dohash ((batch dataset) groups)
      (declare (ignore batch))
      (push (<polyclot> :title "Common Lisp Benchmark"
                        :width 900 :height 280
                        :dataset dataset
                        :aesthetics (list :x "Test" :y "Time" :ink "Lisp")
                                        ;:faceting (<faceting-wrap> :var '("Batch") :ncol 1)
                        :layers (list (<geom-bar>
                                       :bin-width (/ 1 2.4)
                                       :statistical-transformation i::+stat-identity+
                                       :position-adjustment (i::<position-dodge>)))
                        :scales (list (make-scale :discrete :x)
                                      (make-scale :continuous :y :min-pos 0; :max-pos 2
)
                                      (make-scale :discrete :ink)))
            plots))
    (reverse plots)))

(defun draw-benches ()
  (let ((plots (benches)))
    (com-draw-plots plots)))

;; (find-application-frame 'a-repl :width 800 :height 600)