Skip to content

Commit

Permalink
benchmark: split column
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Jun 21, 2024
1 parent 4c74b55 commit 671e567
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions code/benchmark/report.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
when (getf algo type)
do (return-from wibble t)))))
'(short-float single-float double-float long-float))))
(format t "~a~%~%" name)
(write-line
(cl-spark:vspark
(loop with gap = nil
Expand Down Expand Up @@ -61,9 +62,8 @@
type))))))
(format t "~%Absolute and Relative Times~%")
(let ((table (ascii-table:make-table
(list* (format nil "~va | ~va"
implementation-width "Implementation"
algo-width "Client")
(list* "Implementation"
"Client"
(loop for type in types
collect (ecase type
(short-float " abs short")
Expand All @@ -86,10 +86,8 @@
do (loop for algo in v
do (ascii-table:add-row
table
(list* (format nil "~va | ~a"
(max 14 implementation-width)
implementation
(getf algo :label))
(list* implementation
(getf algo :label)
(loop for type in types
for val = (getf algo type)
when val
Expand Down

0 comments on commit 671e567

Please sign in to comment.