WireGuard vs OpenVPN Speed: 1.9x to 2.6x Faster, Except in Azure

In the published tests that report throughput for both protocols, WireGuard is 1.9x to 2.6x faster than OpenVPN in a VMware lab, on Windows 11 and in an Ubuntu 24.04 VirtualBox rig (the last against OpenVPN on TCP/443, per the Unimal paper). In Azure the two are level at baseline, and OpenVPN is twice as fast under high latency, according to the 2025 Computers study. Pick WireGuard where outbound UDP is allowed and OpenVPN on TCP/443 where it is not. The VMware and Azure results come from the same paper.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

Five results on one ratio scale: 1.91x, 2.28x, 2.63x, then 1.0x and 0.5x in Azure

Study and environmentVersionsWireGuardOpenVPNWireGuard / OpenVPN
Computers 2025, VMware, TCP throughputOpenVPN 2.6.12, WireGuard 1.0.20210914210.64 Mbps110.34 Mbps1.91x
Computers 2025, Azure, baselinesameabout 280 to 290 Mbpsabout 280 to 290 Mbpsabout 1.0x
Computers 2025, Azure, high latencysame60 Mbps120 Mbps0.5x
MTU paper, Windows 11, Speedtest downloadnot stated in the source50.4 Mbps22.1 Mbps2.28x
Unimal paper, Ubuntu 24.04 in VirtualBox, mean throughputnot stated in the source22.9 Mbps8.7 Mbps (TCP/443)2.63x

The Azure and VMware rows are the same paper: the Computers study, which compared OpenVPN 2.6.12 with WireGuard 1.0.20210914. Its authors report that in VMware WireGuard also lost fewer packets, 12.35% against 47.01%, or about 3.8x fewer. The MTU paper’s Windows 11 test adds latency and CPU: WireGuard at 8.01 ms and 3% CPU, OpenVPN at 160.38 ms, about 20x higher. In the Unimal VirtualBox rig WireGuard had 4.7 ms latency and used 9.8% CPU on the server and 8.3% on the client, against 14.3 ms for OpenVPN on TCP/443.

The chart shows the pattern. Three results cluster between 1.9x and 2.6x in WireGuard’s favour, and the one cloud paper that varied latency produced both a tie and a reversal.

WireGuard throughput as a multiple of OpenVPN's, by study
Values above 1.0 mean WireGuard was faster; 0.5 means OpenVPN was twice as fast. The rigs differ, so compare the ratios rather than the absolute speeds, and note that the VirtualBox result is against OpenVPN on TCP/443. Source: GCU Computers study, MTU Windows 11 paper, Unimal JACKA paper; ratios calculated from each paper's own figures.

The ratio follows the environment, and the Computers authors say so

The Computers study concludes that “protocol selection should be guided by deployment environment and application requirements rather than general superiority claims.” Its resource figures fit that caution: utilisation “showed minimal differences, with WireGuard maintaining slightly better memory efficiency.” The speed gap in VMware, then, did not come with a large CPU or memory gap, and in Azure it disappeared or flipped.

Two design facts frame the comparison. WireGuard was merged into Linux kernel 5.6 in 2020, per the Unimal paper, and the WireGuard protocol page states that all its packets are sent over UDP. The Computers paper also puts WireGuard’s codebase at about 4,000 lines against 100,000+ for OpenVPN, so a smaller attack surface is part of the case, though that paper’s own count of OpenVPN may differ from others.

The tested builds are 2.6.12 and 1.0.20210914. Treat the table as a guide to the shape of the gap, and measure your own path with the recipe at the end.

A fixed cipher suite with machine-checked proofs, against a stack where configuration is the risk

WireGuard fixes its primitives: ChaCha20 with Poly1305, Curve25519 for key exchange and BLAKE2s for hashing, per the protocol page. Its handshake is Noise_IK, repeated every few minutes to rotate keys for forward secrecy, and the server does not respond at all to an unauthorised client. The Unimal paper cites Lipp et al., who produced machine-verified proofs of WireGuard’s cryptographic security with ProVerif and Tamarin.

An optional pre-shared key can be mixed in, for example for post-quantum resistance. It is a symmetric key, so it is only as safe as the way you distribute it.

OpenVPN’s weakness is the flip side of its flexibility: the Unimal paper notes that its “extensive configurability introduces the possibility of weak cipher selection.” Its strength is maturity. The project’s compatibility documentation dates its first release to March 2002 and says all reasonable efforts have been made to preserve protocol compatibility across versions. The MTU paper sums up the split: WireGuard for latency-sensitive and throughput-demanding cases, OpenVPN where interoperability and established security matter.

Networks that block UDP: OpenVPN on TCP/443 costs about 2.6x in speed

Because every WireGuard packet is UDP, a network that drops UDP leaves OpenVPN as the working option. The Unimal paper says OpenVPN on TCP/443 “provides unique deep-packet-inspection evasion at a performance cost”: 8.7 Mbps and 14.3 ms, against WireGuard’s 22.9 Mbps and 4.7 ms in the same rig. That is about 2.6x less throughput and about 3x the latency.

