Make WordPress Core

Changeset 56934


Ignore:
Timestamp:
10/13/2023 08:03:07 PM (6 months ago)
Author:
swissspidy
Message:

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

Props joemcgill.
See #59517.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/performance/compare-results.js

    r56930 r56934  
    145145
    146146        const delta = value - prevValue;
    147         const percentage = Math.round( ( delta / value ) * 100 );
     147        const percentage = ( delta / value ) * 100;
    148148        rows.push( {
    149149            Metric: metric,
Note: See TracChangeset for help on using the changeset viewer.