[php-src] PR #16664: POC run-tests.php: avoid SKIPIF evaluation in subprocesses
| From: | staabm | Date: | Fri, 01 Nov 2024 08:49:28 +0000 |
| Subject: | [php-src] PR #16664: POC run-tests.php: avoid SKIPIF evaluation in subprocesses | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29463@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16664
Author: staabm
as discussed in https://github.com/php/php-src/issues/16623
this PR implements a proof of concept.
created a rough prototype which main focus is to give an indication how much faster the test-suite
can get by avoiding subprocesses running
php run-tests.php ext/intl/tests.
- 77 SKIPIF conditions were evaluated in the main process instead of a subprocess.
- scoped on ext/intl/tests only we can see ~2 seconds saved when running on macos.
- using the side-effects-detector libs on other projects showed the impact on windows usually is way
bigger.
WITH THIS PR
```
=====================================================================
Number of tests : 519 411
Tests skipped : 108 ( 20.8%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 47 ( 9.1%) ( 11.4%)
Expected fail : 1 ( 0.2%) ( 0.2%)
Tests passed : 363 ( 69.9%) ( 88.3%)
---------------------------------------------------------------------
Time taken : 15.005 seconds
=====================================================================
```
BEFORE
```
=====================================================================
Number of tests : 519 411
Tests skipped : 108 ( 20.8%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 42 ( 8.1%) ( 10.2%)
Expected fail : 1 ( 0.2%) ( 0.2%)
Tests passed : 368 ( 70.9%) ( 89.5%)
---------------------------------------------------------------------
Time taken : 17.556 seconds
=====================================================================
```
next steps
- is it worth further exploring?
- see how the impact is on the full test-suite