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.
Don't miss new tech stories on Google
Add Tech Insider once in the Google app and our stories appear in your news suggestions.
Five results on one ratio scale: 1.91x, 2.28x, 2.63x, then 1.0x and 0.5x in Azure
| Study and environment | Versions | WireGuard | OpenVPN | WireGuard / OpenVPN |
|---|---|---|---|---|
| Computers 2025, VMware, TCP throughput | OpenVPN 2.6.12, WireGuard 1.0.20210914 | 210.64 Mbps | 110.34 Mbps | 1.91x |
| Computers 2025, Azure, baseline | same | about 280 to 290 Mbps | about 280 to 290 Mbps | about 1.0x |
| Computers 2025, Azure, high latency | same | 60 Mbps | 120 Mbps | 0.5x |
| MTU paper, Windows 11, Speedtest download | not stated in the source | 50.4 Mbps | 22.1 Mbps | 2.28x |
| Unimal paper, Ubuntu 24.04 in VirtualBox, mean throughput | not stated in the source | 22.9 Mbps | 8.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.

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
| Constraint | Pick | Evidence |
|---|---|---|
| Outbound UDP allowed, speed or latency matters | WireGuard | 1.91x in VMware, 2.28x on Windows 11 with 8.01 ms against 160.38 ms |
| Network blocks UDP or inspects traffic | OpenVPN on TCP/443 | DPI evasion at 8.7 Mbps and 14.3 ms, against 22.9 Mbps and 4.7 ms |
| Cloud link with high latency (Azure) | Test both | OpenVPN reached 120 Mbps, WireGuard 60 Mbps |
| Cloud link at baseline (Azure) | Either | About 280 to 290 Mbps for both |
| Interoperability and established security first | OpenVPN | MTU paper’s conclusion |
| Least room for cipher misconfiguration | WireGuard | Fixed 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.





