Replies: 1 comment 3 replies
-
🤔 any idea what is the cause of this? It's quite surprising (didn't seem to find the answer from having a glance at the conversations)
Wouldn't there be an abstraction layer that would allow to easily switch from a driver to another? I don't remember the state of things but I vaguely remember using some Amphp library for this at one point |
Beta Was this translation helpful? Give feedback.
-
I did not yet deep dive into infection or its implementation details, therefore take this with a grain of salt.
If I get it right all/most? tests in infection need to run in isolation to make super sure tests and mutants don't have side-effects on each other. as I am exploring ways to make phpunit test isolation more efficient, I though about sharing my findings here... maybe infection can also do similar things or take inspiration from it to make the internals more efficient
array based command notation should be used when possible to reduce process creation overhead. see sebastianbergmann/phpunit#5766
in case infection really needs to spawn new processes for every test, it might make sense to use
pcntl_fork
instead of a worker process as it seems to incur 6-7x less process creation overheadI am open to help and/or implement above ideas in case they seem useful/acceptable
I am not yet finished with phpunit, so maybe I can share more findings in the future.
Beta Was this translation helpful? Give feedback.
All reactions