OpenVPN’s default port is 1194, assigned by IANA in November 2004 (it was 5000 before), so running on 443 is a deployment choice you make on the server, not a setting you get by default.

A WireGuard server whose keys are never world-readable, and a parallel-run migration

This sequence replaces the earlier page’s steps. It sets umask 077 before any key exists, so keys are never created readable by others, and runs chmod 600 on the key and config files as a second guard. It drops the DNS line from the server section, takes the outbound interface from the routing table instead of assuming eth0, and sets IP forwarding explicitly. Run the server part as root; the sudo prefixes are harmless as root and needed if you run those lines from your own account. The last block of commands runs on the client, and port 51820 is the choice used here.

set -e
umask 077
mkdir -p /etc/wireguard && cd /etc/wireguard

# keys
wg genkey | tee server.key | wg pubkey > server.pub
wg genkey | tee client1.key | wg pubkey > client1.pub
wg genpsk > client1.psk
chmod 600 server.key client1.key client1.psk

# server
WAN=$(ip route get 1.1.1.1 | awk '{for(i=1;i<=NF;i++) if($i=="dev") print $(i+1); exit}')
echo 'net.ipv4.ip_forward=1' > /etc/sysctl.d/99-wireguard.conf
sysctl -p /etc/sysctl.d/99-wireguard.conf

cat > wg0.conf <<EOF
[Interface]
PrivateKey = $(cat server.key)
Address = 10.0.0.1/24
ListenPort = 51820
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o $WAN -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o $WAN -j MASQUERADE

[Peer]
PublicKey = $(cat client1.pub)
PresharedKey = $(cat client1.psk)
AllowedIPs = 10.0.0.2/32
EOF
chmod 600 wg0.conf

sudo systemctl enable --now wg-quick@wg0

# client1.conf: copy to the client as /etc/wireguard/wg0.conf with server.pub, client1.key and client1.psk
cat > client1.conf <<EOF
[Interface]
PrivateKey = $(cat client1.key)
Address = 10.0.0.2/32
DNS = 1.1.1.1

[Peer]
PublicKey = $(cat server.pub)
PresharedKey = $(cat client1.psk)
Endpoint = SERVER_PUBLIC_IP:51820
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 25
EOF
chmod 600 client1.conf

# verify on the server: a recent handshake appears once the client connects
sudo wg show wg0

# verify on the client: bring the tunnel up, reach the server, check the exit address and route
sudo wg-quick up wg0
ping 10.0.0.1 -c 3
curl --interface wg0 https://ifconfig.me
ip route get 1.1.1.1

Point the client’s DNS line at a resolver you run, or leave the public one, but decide deliberately; the old page’s server-side address had no resolver behind it. On the client, ip route get 1.1.1.1 should name the WireGuard interface when the full tunnel is up, and curl --interface wg0 should report the server’s public address rather than yours.

To migrate without a cutover, run WireGuard on UDP beside the existing OpenVPN server, move users in groups, keep OpenVPN on TCP/443 for networks that block UDP, and retire it only after a quiet period. If you would rather not hand out keys by hand, our Tailscale vs WireGuard comparison covers one managed route.

Which protocol for which constraint, and a check on your own link

ConstraintPickEvidence
Outbound UDP allowed, speed or latency mattersWireGuard1.91x in VMware, 2.28x on Windows 11 with 8.01 ms against 160.38 ms
Network blocks UDP or inspects trafficOpenVPN on TCP/443DPI evasion at 8.7 Mbps and 14.3 ms, against 22.9 Mbps and 4.7 ms
Cloud link with high latency (Azure)Test bothOpenVPN reached 120 Mbps, WireGuard 60 Mbps
Cloud link at baseline (Azure)EitherAbout 280 to 290 Mbps for both
Interoperability and established security firstOpenVPNMTU paper’s conclusion
Least room for cipher misconfigurationWireGuardFixed suite and machine-verified proofs against configurable ciphers

To settle the speed question on your own path, run iperf3 through each tunnel. Start iperf3 -s on the server and use the server’s address inside each tunnel (10.0.0.1 for the WireGuard setup above):

for i in 1 2 3; do iperf3 -c 10.0.0.1 -t 30; done
for i in 1 2 3; do iperf3 -c 10.0.0.1 -t 30 -R; done

Take the median of the three runs per direction for each protocol, divide WireGuard’s result by OpenVPN’s, and compare that ratio with the chart: near 2 to 3 means your path behaves like the lab rigs, near 1 or below means it behaves like Azure.

Marcus Chen

Marcus Chen

PC hardware, storage and engineering

Marcus Chen covers PC hardware, storage and engineering for Tech Insider: processors, graphics cards, SSDs and hard drives, home servers and backup, and the engineering choices behind them. He builds comparisons from manufacturers' specifications, published independent test results and Tech Insider's own calculations, and writes plainly about what the evidence supports.

View all articles