[php-src] PHP-8.5: Fix performance of gh22443.phpt
Ilija Tovilo <[email protected]>
| Newsgroups | gmane.comp.php.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
Author: Ilija Tovilo (iluuu1994)
Date: 2026-07-07T11:01:19+02:00
Commit: https://github.com/php/php-src/commit/21204bf59a2f95c395470c402d077880c8f11cca
Raw diff: https://github.com/php/php-src/commit/21204bf59a2f95c395470c402d077880c8f11cca.diff
Fix performance of gh22443.phpt
These millions of iterations don't seem to be necessary to trigger the original
bug.
Changed paths:
M ext/opcache/tests/jit/gh22443.phpt
Diff:
diff --git a/ext/opcache/tests/jit/gh22443.phpt b/ext/opcache/tests/jit/gh22443.phpt
index 869329b79b5c..4baa3f99fc61 100644
--- a/ext/opcache/tests/jit/gh22443.phpt
+++ b/ext/opcache/tests/jit/gh22443.phpt
@@ -45,7 +45,7 @@ for ($k = 0; $k < 8; $k++) {
$cold = [makeListener([$svc, 'coldMethod'])];
$s = 0;
-for ($i = 0; $i < 4000000; $i++) {
+for ($i = 0; $i < 400; $i++) {
$s += invokeListeners($warm, 'e', [$i & 7, ($i >> 2) & 7]);
}
for ($j = 0; $j < 5; $j++) {