@@ -37,7 +37,7 @@ export class PrCommentBuilder {
37
37
${ this . _buffer }
38
38
<hr />
39
39
<div align="right">
40
- CPU usage difference is shown as <a href="https://en.wikipedia.org/wiki/Percentage_point">percentage points</a>. <br />
40
+ *) pp - <a href="https://en.wikipedia.org/wiki/Percentage_point">percentage points</a> - an absolute difference between two percentages . <br />
41
41
Last updated: <time datetime="${ now . toISOString ( ) } ">${ now . toUTCString ( ) } </time>
42
42
</div>
43
43
` ) ;
@@ -57,14 +57,14 @@ export class PrCommentBuilder {
57
57
<table>
58
58
<thead>` ;
59
59
60
- const headerCols = '<th align="right">Plain</th><th align="right">+Replay</th><th align="right">Diff</th>' ;
60
+ const headerCols = '<th align="right">Plain</th><th align="right">+Replay</th><th align="right">Diff</th><th align="right">Ratio</th> ' ;
61
61
if ( analysis . otherHash != undefined ) {
62
62
// If "other" is defined, add an aditional row of headers.
63
63
this . _buffer += `
64
64
<tr>
65
65
<th rowspan="2"> </th>
66
- <th colspan="3 " align="center">This PR (${ await Git . hash } )</th>
67
- <th colspan="3 " align="center">${ otherName } (${ analysis . otherHash } )</a></th>
66
+ <th colspan="4 " align="center">This PR (${ await Git . hash } )</th>
67
+ <th colspan="4 " align="center">${ otherName } (${ analysis . otherHash } )</a></th>
68
68
</tr>
69
69
<tr>
70
70
${ headerCols }
@@ -85,10 +85,12 @@ export class PrCommentBuilder {
85
85
<td align="right">${ item . value . a } </td>
86
86
<td align="right">${ item . value . b } </td>
87
87
<td align="right"><strong>${ item . value . diff } </strong></td>
88
+ <td align="right"><strong>${ item . value . percent } </strong></td>
88
89
${ maybeOther ( ( ) => `
89
90
<td align="right">${ item . other ! . a } </td>
90
91
<td align="right">${ item . other ! . b } </td>
91
- <td align="right"><strong>${ item . other ! . diff } </strong></td>` ) }
92
+ <td align="right"><strong>${ item . other ! . diff } </strong></td>
93
+ <td align="right"><strong>${ item . other ! . percent } </strong></td>` ) }
92
94
</tr>`
93
95
}
94
96
0 commit comments