[wp-trac] [WordPress Trac] #63026: Improve performance of bcrypt related unit tests

WordPress Trac noreply at wordpress.org
Mon Apr 7 10:45:27 UTC 2025


#63026: Improve performance of bcrypt related unit tests
--------------------------+---------------------
 Reporter:  desrosj       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.8
Component:  Security      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  tests
--------------------------+---------------------

Comment (by saurabh.dhariwal):

 It seems that when running on PHP 8.4, there's a significant decrease in
 overall performance when combined with MySQL databases.

 This issue came to light due to an increased number of PHPUnit test suite
 timeouts, where the configured 20-minute threshold is exceeded. The
 related jobs are taking 2โ€“3x longer than expected to complete.

 For reference, please see the annotations at the bottom of this run
 summary [link to run if available].

 Interestingly, this performance degradation is not observed when using PHP
 8.2. The Performance Testing workflow currently runs against the latest
 tagged version of PHP, which is still using the 8.2 container โ€” and these
 runs do not exhibit the slowdown.
 ๐Ÿงช Next Steps / Suggestions

     Consider pinning the Performance Testing workflow to PHP 8.4
 explicitly to replicate the issue.

     Benchmark isolated PHP 8.4 + MySQL tasks outside of the test suite to
 see if this is a core PHP regression.

     Investigate changes in the PHP 8.4 changelog or MySQL-PDO/MySQLi
 behavior.

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


More information about the wp-trac mailing list