Today Microsoft anounced the
(Windows Subsystem for Linux), which will be shipped later this year. It
supposed to be 20 times faster than the current WSL. I have used WSL for about
one year and jumped back to Linux due to the performance issue of the former
one. The WSL is definitive faster than Cygwin, but it is unusable for a few
tasks. Here is an example for the performance of WSL(1), Cygwin and the
bare-bone system on the generation of this website at current status.
This static site is generated by self-made bash scripts. The scripts invoke
each other recursively (thus, many forks). The process involves plenty file
test commands (querying the file system attributes) and generates a lot of
temporary and output files (heavy IO of tiny files). This will be a critical
performance benchmark for WSL and Cygwin. The benchmarks are performed on the
same laptop with dual booting into Win 10 and Fedora 29.
WSL at /mnt/c
WSL at /home
WSL at /mnt/c,
WSL at /home,
Ubuntu 18.04 LTS
The performance of both emulators are unacceptable for this task, even if the
Microsoft antivirus software is turned off. Let us look forward to the 20
times performance improvement in the coming WSL2.
Edit 2019-05-30: Add Hyper-V result