3 ms·
Launching processes in WSL is a LOT slower compared to a VM tbh. WSL is a magnitude faster than Cygwin on that level, however it is still limited by the Windows
by koffiezet 9y ago
Launching processes in WSL is a LOT slower compared to a VM tbh. WSL is a magnitude faster than Cygwin on that level, however it is still limited by the Windows process model, even with their pico processes they're an order of magnitude slower.
I have a simple bash script I run from time when new WSL versions come out, to see if that improved. It simply loops doing a silly `echo "foo" | grep "bar"` and increasing a counter until that counter reaches 1000. This 9 line script runs in a bit more than 10 seconds on my i7 laptop. In a Linux VM on that same laptop, that exact same script takes 1 second to run.
Now I absolutely love WSL, it makes things a lot easier in my life, but I have to run some extensive long-running bash scripts from time to time (don't ask), and the minute it takes me to spin up a Vagrant VM lets me finish this in about 15 minutes instead of more than 2 hours.