Details
-
Improvement
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
3.0.1
-
MOODLE_30_STABLE
-
MOODLE_30_STABLE
-
MDL-52595-master -
Description
As others have found out (e.g. Composer), php can be as much as 3x slower when run with xdebug (https://getcomposer.org/doc/articles/troubleshooting.md#xdebug-impact-on-composer).
Tests on travis show that we can halve our test execution time by disabling xdebug before we run them: https://travis-ci.org/andrewnicols/moodle/builds/98444235
At the moment we do not need xdebug for phpunit or behat. They are only required for code coverage analysis.
In the case of php >= 56, we can also swap it out for phpdbg -qrr if we do want it. phpdbg should be faster than xdebug.