Skip to content

Commit 0179184

Browse files
authored
Conditionally show more metric details (#167)
- Collect and report subTimes like subScores - Only show times if the global .details CSS class is set (the default view is unaffected) - Also use .details for displaying displayCategoryScores - Change uiFriendlyDuration to only report 2 significant digits - Add Benchmark.prototype.wallTime accessor and report that as well - Format command line output and align times and scores better - Use pts as unit symbol for console printing
1 parent 7f24f3c commit 0179184

File tree

2 files changed

+196
-62
lines changed

2 files changed

+196
-62
lines changed

JetStream.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,13 @@ a.button {
348348
scroll-margin-bottom: 20vh;
349349
}
350350

351+
.benchmark .result.detail {
352+
display: none;
353+
}
354+
.details .benchmark .result.detail {
355+
display: inline-block;
356+
}
357+
351358
.benchmark h4,
352359
.benchmark .result,
353360
.benchmark label,

0 commit comments

Comments
 (0)