@@ -235,7 +235,8 @@ <h1>Comparing <span id="stat-header">instructions:u</span> between <span id="bef
235
235
< div class ="section-heading "> < span > Show only significant changes</ span >
236
236
< span class ="tooltip "> ?
237
237
< span class ="tooltiptext ">
238
- Whether to filter out all benchmarks that do not show significant changes.
238
+ Whether to filter out all benchmarks that do not show significant changes. A significant
239
+ change is any change above 0.2% for non-noisy benchmarks and 1.0% for noisy ones.
239
240
</ span >
240
241
</ span >
241
242
</ div >
@@ -281,15 +282,13 @@ <h1>Comparing <span id="stat-header">instructions:u</span> between <span id="bef
281
282
< template v-for ="bench in benches ">
282
283
< tr data-field-start ="true ">
283
284
< th >
284
- < details class =" toggle-table " v-on:toggle =" benchGroupToggle " >
285
+ < details >
285
286
< summary > {{ trimBenchName(bench.name) }}</ summary >
286
287
</ details >
287
288
</ th >
288
- < td > avg: < span v-bind:class ="percentClass(bench.avgPct) "> {{bench.avgPct}}</ span > </ td >
289
- < td > min: < span v-bind:class ="percentClass(bench.minPct) "> {{bench.minPct}}</ span > </ td >
290
- < td > max: < span
291
- v-bind:class ="percentClass(bench.maxPct) "> {{bench.maxPct}}%{{isDodgyBench(bench)
292
- ? "?" : ""}}</ span > </ td >
289
+ < td > min: < span v-bind:class ="percentClass(bench.minPct) "> {{bench.minPct}}%</ span > </ td >
290
+ < td > max: < span v-bind:class ="percentClass(bench.maxPct) "> {{bench.maxPct}}%</ span > </ td >
291
+ < td > </ td >
293
292
</ tr >
294
293
< template v-for ="run in bench.variants ">
295
294
< tr >
@@ -403,6 +402,10 @@ <h1>Comparing <span id="stat-header">instructions:u</span> between <span id="bef
403
402
const key = d [ 0 ] ;
404
403
const datumA = d [ 1 ] ;
405
404
const datumB = data . b . data [ name ] . find ( x => x [ 0 ] == key ) [ 1 ] ;
405
+ let percent = ( 100 * ( datumB - datumA ) / datumA ) . toFixed ( 1 ) ;
406
+ if ( percent === "-0.0" ) {
407
+ percent = "0.0" ;
408
+ }
406
409
407
410
let isDodgy = false ;
408
411
if ( data . variance ) {
@@ -414,7 +417,7 @@ <h1>Comparing <span id="stat-header">instructions:u</span> between <span id="bef
414
417
casename : key ,
415
418
datumA,
416
419
datumB,
417
- percent : ( 100 * ( datumB - datumA ) / datumA ) . toFixed ( 1 ) ,
420
+ percent,
418
421
isDodgy,
419
422
} ) ;
420
423
}
@@ -431,15 +434,12 @@ <h1>Comparing <span id="stat-header">instructions:u</span> between <span id="bef
431
434
const pcts = variants . map ( field => parseFloat ( field . percent ) ) ;
432
435
const maxPct = Math . max ( ...pcts ) . toFixed ( 1 ) ;
433
436
const minPct = Math . min ( ...pcts ) . toFixed ( 1 ) ;
434
- const sum = pcts . reduce ( ( a , b ) => a + b , 0 ) ;
435
- const avgPct = ( sum / pcts . length ) . toFixed ( 1 ) ;
436
437
const maxCasenameLen = Math . max ( ...variants . map ( f => f . casename . length ) ) ;
437
438
return {
438
439
name,
439
440
variants,
440
441
maxPct,
441
442
minPct,
442
- avgPct,
443
443
maxCasenameLen,
444
444
} ;
445
445
} ) .
@@ -499,10 +499,6 @@ <h1>Comparing <span id="stat-header">instructions:u</span> between <span id="bef
499
499
percentLink ( commit , baseCommit , bench , run ) {
500
500
return `/detailed-query.html?commit=${ commit } &base_commit=${ baseCommit } &benchmark=${ bench } &run_name=${ run } ` ;
501
501
} ,
502
- benchGroupToggle ( e ) {
503
- const element = e . target ;
504
- toggleBenchGroup ( element ) ;
505
- } ,
506
502
formatDate ( date ) {
507
503
date = new Date ( date ) ;
508
504
function padStr ( i ) {
@@ -519,21 +515,7 @@ <h1>Comparing <span id="stat-header">instructions:u</span> between <span id="bef
519
515
}
520
516
return result ;
521
517
} ,
522
- isDodgyBench ( bench ) {
523
- return bench . variants . some ( f => f . isDodgy ) ;
524
- } ,
525
518
} ,
526
- watch : {
527
- data ( newVal , oldVal ) {
528
- if ( newVal && ! oldVal ) {
529
- this . $nextTick ( ( ) => {
530
- for ( let element of document . querySelectorAll ( ".toggle-table" ) ) {
531
- toggleBenchGroup ( element ) ;
532
- }
533
- } ) ;
534
- }
535
- }
536
- }
537
519
} ) ;
538
520
539
521
function isSignificant ( variant ) {
@@ -546,19 +528,6 @@ <h1>Comparing <span id="stat-header">instructions:u</span> between <span id="bef
546
528
547
529
}
548
530
549
- function toggleBenchGroup ( element ) {
550
- let next = element . parentElement . parentElement . nextElementSibling ;
551
- let inBody = [ ]
552
- while ( next && next . getAttribute ( "data-field-start" ) !== "true" ) {
553
- if ( element . open ) {
554
- next . style . display = "" ;
555
- } else {
556
- next . style . display = "none" ;
557
- }
558
- next = next . nextElementSibling ;
559
- }
560
- }
561
-
562
531
function toggleFilters ( id , toggle ) {
563
532
let styles = document . getElementById ( id ) . style ;
564
533
let indicator = document . getElementById ( toggle ) ;
0 commit comments