Coder Social home page Coder Social logo

compare-planetscale-neon-turso's Introduction

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.

comparison

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.

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.

compare-planetscale-neon-turso's People

Contributors

capaj avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.