phpunit-accelerator icon indicating copy to clipboard operation
phpunit-accelerator copied to clipboard

Upcoming releases?

Open michaelmarchesi opened this issue 6 years ago • 3 comments

Hello @gavinlove ,

We used the dev-master branch in PHPUnit 7 and saw an increase in performance and would like to know if there are any planned releases. We previously used PHPUnit 5.7 and are upgrading to PHPUnit 7 and would like to have this package available for use.

michaelmarchesi avatar Aug 13 '19 20:08 michaelmarchesi

Do you have any numbers on the increase? We saw almost no difference when we last tested it with PHPUnit 7

gavinlove avatar Aug 14 '19 08:08 gavinlove

With the accelerator: 7-8 minutes using roughly 325mb memory without accelerator: 15-17 minutes, 1.34gb memory Our functional tests benefited the most from the accelerator.

michaelmarchesi avatar Aug 14 '19 16:08 michaelmarchesi

As PHPUnit destructs instances of the test classes only at the end of the complete test process the accelerator should still make sense if the test classes have no tearDown() that sets the properties to null -- at least in regard to memory consumption.

Since we have implementations of tearDown() that set properties to null that use the most memory the improvement with the accelerator in regard to memory is only 10 MB (ca. 700 vs 710), while the execution time is slightly increased probably because of the listener code that is executed after every test.

dontub avatar Aug 20 '19 08:08 dontub