Database operation execution time benchmark for managed PostgreSQL database hosting 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.
The benchmark is a TS SvelteKit app bootstrapped with try-prisma
built with:
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.
To configure the project for local development:
- Install the dependencies
npm install
- 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
- Run the application:
npm run dev