LmCast :: Stay tuned in

WSL3 Performance is about 5-60% faster than WSL2 depending on the workload

Recorded: Oct. 10, 2026, 10:01 a.m.

Original Summarized

WSL2 vs WSL3 Benchmarks: Performance, Memory, and Syscall Scaling // Tony Metzidis

Tony Metzidis
AI , Cloud, Engineering & Leadership

GitHub

LinkedIn

Categories
 - 
Tags

WSL2 vs WSL3 Benchmarks: Performance, Memory, and Syscall Scaling

calendar
Oct 7, 2026

clock
4 min read

tag
Wsl
Wsl2
Wsl3
Benchmarks
Performance
Virtualization

With the release of the WSL 3.x stack, Microsoft bumped the default virtualization runtime and advanced the shipped guest kernel from the 6.6 LTS branch up to 6.18.
WSL upgrades often claim generalized performance gains, but marketing bullet points rarely translate directly to developer workloads. To see what actually changed under the hood, I ran side-by-side benchmark suites comparing WSL 2.6.3.0 (Linux kernel 6.6.87.2) against WSL 3.0.2.0 (Linux kernel 6.18.40.1).
Here is what the empirical numbers look like across kernel primitives, memory bandwidth, and an end-to-end Go compiler workload.

The Test Environment
To keep the test clean and reproducible, the guest environment was provisioned using an Alpine Linux 3.23.0 root filesystem (minirootfs) running Go 1.27.1:

Guest OS: Alpine Linux 3.23.0 (x86_64)

Guest Kernel (WSL3): 6.18.40.1-microsoft-standard-WSL2

Go Version: Go 1.27.1

Host Machine: HP ProDesk 400 G4 Desktop Mini (DM)

Processor: Intel Core i5-8500T (6C/6T Coffee Lake @ 2.10 GHz base)

Host RAM: 16 GB DDR4

Host OS: Windows 11 Pro (Build 26200.9550, VBS active)

WSL Resource Allocations (.wslconfig):

processors=2 (pinned to 2 vCPUs)
memory=4GB
networkingMode=nat
firewall=true

Low-Level Kernel Microbenchmarks
Using standard perf bench suites, we can isolate raw scheduler latency, IPC throughput, and memory bandwidth independent of user-space tooling.

Benchmark Suite
Metric
WSL 2.6.3 (6.6.87)
WSL 3.0.2 (6.18.40)
Delta

syscall/basic
getppid() throughput
1,474,691 ops/s
1,533,399 ops/s
+3.98%

Entry/exit latency
0.6781 µs/op
0.6521 µs/op
-3.83%

sched/pipe
100k process ping-pong
48,445 ops/s
54,589 ops/s
+12.68%

Context switch latency
20.64 µs/op
18.32 µs/op
-11.25%

sched/messaging
Hackbench (20 groups, 800 tasks)
14.507 s
13.047 s
-10.06%

mem/memcpy
glibc default bandwidth (1GB)
7.84 GB/s
12.64 GB/s
+61.35%

What the Kernel Deliberations Tell Us

Memory Bandwidth Surge (+61.35%):
The single largest jump is sequential memory throughput, climbing from 7.84 GB/s to 12.64 GB/s. A primary contributor in the 3.x kernel command line is page_reporting.page_reporting_order=5. Raising the page reporting granularity reduces hypervisor trap frequency and page-table walking overhead when the guest interacts with Hyper-V’s dynamic memory reclamation interface.
Scheduler & IPC Latency (-11%):
Both sched/pipe and sched/messaging show noticeable drops in latency. The upstream kernel 6.18 scheduler refinements, paired with tighter Hyper-V VMBus synthetic interrupt handling, reduce the CPU-to-CPU wake penalties when bouncing messages between runnable tasks across the two pinned vCPUs.
Basic Syscall Transition (-3.8%):
Raw system call entry and exit (getppid) saw a modest bump. Trivial ring transitions on 8th-Gen Intel hardware remain governed by fixed CPU architectural boundaries, leaving less room for hypervisor software tuning alone to alter entry costs.

Real-World Workload: GoReleaser Compilation
To test how these micro-level improvements map to developer tooling, I compiled the GoReleaser codebase (go build -a -o /dev/null) with an empty compiler cache (go clean -cache) and a primed module cache:

Metric
WSL 2.6.3 (6.6.87)
WSL 3.0.2 (6.18.40)
Delta

Real (Wall-clock)
3m 11.27s (191.27s)
3m 03.80s (183.80s)
-7.47s (-3.91%)

User (CPU Time)
4m 58.99s (298.99s)
4m 49.38s (289.38s)
-9.61s (-3.21%)

Sys (Kernel Time)
0m 57.39s (57.39s)
0m 48.22s (48.22s)
-9.17s (-15.98%)

Breaking Down the Runtime Split
While top-line wall-clock compilation speed moved by roughly 4%, the underlying distribution of execution time highlights where the stack actually improved:

