Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vercel-labs/function-database-latency
Visualize the latency of databases from Vercel Functions.
https://github.com/vercel-labs/function-database-latency
Last synced: 3 days ago
JSON representation
Visualize the latency of databases from Vercel Functions.
- Host: GitHub
- URL: https://github.com/vercel-labs/function-database-latency
- Owner: vercel-labs
- Created: 2022-11-26T01:49:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-07T03:04:37.000Z (about 2 months ago)
- Last Synced: 2025-01-15T13:52:35.694Z (10 days ago)
- Language: JavaScript
- Homepage: https://db-latency.vercel.app/
- Size: 31.3 MB
- Stars: 176
- Watchers: 7
- Forks: 29
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vercel Functions Database Latency
This demo helps observe the latency characteristics of querying different popular data services from [Vercel Functions](https://vercel.com/docs/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 | ✅ | ✅ | ✅ |
| PolyScale | ✅ | ✅ | ❌ |
| 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:```ts
interface EmployeeTable {
emp_no: number;
first_name: string;
last_name: string;
}
```