diff options
author | Max Semenik <maxsem.wiki@gmail.com> | 2021-02-11 20:33:03 +0300 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-02-23 15:05:49 +0100 |
commit | dda0cea5cd7875a27dc052df4c8c1ac40a5b17b4 (patch) | |
tree | 04f3c1750b586d1f15d91f2c4878ea59f5d9706c /sapi/phpdbg/phpdbg_prompt.c | |
parent | b84e3b1ced969679bc751b28915eb4d5f0bfc150 (diff) | |
download | php-git-dda0cea5cd7875a27dc052df4c8c1ac40a5b17b4.tar.gz |
run-tests: add skip cache
Currently every --SKIPIF-- section in every test file results in 1
extra execution of PHP, every --EXTENSIONS-- section - in 2 executions.
This is quite wasteful, as skip checking code is extremely repetitive
and extensions are fixed for every binary/ini/command parameters
combination.
This patch adds caching to all such checks.
On my machine, the gains are quite noticeable: 36s instead of 43s
with -j16, 292s instead of 337s without concurrency. Cache stats are
3780 hits, 1247 misses in the latter case. In the future, tests could
be adjusted to have more uniform skip checks to improve performance even
more.
Closes GH-6681.
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
0 files changed, 0 insertions, 0 deletions