

Thus I looked for possible optimizations.Īfter reading some articles, I decided give Mutagen a setupįirst off. Having the same - or a very similar - setup as in production can be very valuable. Especially if using Docker in production. However, Docker provides advantages as well. Running on Docker without volume mounts is multitudes faster.

I investigated a bit and the culprit was volume mount performance (as expected). Compared to other setups like using a VM provided by VirtualBox or running bare-metal directly on the machine. The performance has been lacking, to say the least. I’ve been using Docker for local development for some time now. I’ve added an environment variable that allows disabling it on Docker run if I don’t need to debug. XDebug increased Drupal response times by about 5–6x. Issues with intentional mass file changes being prevented by Mutagen safety mechanisms. Development experience not ideal due to delays until files are synced. Mutagen causes high CPU usage when using multiple syncs. Performance improvement by using Mutagen compared to NFS volume mounts: ~25%. Comparing MacOS Docker performance with Linux. Testing if using Mutagen improves performance in comparison to NFS volume mounts.
