1
1
<!doctype html>
2
2
< html >
3
+
3
4
< head >
4
5
< meta charset ="utf-8 ">
5
6
< link rel ="stylesheet " href ="uPlot.min.css ">
42
43
white-space : pre;
43
44
font-family : monospace;
44
45
}
46
+
45
47
body {
46
48
padding : 1em ;
47
49
margin : 0 ;
51
53
< script src ="shared.js "> </ script >
52
54
< title > rustc performance data</ title >
53
55
</ head >
56
+
54
57
< body >
55
58
< div > > < a href ="index.html "> graphs</ a > , < a href ="compare.html "> compare</ a > ,
56
59
< a href ="dashboard.html "> dashboard</ a > , < a href ="bootstrap.html "> bootstrap</ a > ,
57
- < a href ="status.html "> status</ a > , < a href ="help.html "> help</ a > .</ div >
60
+ < a href ="status.html "> status</ a > , < a href ="help.html "> help</ a > .
61
+ </ div >
58
62
< div id ="settings ">
59
63
start: < input placeholder ="yyyy-mm-dd or commit " id ="start-bound " />
60
64
end: < input placeholder ="yyyy-mm-dd or commit " id ="end-bound " />
66
70
See < a href ="/compare.html "> compare page</ a > for descriptions of what
67
71
the names mean.
68
72
</ div >
69
- < div id ="loading "> < h2 > Loading & rendering data..</ h2 > < h3 > This may take a while!</ h3 > </ div >
73
+ < div id ="loading ">
74
+ < h2 > Loading & rendering data..</ h2 >
75
+ < h3 > This may take a while!</ h3 >
76
+ </ div >
70
77
< div id ="charts "> </ div >
71
78
< div id ="as-of "> </ div >
72
79
< a href ="https://github.com/rust-lang-nursery/rustc-perf ">
73
- < img style ="position: absolute; top: 0; right: 0; border: 0; " src ="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67 " alt ="Fork me on GitHub " data-canonical-src ="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png ">
80
+ < img style ="position: absolute; top: 0; right: 0; border: 0; "
81
+ src ="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67 "
82
+ alt ="Fork me on GitHub "
83
+ data-canonical-src ="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png ">
74
84
</ a >
75
85
76
86
< script >
84
94
const otherCacheStateColors = [ "#8085e9" , "#f15c80" , "#e4d354" , "#2b908f" , "#f45b5b" , "#91e8e1" ] ;
85
95
const interpolatedColor = "#fcb0f1" ;
86
96
87
- function tooltipPlugin ( { onclick, commits, isInterpolated, absoluteMode, shiftX = 10 , shiftY = 10 } ) {
97
+ function tooltipPlugin ( { onclick, commits, isInterpolated, absoluteMode, shiftX = 10 , shiftY = 10 } ) {
88
98
let tooltipLeftOffset = 0 ;
89
99
let tooltipTopOffset = 0 ;
90
100
120
130
showTooltip ( ) ;
121
131
122
132
let top = u . valToPos ( u . data [ seriesIdx ] [ dataIdx ] , 'y' ) ;
123
- let lft = u . valToPos ( u . data [ 0 ] [ dataIdx ] , 'x' ) ;
133
+ let lft = u . valToPos ( u . data [ 0 ] [ dataIdx ] , 'x' ) ;
124
134
125
- tooltip . style . top = ( tooltipTopOffset + top + shiftX ) + "px" ;
135
+ tooltip . style . top = ( tooltipTopOffset + top + shiftX ) + "px" ;
126
136
tooltip . style . left = ( tooltipLeftOffset + lft + shiftY ) + "px" ;
127
137
128
138
tooltip . style . borderColor = isInterpolated ( dataIdx ) ?
139
149
}
140
150
tooltip . textContent = (
141
151
fmtDate ( new Date ( u . data [ 0 ] [ dataIdx ] * 1e3 ) ) + " - " +
142
- commits [ dataIdx ] [ 1 ] . slice ( 0 , 10 ) + "\n" + trailer
152
+ commits [ dataIdx ] [ 1 ] . slice ( 0 , 10 ) + "\n" + trailer
143
153
) ;
144
154
}
145
155
199
209
} ;
200
210
}
201
211
202
- function genPlotOpts ( { title, width, height, yAxisLabel, series, commits,
203
- stat, isInterpolated, alpha = 0.3 , prox = 5 , absoluteMode} ) {
212
+ function genPlotOpts ( { title, width, height, yAxisLabel, series, commits,
213
+ stat, isInterpolated, alpha = 0.3 , prox = 5 , absoluteMode } ) {
204
214
return {
205
215
title,
206
216
width,
238
248
values : ( self , splits ) => {
239
249
return splits . map ( v => {
240
250
return (
241
- v >= 1e12 ? v / 1e12 + "T" :
242
- v >= 1e9 ? v / 1e9 + "G" :
243
- v >= 1e6 ? v / 1e6 + "M" :
244
- v >= 1e3 ? v / 1e3 + "k" :
245
- v
251
+ v >= 1e12 ? v / 1e12 + "T" :
252
+ v >= 1e9 ? v / 1e9 + "G" :
253
+ v >= 1e6 ? v / 1e6 + "M" :
254
+ v >= 1e3 ? v / 1e3 + "k" :
255
+ v
246
256
) ;
247
257
} ) ;
248
258
} ,
261
271
ctx . strokeStyle = interpolatedColorWithAlpha ;
262
272
ctx . beginPath ( ) ;
263
273
264
- let [ i0 , i1 ] = u . series [ 0 ] . idxs ;
274
+ let [ i0 , i1 ] = u . series [ 0 ] . idxs ;
265
275
266
276
for ( let j = i0 ; j <= i1 ; j ++ ) {
267
277
let v = u . data [ 0 ] [ j ] ;
282
292
tooltipPlugin ( {
283
293
onclick ( u , seriesIdx , dataIdx ) {
284
294
let thisCommit = commits [ dataIdx ] [ 1 ] ;
285
- let prevCommit = ( commits [ dataIdx - 1 ] || [ null , null ] ) [ 1 ] ;
295
+ let prevCommit = ( commits [ dataIdx - 1 ] || [ null , null ] ) [ 1 ] ;
286
296
window . open ( `/compare.html?start=${ prevCommit } &end=${ thisCommit } &stat=${ stat } ` ) ;
287
297
} ,
288
298
commits,
393
403
benchmarks [ name ] = {
394
404
check : optInterpolated ( Check ) ,
395
405
debug : optInterpolated ( Debug ) ,
396
- opt : optInterpolated ( Opt ) ,
406
+ opt : optInterpolated ( Opt ) ,
397
407
}
398
408
} ) ;
399
409
415
425
window . location . search = params . toString ( ) ;
416
426
}
417
427
418
- load_state ( state => {
428
+ loadState ( state => {
419
429
let values = Object . assign ( { } , {
420
430
start : "" ,
421
431
end : "" ,
427
437
} ) ;
428
438
</ script >
429
439
</ body >
430
- </ html >
440
+
441
+ </ html >
0 commit comments