I measured fresh install on Windows 10, WSL 1 and 2.
All of these measurements with the antivirus software running.
As you can see, WSL 2 is an order of magnitude faster. That would seem to indicate
access to disk as the limiting factor. According to the info I found on the web, WSL 2 uses “native Linux filesystems”.