summaryrefslogtreecommitdiff
path: root/gc-benchmarks
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-09-08 23:32:23 +0200
committerLudovic Courtès <ludo@gnu.org>2009-09-08 23:32:23 +0200
commit0588379a2aeddc7346e9d57daa2e26f98ec7c4fd (patch)
treecdf8816f059f395bf031a6113890511dac3d9975 /gc-benchmarks
parentb529eb5797ca0f62e0c57fcfde8e43c5fb00b3c0 (diff)
downloadguile-0588379a2aeddc7346e9d57daa2e26f98ec7c4fd.tar.gz
Fix misleading comments in `gc-benchmarks/run-benchmark.scm'.
* gc-benchmarks/run-benchmark.scm (pretty-print-result): Fix comments.
Diffstat (limited to 'gc-benchmarks')
-rwxr-xr-xgc-benchmarks/run-benchmark.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/gc-benchmarks/run-benchmark.scm b/gc-benchmarks/run-benchmark.scm
index bbe454028..7a9e67b2f 100755
--- a/gc-benchmarks/run-benchmark.scm
+++ b/gc-benchmarks/run-benchmark.scm
@@ -108,15 +108,15 @@ exec ${GUILE-guile} -q -l "$0" \
(define ref-time (assoc-ref reference 'execution-time))
(define (distance x1 y1 x2 y2)
- ;; Return the distance between (X1,Y1) and (X2,Y2), using a scale such
- ;; that REFERENCE is at (1,1).
+ ;; Return the distance between (X1,Y1) and (X2,Y2). Y is the heap size,
+ ;; in MiB and X is the execution time in seconds.
(let ((y1 (/ y1 (expt 2 20)))
(y2 (/ y2 (expt 2 20))))
(sqrt (+ (expt (- y1 y2) 2)
(expt (- x1 x2) 2)))))
(define (score time heap)
- ;; Return a score between -1.0 and +1.0. The score is positive if the
+ ;; Return a score lower than +1.0. The score is positive if the
;; distance to the origin of (TIME,HEAP) is smaller than that of
;; (REF-TIME,REF-HEAP), negative otherwise.
@@ -124,12 +124,12 @@ exec ${GUILE-guile} -q -l "$0" \
;; size | . worse
;; | . [-]
;; | .
- ;; 1 | . . . .ref. . . .
+ ;; | . . . .ref. . . .
;; | .
;; | [+] .
;; | better .
;; 0 +-------------------->
- ;; 1 exec. time
+ ;; exec. time
(let ((ref-dist (distance ref-time ref-heap 0 0))
(dist (distance time heap 0 0)))