Skip to content

vercel-labs/function-database-latency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4fb564d · Jan 22, 2025

History

99 Commits
Mar 13, 2024
May 1, 2024
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
May 7, 2024
Nov 28, 2022
May 2, 2024
Nov 26, 2022
Jan 22, 2025
Dec 7, 2024
Jan 22, 2025
Jan 22, 2025
Nov 28, 2022
Mar 13, 2024
Nov 28, 2022

Repository files navigation

Vercel Functions Database Latency

This demo helps observe the latency characteristics of querying different popular data services from Vercel Functions.

https://db-latency.vercel.app

Providers

Here is an overview of all data service providers and the compute locations available in this app:

Provider Edge (Global) Edge (Regional / US East) Node
Convex (SDK)
Fauna
Grafbase (GraphQL)
Neon w/ @neondatabase/serverless
Neon w/ Drizzle ORM
Neon w/ Prisma ORM
PlanetScale w/ Kysely
PlanetScale w/ Prisma ORM
PlanetScale w/ Drizzle
Shopify (Storefront GraphQL API)
Supabase w/ supabase-js
Supabase w/ Prisma ORM
Supabase w/ Drizzle
TiDB Cloud (serverless-js)
Tigris
Turso
Turso w/ Prisma ORM
Turso w/ Drizzle
Upstash (SDK)
Xata w/ TypeScript SDK
Xata w/ Prisma ORM
Xata w/ Drizzle

Testing Methodology

  1. Smallest atomic unit, e.g. 1 item / row.
  2. Data schema:
interface EmployeeTable {
  emp_no: number;
  first_name: string;
  last_name: string;
}