Build/Test Tools: Do not round percentages when comparing performance test results.

Props joemcgill.
See #59517.

git-svn-id: https://develop.svn.wordpress.org/trunk@56934 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler
2023-10-13 20:03:07 +00:00
parent c2409fe804
commit 9d1c581bf6

View File

@@ -144,7 +144,7 @@ for ( const key of testSuites ) {
const prevValue = median( prev[ metric ] );
const delta = value - prevValue;
const percentage = Math.round( ( delta / value ) * 100 );
const percentage = ( delta / value ) * 100;
rows.push( {
Metric: metric,
Before: `${ prevValue.toFixed( 2 ) } ms`,