N
Neon2w ago
optimistic-gold

Hi folks, I was curious about he

Hi folks, I was curious about he performance of the neon/serverless driver on vercel vs postgres.js, since based on your blog posts it should be MUCH faster - but in my tests it's usually slower than postgres.js. Do you have any benchmarks for that? (my benchmark is defo not science-grade but it's pretty reproducible. node 22 backend)
No description
1 Reply
flat-fuchsia
flat-fuchsia2w ago
Hey! The neon/serverless driver is designed for environments where you can’t reuse a TCP connection (like edge functions), and need to create a new connection for each request. If your benchmark lets postgres.js reuse a TCP connection, then it will usually be faster.

Did you find this page helpful?