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.
Chart shows timings for 150 requests done in 3 second intervals over the course of 7 minutes 30 seconds.
This is only including the query time measured with performance.now()
right before a query and after it. It does not include http overhead.
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.
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.