File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,22 +66,26 @@ class PerformanceBenchmark {
6666 private checkPerformanceRegression ( ) : void {
6767 console . log ( `\n📊 Comparing against hard-coded baseline` ) ;
6868
69+ let hasRegression = false ;
70+
6971 // Factory creation comparison
70- let hasRegression = this . comparePerformance (
72+ const factoryRegression = this . comparePerformance (
7173 'Factory creation' ,
7274 this . results . factoryCreation . average ,
7375 this . baseline . factoryCreation . average ,
7476 6
7577 ) ;
78+ hasRegression = hasRegression || factoryRegression ;
7679
7780 // Document formatting comparisons
7881 for ( const [ size , results ] of Object . entries ( this . results . documentFormatting ) ) {
7982 if ( this . baseline . documentFormatting [ size ] ) {
80- hasRegression = hasRegression || this . comparePerformance (
83+ const documentRegression = this . comparePerformance (
8184 `Document formatting (${ size } )` ,
8285 results . average ,
8386 this . baseline . documentFormatting [ size ] . average
8487 ) ;
88+ hasRegression = hasRegression || documentRegression ;
8589 }
8690 }
8791
You can’t perform that action at this time.
0 commit comments