The further you are, the faster PgBeam gets.

Serverless functions in 20 global regions connect to a single PostgreSQL database in us-east-1, directly and through PgBeam. Each bar shows connect + p50 query latency, measured live in warm steady state. Across an ocean, PgBeam is dramatically faster. Next to the database, it stays out of the way. No synthetic data, no mocked endpoints.

Benchmark mode

Far from the database

17

A direct connection pays a full cross-continent round trip on every connect and every query. PgBeam routes to the nearest region, serves repeat reads from the edge cache, and reuses warm pooled connections to the database. This is where the speedups are largest.

Portland

2.4× fasterCache HIT vs direct. Pool only: 1.2×.

Snapshot from

Function

us-west-2

PgBeam

us-west-2

Database

us-east-1

Direct
654ms
391ms connect + 263ms query
PgBeam MISS
529ms
242ms connect + 287ms query
PgBeam HIT
272ms
229ms connect + 43ms query

San Francisco

17.8× fasterCache HIT vs direct. Pool only: 2.6×.

Snapshot from

Function

us-west-1

PgBeam

us-west-2

Database

us-east-1

Direct
728ms
412ms connect + 316ms query
PgBeam MISS
279ms
34ms connect + 245ms query
PgBeam HIT
41ms
36ms connect + 5ms query

São Paulo

43.2× fasterCache HIT vs direct. Pool only: 3×.

Snapshot from

Function

sa-east-1

PgBeam

sa-east-1

Database

us-east-1

Direct
1037ms
727ms connect + 310ms query
PgBeam MISS
344ms
23ms connect + 321ms query
PgBeam HIT
24ms
21ms connect + 3ms query

Dublin

5.1× fasterCache HIT vs direct. Pool only: 1.8×.

Snapshot from

Function

eu-west-1

PgBeam

eu-central-1

Database

us-east-1

Direct
735ms
458ms connect + 277ms query
PgBeam MISS
418ms
123ms connect + 295ms query
PgBeam HIT
144ms
121ms connect + 23ms query

London

8.4× fasterCache HIT vs direct. Pool only: 2.1×.

Snapshot from

Function

eu-west-2

PgBeam

eu-central-1

Database

us-east-1

Direct
821ms
496ms connect + 325ms query
PgBeam MISS
392ms
76ms connect + 316ms query
PgBeam HIT
98ms
83ms connect + 15ms query

Paris

10.9× fasterCache HIT vs direct. Pool only: 2.2×.

Snapshot from

Function

eu-west-3

PgBeam

eu-central-1

Database

us-east-1

Direct
810ms
525ms connect + 285ms query
PgBeam MISS
368ms
70ms connect + 298ms query
PgBeam HIT
74ms
63ms connect + 11ms query

Frankfurt

34.7× fasterCache HIT vs direct. Pool only: 2.6×.

Snapshot from

Function

eu-central-1

PgBeam

eu-central-1

Database

us-east-1

Direct
867ms
583ms connect + 284ms query
PgBeam MISS
336ms
33ms connect + 303ms query
PgBeam HIT
25ms
22ms connect + 3ms query

Stockholm

7× fasterCache HIT vs direct. Pool only: 2.3×.

Snapshot from

Function

eu-north-1

PgBeam

eu-central-1

Database

us-east-1

Direct
1027ms
717ms connect + 310ms query
PgBeam MISS
449ms
131ms connect + 318ms query
PgBeam HIT
146ms
123ms connect + 23ms query

Dubai

8.1× fasterCache HIT vs direct. Pool only: 3.8×.

Snapshot from

Function

me-central-1

PgBeam

ap-south-1

Database

us-east-1

Direct
1441ms
1241ms connect + 200ms query
PgBeam MISS
383ms
159ms connect + 224ms query
PgBeam HIT
179ms
150ms connect + 29ms query

Mumbai

2.1× fasterCache HIT vs direct. Pool only: 1.5×.

Snapshot from

Function

ap-south-1

PgBeam

eu-central-1

Database

us-east-1

Direct
1656ms
1257ms connect + 399ms query
PgBeam MISS
1099ms
655ms connect + 444ms query
PgBeam HIT
787ms
648ms connect + 139ms query

Singapore

65.8× fasterCache HIT vs direct. Pool only: 3.8×.

Snapshot from

Function

ap-southeast-1

PgBeam

ap-southeast-1

Database

us-east-1

Direct
1711ms
1304ms connect + 407ms query
PgBeam MISS
445ms
19ms connect + 426ms query
PgBeam HIT
26ms
23ms connect + 3ms query

Tokyo

43.1× fasterCache HIT vs direct. Pool only: 3.2×.

Snapshot from

Function

ap-northeast-1

PgBeam

ap-northeast-1

Database

us-east-1

Direct
1251ms
914ms connect + 337ms query
PgBeam MISS
394ms
29ms connect + 365ms query
PgBeam HIT
29ms
26ms connect + 3ms query

Osaka

20× fasterCache HIT vs direct. Pool only: 2.9×.

Snapshot from

Function

ap-northeast-3

