@@ -332,12 +332,16 @@ describe.each(['https://github.com', 'https://github.enterprise.corp'])('writeBe
332332 benches : [ bench ( 'bench_fib_10' , 210 ) , bench ( 'bench_fib_20' , 25000 ) ] , // Exceeds 2.0 threshold
333333 } ,
334334 error : [
335- '# :warning: ** Performance Alert** :warning:' ,
335+ "# Performance Report for **'Test benchmark'**" ,
336336 '' ,
337- "Possible performance regression was detected for benchmark **'Test benchmark'**." ,
338- 'Benchmark result of this commit is worse than the previous benchmark result exceeding threshold `2`.' ,
337+ 'Benchmark result(s) exceed ratio of `2`.' ,
339338 '' ,
340- '| Benchmark suite | Current: current commit id | Previous: prev commit id | Ratio |' ,
339+ 'Previous commit: prev commit id' ,
340+ 'Current commit: current commit id' ,
341+ '' ,
342+ '### :snail: The following benchmarks show regressions:' ,
343+ '' ,
344+ '| Benchmark suite | Current | Previous | Ratio |' ,
341345 '|-|-|-|-|' ,
342346 '| `bench_fib_10` | `210` ns/iter (`± 20`) | `100` ns/iter (`± 20`) | `2.10` |' ,
343347 '| `bench_fib_20` | `25000` ns/iter (`± 20`) | `10000` ns/iter (`± 20`) | `2.50` |' ,
@@ -371,12 +375,16 @@ describe.each(['https://github.com', 'https://github.enterprise.corp'])('writeBe
371375 benches : [ bench ( 'benchFib10' , 20 , '+-20' , 'ops/sec' ) ] , // ops/sec so bigger is better
372376 } ,
373377 error : [
374- '# :warning: **Performance Alert** :warning:' ,
378+ "# Performance Report for **'Test benchmark'**" ,
379+ '' ,
380+ 'Benchmark result(s) exceed ratio of `2`.' ,
381+ '' ,
382+ 'Previous commit: prev commit id' ,
383+ 'Current commit: current commit id' ,
375384 '' ,
376- "Possible performance regression was detected for benchmark **'Test benchmark'**." ,
377- 'Benchmark result of this commit is worse than the previous benchmark result exceeding threshold `2`.' ,
385+ '### :snail: The following benchmarks show regressions:' ,
378386 '' ,
379- '| Benchmark suite | Current: current commit id | Previous: prev commit id | Ratio |' ,
387+ '| Benchmark suite | Current | Previous | Ratio |' ,
380388 '|-|-|-|-|' ,
381389 '| `benchFib10` | `20` ops/sec (`+-20`) | `100` ops/sec (`+-20`) | `5` |' ,
382390 '' ,
@@ -409,12 +417,16 @@ describe.each(['https://github.com', 'https://github.enterprise.corp'])('writeBe
409417 benches : [ bench ( 'bench_fib_10' , 210 ) ] , // Exceeds 2.0 threshold
410418 } ,
411419 error : [
412- '# :warning: ** Performance Alert** :warning:' ,
420+ "# Performance Report" ,
413421 '' ,
414- 'Possible performance regression was detected for benchmark.' ,
415- 'Benchmark result of this commit is worse than the previous benchmark result exceeding threshold `2`.' ,
422+ 'Benchmark result(s) exceed ratio of `2`.' ,
416423 '' ,
417- '| Benchmark suite | Current: current commit id | Previous: prev commit id | Ratio |' ,
424+ 'Previous commit: prev commit id' ,
425+ 'Current commit: current commit id' ,
426+ '' ,
427+ '### :snail: The following benchmarks show regressions:' ,
428+ '' ,
429+ '| Benchmark suite | Current | Previous | Ratio |' ,
418430 '|-|-|-|-|' ,
419431 '| `bench_fib_10` | `210` ns/iter (`± 20`) | `100` ns/iter (`± 20`) | `2.10` |' ,
420432 '' ,
@@ -447,12 +459,16 @@ describe.each(['https://github.com', 'https://github.enterprise.corp'])('writeBe
447459 benches : [ bench ( 'bench_fib_10' , 210 ) ] , // Exceeds 2.0 threshold
448460 } ,
449461 error : [
450- '# :warning: **Performance Alert** :warning:' ,
462+ "# Performance Report for **'Test benchmark'**" ,
463+ '' ,
464+ 'Benchmark result(s) exceed ratio of `2`.' ,
465+ '' ,
466+ 'Previous commit: prev commit id' ,
467+ 'Current commit: current commit id' ,
451468 '' ,
452- "Possible performance regression was detected for benchmark **'Test benchmark'**." ,
453- 'Benchmark result of this commit is worse than the previous benchmark result exceeding threshold `2`.' ,
469+ '### :snail: The following benchmarks show regressions:' ,
454470 '' ,
455- '| Benchmark suite | Current: current commit id | Previous: prev commit id | Ratio |' ,
471+ '| Benchmark suite | Current | Previous | Ratio |' ,
456472 '|-|-|-|-|' ,
457473 '| `bench_fib_10` | `210` ns/iter (`± 20`) | `100` ns/iter (`± 20`) | `2.10` |' ,
458474 '' ,
@@ -588,12 +604,16 @@ describe.each(['https://github.com', 'https://github.enterprise.corp'])('writeBe
588604 // Though first item is truncated due to maxItemsInChart, alert still can be raised since previous data
589605 // is obtained before truncating an array of data items.
590606 error : [
591- '# :warning: ** Performance Alert** :warning:' ,
607+ "# Performance Report for **'Test benchmark'**" ,
592608 '' ,
593- "Possible performance regression was detected for benchmark **'Test benchmark'**." ,
594- 'Benchmark result of this commit is worse than the previous benchmark result exceeding threshold `2`.' ,
609+ 'Benchmark result(s) exceed ratio of `2`.' ,
595610 '' ,
596- '| Benchmark suite | Current: current commit id | Previous: prev commit id | Ratio |' ,
611+ 'Previous commit: prev commit id' ,
612+ 'Current commit: current commit id' ,
613+ '' ,
614+ '### :snail: The following benchmarks show regressions:' ,
615+ '' ,
616+ '| Benchmark suite | Current | Previous | Ratio |' ,
597617 '|-|-|-|-|' ,
598618 '| `bench_fib_10` | `210` ns/iter (`± 20`) | `100` ns/iter (`± 20`) | `2.10` |' ,
599619 '| `bench_fib_20` | `25000` ns/iter (`± 20`) | `10000` ns/iter (`± 20`) | `2.50` |' ,
@@ -629,10 +649,12 @@ describe.each(['https://github.com', 'https://github.enterprise.corp'])('writeBe
629649 error : [
630650 '# Performance Report' ,
631651 '' ,
632- "Possible performance regression was detected for benchmark **'Test benchmark'**." ,
633- 'Benchmark result of this commit is worse than the previous benchmark result exceeding threshold `0`.' ,
652+ "For benchmark **'Test benchmark'**." ,
634653 '' ,
635- '| Benchmark suite | Current: current commit id | Previous: prev commit id | Ratio |' ,
654+ 'Previous commit: prev commit id' ,
655+ 'Current commit: current commit id' ,
656+ '' ,
657+ '| Benchmark suite | Current | Previous | Ratio |' ,
636658 '|-|-|-|-|' ,
637659 '| `benchFib10` | `100` ops/sec (`+-20`) | `100` ops/sec (`+-20`) | `1` |' ,
638660 '' ,
@@ -667,12 +689,16 @@ describe.each(['https://github.com', 'https://github.enterprise.corp'])('writeBe
667689 error : [
668690 '1 of 1 alerts exceeded the failure threshold `3` specified by fail-threshold input:' ,
669691 '' ,
670- '# :warning: **Performance Alert** :warning:' ,
692+ "# Performance Report for **'Test benchmark'**" ,
693+ '' ,
694+ 'Benchmark result(s) exceed ratio of `2`.' ,
671695 '' ,
672- "Possible performance regression was detected for benchmark **'Test benchmark'**." ,
673- 'Benchmark result of this commit is worse than the previous benchmark result exceeding threshold `2`. ' ,
696+ 'Previous commit: prev commit id' ,
697+ 'Current commit: current commit id ' ,
674698 '' ,
675- '| Benchmark suite | Current: current commit id | Previous: prev commit id | Ratio |' ,
699+ '### :snail: The following benchmarks show regressions:' ,
700+ '' ,
701+ '| Benchmark suite | Current | Previous | Ratio |' ,
676702 '|-|-|-|-|' ,
677703 '| `bench_fib_10` | `350` ns/iter (`± 20`) | `100` ns/iter (`± 20`) | `3.50` |' ,
678704 '' ,
@@ -792,7 +818,7 @@ describe.each(['https://github.com', 'https://github.enterprise.corp'])('writeBe
792818
793819 const h1 = query ( 'h1' ) ;
794820 expect ( 1 ) . toEqual ( h1 . length ) ;
795- expect ( ':warning: Performance Alert :warning:' ) . toEqual ( h1 . text ( ) ) ;
821+ expect ( " Performance Report for 'Test benchmark'" ) . toEqual ( h1 . text ( ) ) ;
796822
797823 const tr = query ( 'tbody tr' ) ;
798824 expect ( t . added . benches . length ) . toEqual ( tr . length ) ;
@@ -1155,12 +1181,16 @@ describe.each(['https://github.com', 'https://github.enterprise.corp'])('writeBe
11551181 gitServerUrl : serverUrl ,
11561182 gitHistory : gitHistory ( ) ,
11571183 error : [
1158- '# :warning: **Performance Alert** :warning:' ,
1184+ "# Performance Report for **'Test benchmark'**" ,
1185+ '' ,
1186+ 'Benchmark result(s) exceed ratio of `2`.' ,
1187+ '' ,
1188+ 'Previous commit: prev commit id' ,
1189+ 'Current commit: current commit id' ,
11591190 '' ,
1160- "Possible performance regression was detected for benchmark **'Test benchmark'**." ,
1161- 'Benchmark result of this commit is worse than the previous benchmark result exceeding threshold `2`.' ,
1191+ '### :snail: The following benchmarks show regressions:' ,
11621192 '' ,
1163- '| Benchmark suite | Current: current commit id | Previous: prev commit id | Ratio |' ,
1193+ '| Benchmark suite | Current | Previous | Ratio |' ,
11641194 '|-|-|-|-|' ,
11651195 '| `bench_fib_10` | `210` ns/iter (`± 20`) | `100` ns/iter (`± 20`) | `2.10` |' ,
11661196 '' ,
0 commit comments