[wp-trac] [WordPress Trac] #57916: Explore and assess 6.2 server-side performance regressions

WordPress Trac noreply at wordpress.org
Thu Mar 16 17:45:07 UTC 2023


#57916: Explore and assess 6.2 server-side performance regressions
----------------------------+--------------------------
 Reporter:  flixos90        |       Owner:  flixos90
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  6.2
Component:  General         |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  performance
----------------------------+--------------------------

Comment (by spacedmonkey):

 After spending a lot of time profiling, I discovery a performance
 difference between beta4 and rc2. This function is called
 `register_block_style_handle`. This function seems to have changed how it
 working somehow. The biggest things slowing this function down is the
 realpath check. In the 184 times it was called in my local env, it was
 doing a realpath a file that does not exist.

 In [https://github.com/WordPress/wordpress-develop/pull/4243 #4243], I do
 a simple check for if the file exists.

 Here is the profiling data.

 WP 6.2 - RC2

 Response Time (median),185.64
 wp-before-template (median),110.79
 wp-before-template-db-queries (median),0
 wp-template (median),66.44
 wp-template-db-queries (median),0

 WP 6.2 - RC2 + PR #4243

 Response Time (median),169.25
 wp-before-template (median),100.97
 wp-before-template-db-queries (median),0
 wp-template (median),60.95
 wp-template-db-queries (median),0

 As this is a simple fix, it could go into 6.2RC3 or 6.2.1.

 I would like to understand the root cause of this problem, but couldn't
 find it in my profiles.

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


More information about the wp-trac mailing list