Skip to content

Latency-based SELECT benchmark for multiple Postgres cloud vendors

Notifications You must be signed in to change notification settings

tembo-io/compare-various-pg-cloud-vendors

 
 

Repository files navigation

Serverless DB latencies comparison

comparison made between three serverless DB offerings:

  • planetscale
  • neon
  • turso

neon and turso are using the hobby plan. planetscale is the scaler pro plan as I was unable to get the hobby plan in time of testing. Will update this chart when I get access to it.

TODO measure again with neon HTTP driver and upload a proper chart.

Stack and infrastructure

all DBs were tested in Frankfurt region. Stack:

  • drizzle orm
  • cloudflare workers

Neon is using the connection pooler as advised by their docs for serverless environments.

Conclusions

planetscale seems to have their networking stack setup the best. Their max latency for the simple select query stayed below 67 ms throughout whole test. Neon is predictable once the instance wakes up, but much slower. Turso is as fast as PS at times, but has random spikes to 400 ms.

About

Latency-based SELECT benchmark for multiple Postgres cloud vendors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%