It doesn't make much of a difference. macOS Docker performance is heavily limited by really poor volume mount performance.
In one of our projects the benchmarks look like this to run our test suite for a web app using volume mounts:
- 2020 Intel MBP (10th gen CPU, 32GB of memory, SSD): 37 seconds
- First generation M1 MBP: 31 seconds
- WSL 2: 3 seconds
The WSL 2 box is an old workstation I have from 6-7 years ago with an i5 3.2ghz CPU, 16gb of RAM and one of the first SSDs. All in all it was about $800.
The WSL 2 box is so fast for Docker because the volume performance is pretty much as good as native Linux. It's really fast.
nickjj|3 years ago
In one of our projects the benchmarks look like this to run our test suite for a web app using volume mounts:
- 2020 Intel MBP (10th gen CPU, 32GB of memory, SSD): 37 seconds
- First generation M1 MBP: 31 seconds
- WSL 2: 3 seconds
The WSL 2 box is an old workstation I have from 6-7 years ago with an i5 3.2ghz CPU, 16gb of RAM and one of the first SSDs. All in all it was about $800.
The WSL 2 box is so fast for Docker because the volume performance is pretty much as good as native Linux. It's really fast.