@@ -136,9 +136,8 @@ function aggregateHistoricalBenchmarkData(
136136 const values = metricMeans [ metricKey ] ;
137137 if ( values . length > 0 ) {
138138 const calculatedMean = calculateMean ( values ) ;
139- pageData . mean [
140- metricKey as keyof NumericBenchmarkMetrics
141- ] = calculatedMean ;
139+ pageData . mean [ metricKey as keyof NumericBenchmarkMetrics ] =
140+ calculatedMean ;
142141 }
143142 } ) ;
144143
@@ -334,12 +333,9 @@ function getMetricValues(
334333 summary : BenchmarkSummary ,
335334 metric : string ,
336335) : { mean : number ; stdDev : number } | null {
337- const meanValue =
338- summary . mean [ metric as keyof NumericBenchmarkMetrics ] ;
336+ const meanValue = summary . mean [ metric as keyof NumericBenchmarkMetrics ] ;
339337 const stdDevValue =
340- summary . standardDeviation [
341- metric as keyof NumericBenchmarkMetrics
342- ] ;
338+ summary . standardDeviation [ metric as keyof NumericBenchmarkMetrics ] ;
343339
344340 if ( typeof meanValue !== 'number' ) {
345341 return null ;
@@ -483,14 +479,10 @@ function generateBenchmarkComment(
483479 continue ;
484480 }
485481
486- const minValue =
487- pageSummary . min [ metric as keyof NumericBenchmarkMetrics ] ;
488- const maxValue =
489- pageSummary . max [ metric as keyof NumericBenchmarkMetrics ] ;
490- const p95Value =
491- pageSummary . p95 [ metric as keyof NumericBenchmarkMetrics ] ;
492- const p99Value =
493- pageSummary . p99 [ metric as keyof NumericBenchmarkMetrics ] ;
482+ const minValue = pageSummary . min [ metric as keyof NumericBenchmarkMetrics ] ;
483+ const maxValue = pageSummary . max [ metric as keyof NumericBenchmarkMetrics ] ;
484+ const p95Value = pageSummary . p95 [ metric as keyof NumericBenchmarkMetrics ] ;
485+ const p99Value = pageSummary . p99 [ metric as keyof NumericBenchmarkMetrics ] ;
494486
495487 comment += `| ${ metric } | ${ formatTime ( currentValues . mean ) } | ${ formatTime ( currentValues . stdDev ) } | ${ formatTime ( minValue || 0 ) } | ${ formatTime ( maxValue || 0 ) } | ${ formatTime ( p95Value || 0 ) } | ${ formatTime ( p99Value || 0 ) } |\n` ;
496488 }
0 commit comments