File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
http-easy-test/net/http-easy Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 55
55
(sort > #:key (λ (ht) (hash-ref ht 'timestamp )))
56
56
(keep 5 )
57
57
(reverse)))
58
+ (define n-benchmarks
59
+ (length benchmarks))
58
60
(parameterize ([plot-y-label "Time (ms) " ]
59
61
[plot-x-label "Measurements " ])
60
62
(plot-pict
61
63
#:title (~a name)
62
64
(for/list ([(bench idx) (in-indexed (in-list benchmarks))])
65
+ (define idx+1 (add1 idx))
63
66
(define timestamp
64
67
(hash-ref bench 'timestamp ))
65
68
(discrete-histogram
69
+ #:line-color idx+1
70
+ #:color idx+1
66
71
#:label (date->string (seconds->date timestamp) #t )
67
- #:line-color (add1 idx)
68
- #:color (add1 idx)
69
- #:x-min (add1 idx)
70
- #:skip (+ (length benchmarks) 0.5 )
72
+ #:x-min idx+1
73
+ #:skip (+ n-benchmarks 0.5 )
71
74
(list
72
75
(list "Real " (hash-ref bench 'real-time ))
73
76
(list "CPU " (hash-ref bench 'cpu-time ))
You can’t perform that action at this time.
0 commit comments