Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thebengeu/simple-supabase-benchmarks
https://github.com/thebengeu/simple-supabase-benchmarks
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thebengeu/simple-supabase-benchmarks
- Owner: thebengeu
- Created: 2023-11-14T20:51:05.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-19T04:34:17.000Z (11 months ago)
- Last Synced: 2024-04-15T03:04:44.350Z (7 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Supabase Benchmarks
## Prerequisites
- [k6](https://k6.io/docs/get-started/installation/)
- [pgbench](https://www.postgresql.org/docs/current/pgbench.html)
- [psql](https://www.postgresql.org/docs/current/app-psql.html)## Setup
```console
export PGDATABASE=postgresql://postgres:@db..supabase.co:5432/postgres
pgbench --initialize --init-steps dtGvp --scale 200
psql $PGDATABASE .supabase.co
export SUPABASE_KEY=
psql $PGDATABASE -c 'set statement_timeout = 0' -c 'truncate pgbench_history' -c 'vacuum analyze' && k6 run simple-update.js
```There are also:
- `select-only.js`, based on `pgbench --builtin select-only`.
- `tpcb-like.js`, based on `pgbench --builtin tpcb-like`.## Cleanup
```console
pgbench --initialize --init-steps d
```