-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecl-reports4.lisp
216 lines (181 loc) · 10 KB
/
ecl-reports4.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
(ql:quickload :test-grid-storage)
(ql:quickload :test-grid-reporting)
(defpackage #:ecl-reports
(:use :cl)
(:import-from #:test-grid-reporting
#:list-results
#:subset
#:print-compiler-diff
#:print-pivot
#:lisp
#:libname
#:lib-world
#:test-run-time
#:results-cell-printer
#:print-load-failures))
(in-package #:ecl-reports)
;; Fetch results data. May take several minutes,
;; especially when you do it first time. Observe the progress log
;; in *standard-output*.
(defparameter *rm* (tg-storage:sync (tg-storage:get-replica "main")))
(defparameter *r* (tg-storage:sync (tg-storage:get-replica "ecl")))
(defparameter *all-results* (list-results (tg-data:join-dbs (tg-storage:data *r*)
(tg-storage:data *rm*))))
;; Generate some reports. The resulting HTML file will be placed into
;; <test-grid-repo>/reports-generated/
(print-compiler-diff "ecl/ecl-diff-2-bytecode.html"
*all-results*
"quicklisp 2013-10-03"
"ecl-13.5.1-unknown-linux-i686-bytecode"
"ecl-13.5.1-c8a4d98d-linux-i686-bytecode")
(print-compiler-diff "ecl/ecl-diff-2-lisp-to-c.html"
*all-results*
"quicklisp 2013-10-03"
"ecl-13.5.1-unknown-linux-i686-lisp-to-c"
"ecl-13.5.1-c8a4d98d-linux-i686-lisp-to-c")
(print-compiler-diff "ecl/ecl-diff-3-bytecode.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-13.5.1-unknown-linux-i686-bytecode"
"ecl-15.2.21-ee989b97-linux-i686-bytecode")
(print-compiler-diff "ecl/ecl-diff-3-lisp-to-c.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-13.5.1-unknown-linux-i686-lisp-to-c"
"ecl-15.2.21-ee989b97-linux-i686-lisp-to-c")
(print-compiler-diff "ecl/ecl-diff-4-bytecode.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-15.2.21-ee989b97-linux-i686-bytecode"
"ecl-15.3.7-9db31fd7-linux-i686-bytecode")
(print-compiler-diff "ecl/ecl-diff-4-lisp-to-c.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-15.2.21-ee989b97-linux-i686-lisp-to-c"
"ecl-15.3.7-9db31fd7-linux-i686-lisp-to-c")
(print-compiler-diff "ecl/ecl-diff-5-bytecode.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-13.5.1-unknown-linux-i686-bytecode"
"ecl-15.3.7-9db31fd7-linux-i686-bytecode")
(print-compiler-diff "ecl/ecl-diff-5-lisp-to-c.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-13.5.1-unknown-linux-i686-lisp-to-c"
"ecl-15.3.7-9db31fd7-linux-i686-lisp-to-c")
(print-compiler-diff "ecl/ecl-diff-6-bytecode.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-15.2.21-ee989b97-linux-i686-bytecode"
"ecl-15.3.7-rc1-5d9e58f6-linux-i686-bytecode")
(print-compiler-diff "ecl/ecl-diff-6-lisp-to-c.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-15.2.21-ee989b97-linux-i686-lisp-to-c"
"ecl-15.3.7-rc1-5d9e58f6-linux-i686-lisp-to-c")
(print-compiler-diff "ecl/ecl-diff-7-bytecode.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-13.5.1-unknown-linux-i686-bytecode"
"ecl-15.3.7-rc1-5d9e58f6-linux-i686-bytecode")
(print-compiler-diff "ecl/ecl-diff-7-lisp-to-c.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-13.5.1-unknown-linux-i686-lisp-to-c"
"ecl-15.3.7-rc1-5d9e58f6-linux-i686-lisp-to-c")
(print-compiler-diff "ecl/ecl-diff-8-bytecode.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-15.3.7-9db31fd7-linux-i686-bytecode"
"ecl-15.3.7-rc1-5d9e58f6-linux-i686-bytecode")
(print-compiler-diff "ecl/ecl-diff-8-lisp-to-c.html"
*all-results*
"quicklisp 2015-01-13"
"ecl-15.3.7-9db31fd7-linux-i686-lisp-to-c"
"ecl-15.3.7-rc1-5d9e58f6-linux-i686-lisp-to-c")
(print-compiler-diff "ecl/ecl-diff-9-bytecode.html"
*all-results*
"quicklisp 2015-03-02"
"ecl-15.3.7-rc1-5d9e58f6-linux-i686-bytecode"
"ecl-15.3.7-a014bd2c-linux-i686-bytecode")
(print-compiler-diff "ecl/ecl-diff-10-lisp-to-c.html"
(subset *all-results* (lambda (r) (not (= 3640867897 (test-run-time r)))))
"quicklisp 2015-05-05"
"ecl-15.3.7-827d3035-linux-x64-lisp-to-c"
"ecl-15.3.7-a014bd2c-linux-x64-lisp-to-c")
(tg-rep::print-pivot "ecl/ecl-results-10-lisp-to-c.html"
(subset *all-results* (lambda (r)
(and (not (= 3640867897 (test-run-time r)))
(string= (lib-world r) "quicklisp 2015-05-05")
(member (lisp r)
'("ecl-15.3.7-827d3035-linux-x64-lisp-to-c"
"ecl-15.3.7-a014bd2c-linux-x64-lisp-to-c")
:test #'string=)
(member (libname r)
'(:asdf-contrib :asdf-encodings :buffalo
:cl-store :clack-errors :cxml-stp
:lambda-reader :weblocks)))))
:rows '((libname string<))
:cols `((lib-world string<)
(lisp ,(tg-utils::ordering-comparator (list "ecl-15.3.7-827d3035-linux-x64-lisp-to-c"
"ecl-15.3.7-a014bd2c-linux-x64-lisp-to-c")
#'string=)))
:cell-printer #'results-cell-printer)
(format t "~{~S~%~}"
(sort (tg-rep::distinct *all-results* '(lib-world lisp test-run-time))
(tg-utils::obj-comparator #'first #'string< #'second #'string< #'third #'<)))
;; inspect with slime:
(getf (tg-storage:data *r*) :runs)
(print-compiler-diff "ecl/ecl-diff-11-bytecode.html"
*all-results*
"quicklisp 2015-08-04"
"ecl-15.2.21-ee989b97-linux-i686-lisp-to-c"
"ecl-16.0.0-98fc12d3-linux-i686-lisp-to-c")
(print-compiler-diff "ecl/ecl-diff-11-lisp-to-c.html"
*all-results*
"quicklisp 2015-08-04"
"ecl-15.2.21-ee989b97-linux-i686-lisp-to-c"
"ecl-16.0.0-98fc12d3-linux-i686-lisp-to-c")
(print-load-failures "ecl/ecl-16.0.0-98fc12d3-load-failures-lisp-to-c.html"
*all-results*
"ecl-16.0.0-98fc12d3-linux-i686-lisp-to-c"
"quicklisp 2015-08-04")
(print-load-failures "ecl/ecl-16.0.0-98fc12d3-load-failures-bytecode.html"
*all-results*
"ecl-16.0.0-98fc12d3-linux-i686-bytecode"
"quicklisp 2015-08-04")
(print-compiler-diff "ecl/ecl-diff-16.1.2-lin-x64-bytecode.html"
*all-results*
"quicklisp 2015-12-18"
"ecl-16.1.2-093ba0ab-linux-x64-bytecode"
"ecl-16.0.0-b2661fd1-linux-x64-bytecode")
(print-compiler-diff "ecl/ecl-diff-16.1.2-lin-x64-lisp-to-c.html"
*all-results*
"quicklisp 2015-12-18"
"ecl-16.1.2-093ba0ab-linux-x64-bytecode" ;; typo!! it should be -lisp-to-c, fixed below
"ecl-16.0.0-b2661fd1-linux-x64-bytecode")
(print-compiler-diff "ecl/ecl-diff-16.1.2-lin-x64-lisp-to-c-fixed.html"
*all-results*
"quicklisp 2015-12-18"
"ecl-16.1.2-093ba0ab-linux-x64-lisp-to-c"
"ecl-16.0.0-b2661fd1-linux-x64-lisp-to-c")
(print-compiler-diff "ecl/ecl-diff-16.1.2-rc2-lin-x64-bytecode.html"
*all-results*
"quicklisp 2016-02-08"
"ecl-16.1.2-rc2-093ba0ab-linux-x64-bytecode"
"ecl-16.0.0-b2661fd1-linux-x64-bytecode")
(print-compiler-diff "ecl/ecl-diff-16.1.2-rc2-lin-x64-lisp-to-c.html"
*all-results*
"quicklisp 2016-02-08"
"ecl-16.1.2-rc2-093ba0ab-linux-x64-lisp-to-c"
"ecl-16.0.0-b2661fd1-linux-x64-lisp-to-c")
(print-compiler-diff "ecl/ecl-diff-16.1.2-rc3-lin-x64-lisp-to-c.html"
(subset *all-results* (lambda (r) (not (= (test-run-time r) 3664443361))))
"quicklisp 2016-02-08"
"ecl-16.0.0-b2661fd1-linux-x64-lisp-to-c"
"ecl-16.1.2-rc3-9e5a61f4-linux-x64-lisp-to-c")
(print-compiler-diff "ecl/ecl-diff-16.1.2-rc3-lin-x64-bytecode.html"
*all-results*
"quicklisp 2016-02-08"
"ecl-16.0.0-b2661fd1-linux-x64-bytecode"
"ecl-16.1.2-rc3-9e5a61f4-linux-x64-bytecode")