PgBeam

ap-northeast-1

Database

us-east-1

Direct
1322ms
977ms connect + 345ms query
PgBeam MISS
455ms
59ms connect + 396ms query
PgBeam HIT
66ms
56ms connect + 10ms query

Seoul

8.2× fasterCache HIT vs direct. Pool only: 2.8×.

Snapshot from

Function

ap-northeast-2

PgBeam

ap-northeast-1

Database

us-east-1

Direct
1486ms
1107ms connect + 379ms query
PgBeam MISS
540ms
156ms connect + 384ms query
PgBeam HIT
182ms
153ms connect + 29ms query

Hong Kong

1.4× fasterCache HIT vs direct. Pool only: 1.1×.

Snapshot from

Function

ap-east-1

PgBeam

eu-central-1

Database

us-east-1

Direct
1646ms
1231ms connect + 415ms query
PgBeam MISS
1555ms
1038ms connect + 517ms query
PgBeam HIT
1154ms
947ms connect + 207ms query

Sydney

74.3× fasterCache HIT vs direct. Pool only: 4.1×.

Snapshot from

Function

ap-southeast-2

PgBeam

ap-southeast-2

Database

us-east-1

Direct
1709ms
1304ms connect + 405ms query
PgBeam MISS
417ms
20ms connect + 397ms query
PgBeam HIT
23ms
21ms connect + 2ms query

Cape Town

2.1× fasterCache HIT vs direct. Pool only: 1.6×.

Snapshot from

Function

af-south-1

PgBeam

eu-central-1

Database

us-east-1

Direct
1860ms
1454ms connect + 406ms query
PgBeam MISS
1190ms
744ms connect + 446ms query
PgBeam HIT
906ms
744ms connect + 162ms query

Near the database

3

When the client already sits beside the database, a direct connection is fast and the proxy adds little raw latency, sometimes a few milliseconds of extra network hop. That is the honest geometry. The cache still pays off: repeat reads return from the edge in single-digit milliseconds instead of re-querying the database.

Washington, D.C.

12.1× fasterCache HIT vs direct. Pool only: 1.4×.

Snapshot from

Function

us-east-1

PgBeam

us-east-1

Database

us-east-1

Direct
291ms
78ms connect + 213ms query
PgBeam MISS
215ms
22ms connect + 193ms query
PgBeam HIT
24ms
22ms connect + 2ms query

Cleveland

2× fasterCache HIT vs direct.

Snapshot from

Function

us-east-2

PgBeam

ca-central-1

Database

us-east-1

Direct
330ms
130ms connect + 200ms query
PgBeam MISS
359ms
127ms connect + 232ms query
PgBeam HIT
165ms
143ms connect + 22ms query

Montréal

3× fasterCache HIT vs direct. Pool only: 1.1×.

Snapshot from

Function

ca-central-1

PgBeam

us-east-1

Database

us-east-1

Direct
345ms
142ms connect + 203ms query
PgBeam MISS
325ms
105ms connect + 220ms query
PgBeam HIT
116ms
99ms connect + 17ms query

Methodology

How these numbers are generated. No synthetic data, no cherry-picked runs.

Setup

Each region runs as a serverless function deployed to that specific edge location. The function makes real PostgreSQL connections over TLS to a database in us-east-1.

Displayed value

Connect + median query latency (p50): the time to open a connection (TLS handshake, authentication) plus run the query. This is what a serverless function pays each time it reaches the database.

Sampling

5 queries per scenario; the first is discarded as connection warmup and the slowest remaining proxy sample is dropped as a cold-start outlier. p50 from 4 samples using nearest-rank. Results are cached at the CDN and refreshed with live measurements.

Direct

Fresh TLS connection from the serverless function straight to the database. No proxy, no pooling, no caching. This is the baseline that you get without PgBeam.

PgBeam MISS

Same query routed through PgBeam with cache intentionally bypassed (the query runs inside a transaction). The query still executes on the database, but benefits from connection pooling holding warm upstream connections.

PgBeam HIT

Same query through PgBeam served from the edge cache. The result is returned without touching the database. This is the best case and what the “× faster” badge reflects.

Warm steady state, measured fairly

  • • Before measuring, the proxy path is driven through several round trips to reach production steady state: the nearest region is serving traffic, its pooled connections to the database are warm, and the cache is primed. This is the state an actively-used deployment is always in. We do not count the one-time spin-up cost a region pays after sitting idle.
  • • The direct baseline is not warmed: a function connecting straight to the database gets no pool and no cache, so a fresh connection is exactly the baseline to beat.
  • • Numbers are reported as measured. When a client sits right next to the database, the proxy can add a few milliseconds of network hop and the cache HIT may not beat a direct connect+query outright — we show that honestly rather than hide it. The wins grow with distance from the database.
  • • The “× faster” badge compares cache HIT total vs direct total, and only appears when PgBeam is actually faster. Hover it to see the pool-only (MISS) speedup.
  • • Results are cached at the CDN and refreshed in the background with new live measurements. If a region hits a transient error, its last known good measurement is retained.