Race Results: Direct vs Hyperdrive

Same query, same database, 5 sequential runs each, both paths run in parallel. Refresh to run again.

How this demo is wired

🌐
Your browser
Columbus, US
HTTPS
Cloudflare Worker
Columbus, US (colo: CMH)
Postgres
🗄️
Neon Postgres
us-east-1 (Virginia)
What's happening: the Worker ran in Columbus, US (colo: CMH). It made the same SQL query against a Postgres database hosted on Neon in AWS us-east-1 (Northern Virginia). Both paths use the same database — the only difference is whether the connection goes direct (new TCP+TLS+auth handshake every time) or through Cloudflare Hyperdrive (pooled connection at the edge, with optional query caching).

Note for the customer: since this Worker and the database are both in or near US East, the network distance is small — the gap you see here is mostly handshake overhead and caching. In your real architecture, with users globally and a database in one region, the same demo would show much larger savings.
Query executed (x 5 per side)
SELECT id, name, price FROM demo_products ORDER BY price LIMIT 10
Hyperdrive is
2.2x
faster end-to-end
Direct total
235
milliseconds
Hyperdrive total
109
milliseconds

Direct connection

New TCP, TLS, and auth handshake on every request.

Connect
148ms
Query 1
18ms
Query 2
17ms
Query 3
18ms
Query 4
17ms
Query 5
17ms
Total 235ms

Cloudflare Hyperdrive

Pooled connection at the edge, cached read queries.

Connect
2ms
Query 1
98ms
Query 2
5ms
Query 3
1ms
Query 4
1ms
Query 5
2ms
Total 109ms

What this shows

Run again See live streaming version → Back to demo dashboard