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)

1 Reply
flat-fuchsia•2w 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.