Repository navigation
Conversation
…rmance This allows sharing the cache slots on a real (i.e. non-fake) closure's op_array. We can write the scope into the arena region itself so we can easily compare against it.
AWS x86_64 (c6id.metal)
Laravel 12.11.0 demo app - 50 iterations, 50 warmups, 100 requests (sec)
Symfony 2.8.0 demo app - 50 iterations, 50 warmups, 100 requests (sec)
Wordpress 6.9 main page - 50 iterations, 20 warmups, 20 requests (sec)
bench.php - 50 iterations, 20 warmups, 2 requests (sec)
|
|
This is the idea from GH-10782, as in #18556. Output matches master on a differential test across scopes. Zend, opcache and zend_test tests pass under ASan with and without opcache. Change in cycles against master with opcache on, negative = fewer cycles (faster):
The trait and empty closure rows run the same instructions as master, within 0.5%. Pages run 0.1–0.5% fewer. So I think the slower rows are code layout, like on #18556. It also fixes part of GH-25380. A method that creates a closure with a Could you add a test? observer_closure_04.phpt from #18556 fails on master with opcache and passes here. One difference from #18556 is closures with no cache slots. They get a new |
This allows sharing the cache slots on a real (i.e. non-fake) closure's op_array. We can write the scope into the arena region itself so we can easily compare against it.