[wp-trac] [WordPress Trac] #58674: Fix incorrect hook being used as separator between `wp-before-template` and `wp-template` metrics in automated performance tests

WordPress Trac noreply at wordpress.org
Fri Jun 30 20:07:51 UTC 2023


#58674: Fix incorrect hook being used as separator between `wp-before-template` and
`wp-template` metrics in automated performance tests
-------------------------------------------+--------------------------
 Reporter:  flixos90                       |       Owner:  joemcgill
     Type:  defect (bug)                   |      Status:  accepted
 Priority:  normal                         |   Milestone:  6.3
Component:  Build/Test Tools               |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  needs-patch reporter-feedback  |     Focuses:  performance
-------------------------------------------+--------------------------

Comment (by flixos90):

 @joemcgill The purpose of the `wp-template` metric as initially defined in
 the Performance Lab plugin is to capture the time that ''rendering'' the
 template takes, i.e. any logic that is triggered directly by the PHP/HTML
 template loaded. `wp-before-template` covers the rest, i.e. the entire
 WordPress initialization logic, which includes determining which template
 to load.

 This separates the "responsibilities" for the two metrics between what is
 controlled by the specific template file loaded vs by the WordPress
 bootstrap/initialization process.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58674#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list