Skip to content

Commit 6a9c126

Browse files
authored
Display workload scatterplots (#120)
Display mini scatterplots for each subtest to help visually assess noise levels. - Keep the raw results in Benchmark.processResults - Clean up CSS colors by using variables - Only display 2 decimal digits for all scores (this occasionally caused line wraps for the displayed subscores) - Use the same formatting for the total-subscores as for the subtest-subscores (visible only when clicking)
1 parent 635ffdd commit 6a9c126

File tree

2 files changed

+122
-52
lines changed

2 files changed

+122
-52
lines changed

JetStream.css

Lines changed: 68 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,25 @@
2323
* THE POSSIBILITY OF SUCH DAMAGE.
2424
*/
2525

26-
html {
26+
:root {
27+
--color-primary: #34AADC;
28+
--color-secondary: #86D9FF;
29+
--text-color-inverse: white;
30+
--text-color-primary: black;
31+
--text-color-secondary: #555555;
32+
--text-color-tertiary: #444444;
33+
--text-color-subtle: #6c6c71;
34+
--text-color-very-subtle: #8E8E93;
35+
--heading-color: #2C98D1;
36+
--link-hover-color: #0086BF;
37+
--button-color-primary: rgb(52,170,220);
38+
--error-text-color: #d24a59;
39+
--benchmark-heading-color: rgb(183, 183, 183);
40+
--benchmark-error-text-color: #ff8686;
41+
--benchmark-done-result-color: #4A4A4A;
42+
}
43+
44+
html, svg text {
2745
font-family: "Helvetica Neue", Helvetica, Verdana, sans-serif;
2846
font-size: 62.5%;
2947
font-synthesis: none;
@@ -42,8 +60,8 @@ body {
4260
}
4361

4462
::selection {
45-
background-color: #34AADC;
46-
color: white;
63+
background-color: var(--color-primary);
64+
color: var(--text-color-inverse);
4765
}
4866

4967
main {
@@ -126,13 +144,13 @@ article, .summary {
126144
}
127145

128146
h1 {
129-
color: black;
147+
color: var(--text-color-primary);
130148
text-align: center;
131149
}
132150

133151

134152
h2, h3, h4, h5, h6 {
135-
color: #2C98D1;
153+
color: var(--heading-color);
136154
text-align: left;
137155
}
138156

@@ -143,7 +161,7 @@ h4, h5, h6 {
143161

144162
p {
145163
text-align: left;
146-
color: #555555;
164+
color: var(--text-color-secondary);
147165
margin: 0 0 3rem 0;
148166
}
149167

@@ -152,7 +170,7 @@ h5, h6 {
152170
}
153171

154172
h6 {
155-
color: #444444;
173+
color: var(--text-color-tertiary);
156174
}
157175

158176
dt {
@@ -169,12 +187,12 @@ dd {
169187

170188
a:link,
171189
a:visited {
172-
color: #34AADC;
190+
color: var(--color-primary);
173191
}
174192

175193
a:hover,
176194
a:active {
177-
color: #0086BF;
195+
color: var(--link-hover-color);
178196
}
179197

180198
#status {
@@ -187,10 +205,10 @@ a.button {
187205
font-weight: 500;
188206
text-decoration: none;
189207
font-size: 2rem;
190-
background-color: rgb(52,170,220);
191-
background-image: linear-gradient(180deg, rgba(134,217,255,1) -80%, rgba(52,170,220,1) 100%);
192-
color: rgb(255,255,255);
193-
border: 1px solid rgb(52,170,220);
208+
background-color: var(--button-color-primary);
209+
background-image: linear-gradient(180deg, rgba(134,217,255,1) -80%, rgb(52,170,220) 100%);
210+
color: var(--text-color-inverse);
211+
border: 1px solid var(--button-color-primary);
194212
border-radius: 2px;
195213
padding: 0.3rem 9rem 0.5rem;
196214
-webkit-touch-callout: none;
@@ -238,7 +256,7 @@ a.button {
238256
}
239257

240258
.error h2, .error p {
241-
color: #d24a59;
259+
color: var(--error-text-color);
242260
margin-bottom: 0;
243261
text-align: center;
244262
font-weight: 500;
@@ -259,17 +277,22 @@ a.button {
259277
}
260278

261279
#result-summary label {
262-
color: #6c6c71;
280+
color: var(--text-color-subtle);
263281
}
264282

265283
#result-summary .score {
266284
font-weight: bold;
267285
font-size: 4rem;
268286
line-height: 1;
269-
color: #34AADC;
287+
color: var(--color-primary);
270288
font-weight: 500;
271289
}
272290

291+
.benchmark .plot svg {
292+
display: inline-block;
293+
vertical-align: middle;
294+
}
295+
273296
#result-summary .score .interval {
274297
display: block;
275298
font-weight: normal;
@@ -289,30 +312,30 @@ a.button {
289312
max-width: 20%;
290313
min-width: 200px;
291314
text-align: left;
292-
color: #8E8E93;
315+
color: var(--text-color-very-subtle);
293316
font-size: 1.6rem;
294317
margin: 0 1.6rem 3rem 0;
295318

296319
}
297320

298-
.benchmark h4, .benchmark .result, .benchmark label {
321+
.benchmark h4, .benchmark .result, .benchmark label, .benchmark .plot {
299322
color: transparent;
300323
background: linear-gradient(160deg, rgba(249,249,249,1) 0%, rgba(238,238,238,1) 100%);
301324
border-radius: 3px;
302325
}
303326

304327
.benchmark h3 {
305-
color: rgb(183, 183, 183);
328+
color: var(--benchmark-heading-color);
306329
}
307330

308-
.benchmark-running h4, .benchmark-running .result, .benchmark-running label {
309-
color: #86D9FF;
310-
background-color: #86D9FF;
331+
.benchmark-running h4, .benchmark-running .result, .benchmark-running label, .benchmark-running .plot {
332+
color: var(--color-secondary);
333+
background-color: var(--color-secondary);
311334
background-image: none;
312335
}
313336

314337

315-
.benchmark-done h3, .benchmark-done h4, .benchmark-done .result, .benchmark-done label {
338+
.benchmark-done h3, .benchmark-done h4, .benchmark-done .result, .benchmark-done label, .benchmark-done .plot {
316339
background-color: transparent;
317340
background-image: none;
318341
-webkit-touch-callout: revert;
@@ -322,14 +345,14 @@ a.button {
322345
user-select: text;
323346
}
324347

325-
.benchmark-error h4, .benchmark-error .result, .benchmark-error label {
326-
color: #ff8686;
327-
background-color: #ff8686;
348+
.benchmark-error h4, .benchmark-error .result, .benchmark-error label, .benchmark-error .plot {
349+
color: var(--benchmark-error-text-color);
350+
background-color: var(--benchmark-error-text-color);
328351
background-image: none;
329352
}
330353

331354
.benchmark-error h3 {
332-
color: #ff8686;
355+
color: var(--benchmark-error-text-color);
333356
}
334357

335358
.benchmark h3 {
@@ -341,11 +364,11 @@ a.button {
341364
.benchmark-running h3 {
342365
background-color: transparent;
343366
background-image: none;
344-
color: #34AADC;
367+
color: var(--color-primary);
345368
}
346369

347370
.benchmark-done h3 {
348-
color: #6c6c71;
371+
color: var(--text-color-subtle);
349372
}
350373

351374
.benchmark h3 a,
@@ -358,7 +381,7 @@ a.button {
358381
}
359382

360383
.benchmark-done h3 a:hover {
361-
color: #34AADC;
384+
color: var(--color-primary);
362385
text-decoration: underline;
363386
}
364387

@@ -370,7 +393,7 @@ a.button {
370393
}
371394

372395
.benchmark-done h4 {
373-
color: #34AADC;
396+
color: var(--color-primary);
374397
background-color: none;
375398
}
376399

@@ -387,19 +410,31 @@ a.button {
387410
font-weight: bold;
388411
}
389412

413+
#result-summary .benchmark {
414+
text-align: center;
415+
max-width: 100%;
416+
margin: 0;
417+
margin-left: 1.6rem;
418+
}
419+
390420
.benchmark-done .result {
391-
color: #4A4A4A;
421+
color: var(--benchmark-done-result-color);
392422
}
393423

394424
.benchmark label {
395425
display: block;
396426
}
397427

398428
.benchmark-done label {
399-
color: #8E8E93;
429+
color: var(--text-color-very-subtle);
400430
font-weight: 400;
401431
}
402432

433+
.plot svg circle {
434+
fill: var(--color-primary);
435+
opacity: 0.8;
436+
}
437+
403438
@keyframes fadein {
404439
from {
405440
opacity: 0;

0 commit comments

Comments
 (0)