mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user