Skip to content

few tiny benchmarks on latencies for the most prominent serverless DBs

Notifications You must be signed in to change notification settings

capaj/compare-planetscale-neon-turso

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

few tiny benchmarks on latencies for the most prominent serverless DBs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published