Kernel Overhead (sys) Collapsed by ~16%:
The compiler repeatedly executes openat, newfstatat, mmap, and futex calls while scanning the package graph and coordinating compilation workers. The lower kernel trap overhead and improved slab caching in 6.18 directly shaved over 9 seconds off time spent inside the kernel.
The Wall-Clock Ceiling:
The reason total real time only moved by ~7.5 seconds is straightforward: compilation is predominantly a user-space compute workload. Lexing, AST construction, type checking, and SSA optimization account for over 80% of the total clock cycles. Because the VM is capped at two physical cores running at a 2.10 GHz base clock, raw CPU execution bounds dominate the overall duration.

Takeaways
Upgrading from WSL 2.x to WSL 3.x is a worthwhile jump, but where you see the benefit depends heavily on your workload profile:

High-Churn IPC and Memory-Intensive Systems Win: Local workloads running in-memory databases (Redis, SQLite), container-dense workflows, or microservices passing payloads over Unix domain sockets benefit immediately from the +61% memory bandwidth boost and 10–11% lower context-switching latency.
Compute-Bound Compilers Hit Hardware Ceilings: If your build toolchain spends most of its time executing user-space code on constrained vCPUs, WSL 3.x will significantly cut your kernel time (sys), but your overall build duration will still be dictated by core frequency and thread count.

See Also

The Security Tax in WSL3: Benchmarking Kernel Mitigations Against WSL 2.x
The "Security Tax": Reclaiming 30% Performance in WSL 2
Taming GCE Memory Tax: Disabling OS Login and OS Config on Small Instances
Isolated & Sandboxed WSL Environments with Debian Slim
Lightweight Efficiency: Porting Alpine Linux RootFS to WSL2

©️ 2025 Tony Metzidis

An empirical comparison between the Windows Subsystem for Linux 2 and WSL 3 stack, focusing on performance, memory handling, and system call scaling, was conducted by Tony Metzidis to evaluate the practical impact of the WSL 3.x release. The testing involved side-by-side benchmarking of WSL 2.6.3.0 (Linux kernel 6.6.87) against WSL 3.0.2.0 (Linux kernel 6.18.40), utilizing a specific test environment consisting of an Alpine Linux root filesystem, Go 1.27.1, and an Intel Core i5-8500T processor with 16 GB of RAM under Windows 11 Pro.

The analysis began with low-level kernel microbenchmarks to isolate raw performance metrics, independent of user-space tooling. In memory bandwidth, the most significant improvement observed was a surge in sequential memory throughput, increasing by 61.35%, from 7.84 gigabytes per second to 12.64 gigabytes per second. This substantial gain is primarily attributed to kernel command-line optimizations in the 3.x stack, specifically the page_reporting mechanism. Increasing the page reporting granularity reduces the frequency of hypervisor traps and page-table walking overhead encountered when the guest kernel interacts with the Hyper-V dynamic memory reclamation interface.

Regarding scheduling and inter-process communication (IPC) latency, the results indicated a net reduction. Benchmarks measuring process ping-pong and messaging latency showed improvements, with context switch latency decreasing by 11.25 percent. This reduction was linked to refinements in the upstream kernel 6.18 scheduler and more efficient handling of Hyper-V VMBus synthetic interrupts, which diminished the CPU-to-CPU wake penalties when tasks migrated across pinned virtual CPUs. Raw system call throughput, such as getppid operations, experienced a modest increase of 3.98 percent, reflecting fixed architectural boundaries on 8th-generation Intel hardware.

When evaluating a real-world computational workload, specifically compiling the GoReleaser codebase, the wall-clock time showed a slight net improvement of approximately 3.91 percent. However, a deeper analysis of the execution time revealed a more profound improvement in kernel execution time. Kernel time measurements decreased by 15.98 percent, as the compiler experienced less time spent inside the kernel executing system calls like openat, mmap, and futex, due to improved slab caching and reduced trap overhead within the newer kernel structure.

The breakdown of the total time highlighted a critical distinction between wall-clock performance and system execution efficiency. Since the compilation process is predominantly a user-space compute workload, accounting for over 80 percent of the execution time, the overall wall-clock duration was largely constrained by the physical limits of the constrained virtual CPU execution environment and core frequency. While the kernel overhead decreased significantly, the aggregate wall-clock time remained bound by the hardware ceiling.

The overall takeaway is that upgrading from WSL 2.x to WSL 3.x provides distinct benefits depending on the application profile. Workloads characterized by high-churn IPC and memory-intensive operations, such as in-memory databases or container workflows, immediately benefit from the considerable memory bandwidth increase and reduced context-switching latency. Conversely, compute-bound tasks, such as compilation, see a substantial reduction in the time spent in kernel operations, although the total elapsed time is still ultimately governed by the underlying constraints of the physical CPU resources.