I have worked on windows and it is very very slow with so many errors , i need a recommendation what linux should i use for development in magento 2 . Centos 7 , Ubuntu or anything else i want supper fast speed . (local computer)
I've been using Ubuntu (without docker, vagrant, etc.) for Magento development during the last 4 years - and it was pretty fast.
I've run all types of tests - unit, integration, API-functional, MTF, and MFTF (which are "slow" by their nature) on my local machine. Even, I had multiple running instances at the same time.
Now, I'm using macOS for the development, it a little bit slower when on Ubuntu but much faster when on Windows.
Few tips, which were helped me to achieve the most performance:
bin/magento setup:di:compile- to generate all auto-generated code
bin/magento setup:static-content:deploy- to generate all js and CSS files
Xdebugfor CLI - allows speeding up tests execution, if you need debugging for tests, such IDE as PHPStorm allows enabling it in runtime
UPD: some time ago I did some benchmarks for tests execution. Running one set of
150 integrations tests take:
38sec on Linux machine,
1min 45sec on Windows machine (the instance was on Virtualbox with Ubuntu and with codebase on Windows) - Windows native much slower.