Skip to content
VPScast
Menu

DigitalOcean Basic s-2vcpu-4gb vs Hetzner CX 23

We earn commissions when you shop through the links below. How we make money

Hetzner CX 23 costs 73% less a month. Of 10 benchmarks both plans have, DigitalOcean Basic s-2vcpu-4gb is ahead on 3 and Hetzner CX 23 on 7. For the money, Hetzner CX 23 gets 484% more CPU. Prices are full monthly prices with IPv4 where it is extra, excluding VAT.

Measured in different cities, Frankfurt and Nuremberg, 187 km apart: the network figures are not directly comparable, and the hardware may differ between data centers. These are the nearest two places both plans were measured.

Price, specs and benchmarks

Spec DigitalOcean Basic s-2vcpu-4gb Hetzner CX 23
Full price / mo $24.00
cheapest region
$6.55
cheapest region
vCPU 2 Shared 2 Shared
RAM 4 GB 4 GB
Disk 80 GB SSD 40 GB NVMe
Traffic / mo 4 TB 20 TB
Public IPv4 Included +$0.55 (in the price above)
Billing Hourly Hourly
Backups +20% of the server +20% of the server
Where to order
In stock in 12 of 12 regions
Order at DigitalOcean
In stock in 1 of 3 regions
Order at Hetzner
Measured Frankfurt, Oct 31, 2026
1 run
Nuremberg, Nov 23, 2026
1 run
CPU we got Not disclosed by the provider (reports “DO-Regular”) AMD EPYC-Rome Processor
The provider offers there
  • Block storage — not offered
  • Object storage (S3)
  • Load balancer
  • Private network
  • Managed Kubernetes
  • Managed PostgreSQL
  • Block storage
  • Object storage (S3)
  • Load balancer
  • Private network
  • Managed Kubernetes — not offered
  • Managed PostgreSQL — not offered
CPU How fast one core and all cores compute.
One core, 7-Zip
MIPS, higher is better
3,548
1 run, preliminary
4,988
1 run, preliminary
41% faster
All cores, 7-Zip
MIPS, higher is better
7,262
1 run, preliminary
11,571
1 run, preliminary
59% faster
All cores per dollar
MIPS per $/mo, higher is better
303 1,766 5.8× more for the money
Disk Random reads, and writes flushed one by one as a database commits.
Random read 4K
IOPS, higher is better
75,139
1 run, preliminary
53% faster
48,997
1 run, preliminary
Sync write 4K
IOPS, higher is better
2,961
1 run, preliminary
70% faster
1,743
1 run, preliminary
Applications A Laravel page, PostgreSQL and a Docker build on the server itself.
PHP page
req/s, higher is better
247
1 run, preliminary
497
1 run, preliminary
2.0× faster
pgbench read-write
TPS, higher is better
1,784
1 run, preliminary
2,825
1 run, preliminary
58% faster
Docker build
s, lower is better
54.6
1 run, preliminary
29.0
1 run, preliminary
88% faster
Network Download from the nearest neutral point outside the provider, upload to Cloudflare.
Download
Mbit/s, higher is better
1,850
1 run, preliminary
8,305
1 run, preliminary
4.5× faster
Upload
Mbit/s, higher is better
1,672
1 run, preliminary
2.2× faster
763
1 run, preliminary

Every number of the Basic s-2vcpu-4gb run Every number of the CX 23 run How we measure

Already on DigitalOcean Basic s-2vcpu-4gb? See how yours does against Hetzner CX 23.

Run the same test on your server: its page sets each test against our runs of Basic s-2vcpu-4gb and among the plans of its size, CX 23 included.

curl -fsSL https://github.com/vpscast/bench/releases/latest/download/run.sh | bash -s -- --share --plan digitalocean/s-2vcpu-4gb --src compare

About 15 minutes; root or sudo, it uses Docker. Sends only the measurements and the hardware, no IP address. What it does, and how to run it without sending anything