WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #50567, comment 3


Ignore:
Timestamp:
07/30/2020 01:18:01 PM (15 months ago)
Author:
Cybr
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50567, comment 3

    initial v1  
    11@peterwilsoncc asked me in Slack if I could post fuller screenshots (`50567.png`) pertaining to this ticket.
    22
    3 Attached (`cg.zip`) are before and after CacheGrind outputs generated by xDebug on PHP 7.4.7 via XAMPP on a VM with generous overhead (16GB/4x3.8GHz).
     3Attached (`cg.zip`) are before and after CacheGrind outputs generated by xDebug on PHP 7.4.7 via XAMPP on a VM with generous headroom (16GB/4x3.8GHz).
    44
    55I've used Twenty Twenty with no plugins active on WP 5.4.2 en_US, displaying 20 posts (duplicated default post "Hello World!") at `/wp-admin/edit.php`, and 10 posts at `/` (homepage).
     
    2020||= =|| Location || Before || After || Before || After || Before || After || =-1*((Af-Be)/Be) ||
    2121|| (logged out) || / || 4 554 || 276 || 100 911 || 6 110 || 0.101 || 0.006 || 94% ||
    22 || (logged in) || /wp-admin/edit.php || 12 443 || 483 || 272 566 || 10 372 || 0.273 || 0.011 || 96% ||
     22|| (logged in) || /wp-admin/edit.php || 12 443 || 483 || 272 566 || 10 372 || 0.273 || 0.010 || 96% ||
    2323
    24 So, we can assume almost up to 0.3s improved response times using PHP 7.4, implying a total of 62% of the total page load time.
     24So, we can assume almost up to 0.3s improved response times using PHP 7.4, implying a total of 62% of the total page load time (which I tested with OpCache enabled elsewhere).
    2525
    2626You'll notice from the same CacheGrind files, `sanitize_term_field()` is also affected by this issue, where category ID 1 is resanitized over and over again. To accommodate for that, see #50568.