michal-kapala / db-benchmark

Prisma-based benchmark for managed Postgres providers

Home Page:https://db-benchmark.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Database operation execution time benchmark for managed PostgreSQL database hosting providers.

DB providers

The app provides support for but not limited to:

The support can be extended to any hosting service with support for Prisma's postgresql datasource provider. Note that e.g. CockroachDB has its own cockroachdb datasource provider and its PostgreSQL instance is not compatible with postgresql connector. Refer to Prisma data source docs for details.

Prisma used to support multiple types of data source providers, but the feature is long deprecated by now, hence it's not possible to connect to different types of databases at once.

Tech

The benchmark is a TS SvelteKit app bootstrapped with try-prisma built with:

Development

Deployment

To deploy this benchmark to test your database connections, use the Deploy button to deploy to Vercel.

You will need to provide Postgres connection strings to your Supabase, Railway and Render databases.

Deploy with Vercel

Local development

To configure the project for local development:

  1. Install the dependencies
npm install
  1. Synchronize Prisma schema with your database projects (for each tested database project)
  • set the environment variable for provider in schema.prisma's datasource
# Connection string format
postgresql://postgres:<PASSWORD>@<HOST>:<PORT>/<DATABASE>
  • synchronize the database structure with the hosted instance
npx prisma db push
  1. Run the application:
npm run dev

About

Prisma-based benchmark for managed Postgres providers

https://db-benchmark.vercel.app


Languages

Language:Svelte 56.0%Language:TypeScript 39.1%Language:JavaScript 2.5%Language:CSS 1.5%Language:HTML 0.9%