28 comments

  • jesse_dot_id an hour ago

    I jumped ship from Windows a couple of years ago after having used it since the early 90's. One of the primary reasons was how much I had to fight with WSL2 in my day-to-day work. But now it's becoming even more apparent that Microsoft does not care about its operating system. I don't even know what they could do to get me back. Trust continues to be a huge problem in the AI era of Microsoft.

    • throwa356262 39 minutes ago

      WSL has been god send for corporate employees who get a windows laptop but need to do real work.

      But everyone knows that performance of WSL is nowhere near native linux on the same machine.

    • chris_money202 7 minutes ago

      Did you work out of /mnt/c?

    • shevy-java 23 minutes ago

      For me Win11 was the final stop.

      I still use Win10 for a few things, including testing stuff works there too, via java. I switched to Linux in 2004 or so, though.

  • 1718627440 an hour ago

    WSL2 is a different product from WSL1, not a different version. Is WSL3 now a different version of WSL2 or another separate product?

    • pilif 43 minutes ago

      Looks like a different version of WSL2 with a newer kernel and newer VM host software

      • pjmlp 24 minutes ago

        An evolution, better said.

        Now there is virtio support, finally no need to depend on external CLI tools for what should have been in the box on day on.

        Until now, even for Windows containers, we needed some Docker compatible CLI tool.

  • armcat 2 hours ago

    Great job in benchmarking! I wasn't even aware of the WSLc (WSL3) release. For others, the release info is available here: https://github.com/microsoft/WSL/releases/tag/3.0.1

    EDIT: stumbled on the previous HN post here: https://news.ycombinator.com/item?id=49970507

    • pjmlp an hour ago

      That is quite relevant, and compose ability is on the way, or for some workloads Aspire would be an alternative I guess.

      Unfortunately most companies are too cheap to pay for Docker Desktop, and having Windows containers depend on a third party tool has been a problem in such customers.

      Because using Rancher Desktop or Podman isn't also a given, due to similar issues.

    • Randomno an hour ago

      Is it accurate to call this WSL3? WSL 2 was released in 2019, but WSL 2.0.0 was released in 2023 https://github.com/microsoft/WSL/releases/tag/2.0.0

  • binsquare an hour ago

    Lot of the WSL2 lag is not the VM itself, it's the 9P file sharing and interop.

    I found that seems like anything under /mnt/c goes through 9P

    • chris_money202 8 minutes ago

      You’re not supposed to work out of the /mnt/c. A lot of people make this mistake and then complain that WSL is slow. On the native linux file system WSL is 100x faster for everything

    • pjmlp 23 minutes ago

      There is virtio support now, and to be fair 9P was never an issue for me.

    • usrusr 24 minutes ago

      And yet I had results perfectly within the range of "good enough" having an ai harness muck about in a work folder in a docker mount on a 9P mapped drive under permanent observation by an intelliJ instance on the Windows side before some buggy Windows update made it occasionally lock up under `npm i` sized filesystem loads. Crazy how far we've come.

  • xaduha an hour ago

    I find that stuff that it offers over a normal Hyper-V VM is stuff that I don't need, leaky abstractions galore.

    • shevy-java 22 minutes ago

      Well, you can use linux-tools on windows too. I kind of compiled most of LFS/BLFS on it, and it works. So it just gives you more options.

  • la_fayette an hour ago

    ok great benchmark! I work with herdr/pi for dev work and need to use a windows machine from my company. WSL currently unfortunately lags so much when typing, not sure why when using herdr... Using powershell, some features are missing, so i can't wait to try WSL3 and hope for improvements.

    • TZubiri an hour ago

      ... does it lag on the shell or does it lag when you are in some vibecoded "TUI" njs monstrosity? Because if the latter, the issue is probably not cause of wsl...

      • la_fayette an hour ago

        The TUIs alone work fine, so something must be done by herdr to make it slow...

      • ricardobeat an hour ago

        herdr might be the culprit there, it can significantly slow down tui apps with its terminal capture. This happens on mac/linux, WSL will surely make it worse.

  • tonymet 3 days ago

    Despite the container support getting most of the attention, I discovered a measurable performance improvement with WSL3 by accident. Luckily I had another machine to upgrade so I ran an AB test comparing WSL 2 to WSL3 .

    If you want a real bump in performance, I have a clever trick . Hardware isn’t cheap these days, so we demand the most of our software.

    • Leonard_of_Q 15 minutes ago

      > If you want a real bump in performance, I have a clever trick . Hardware isn’t cheap these days, so we demand the most of our software.

      Good trick: get rid of the superfluous Windows layer which stands between that expensive hardware and your target OS. It takes up valuable memory, CPU time and storage space, introduces latency where you don't want it, exfiltrates data to unknown destinations and can decide to "upgrade" itself without warning.

      Good tricks need catchy names to succeed so how about NoSL?

  • PunchyHamster 15 minutes ago

    Amazing they managed to make virtualisation that slow in WSL2

  • shevy-java 23 minutes ago

    WSL is one of the few good ideas Microsoft had in the last ... 5000 years or so.

  • cdud3 an hour ago

    And yet it's still factors faster without a whole Windows around it.

    • pjmlp an hour ago

      Unfortunately that acquisition option isn't available in most physical stores, where normies buy their computers, even though there isn't a single OEM not running some distro on their data centers.

      • TZubiri an hour ago

        everything I use it for executes virtually instantly, 60% slower than virtually instantly is still virtually instantly.

        If something is slow on WSL, but not on bare metal linux, it means that the application is slop that only works when MAXING OUT your CPU, it's slop, the app is the slop

        • pjmlp an hour ago

          Yeah, I haven't dual booted in decades, it started with Windows 7 and VMWare Workstation for me.

          The Year of Desktop Linux is delivered on VMs.