{"id":19967265,"url":"https://github.com/thebengeu/simple-supabase-benchmarks","last_synced_at":"2026-06-10T17:31:36.760Z","repository":{"id":207308853,"uuid":"718806156","full_name":"thebengeu/simple-supabase-benchmarks","owner":"thebengeu","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-19T04:34:17.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-28T07:17:03.061Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thebengeu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-14T20:51:05.000Z","updated_at":"2023-12-01T02:18:22.000Z","dependencies_parsed_at":"2023-11-15T06:22:23.943Z","dependency_job_id":"b8d058cb-0e60-4fef-9020-b5beaada1f09","html_url":"https://github.com/thebengeu/simple-supabase-benchmarks","commit_stats":null,"previous_names":["thebengeu/simple-supabase-benchmarks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thebengeu/simple-supabase-benchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebengeu%2Fsimple-supabase-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebengeu%2Fsimple-supabase-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebengeu%2Fsimple-supabase-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebengeu%2Fsimple-supabase-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thebengeu","download_url":"https://codeload.github.com/thebengeu/simple-supabase-benchmarks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thebengeu%2Fsimple-supabase-benchmarks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34163253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T02:40:44.939Z","updated_at":"2026-06-10T17:31:36.743Z","avatar_url":"https://github.com/thebengeu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Supabase Benchmarks\n\n## Prerequisites\n\n- [k6](https://k6.io/docs/get-started/installation/)\n- [pgbench](https://www.postgresql.org/docs/current/pgbench.html)\n- [psql](https://www.postgresql.org/docs/current/app-psql.html)\n\n## Setup\n\n```console\nexport PGDATABASE=postgresql://postgres:\u003cpassword\u003e@db.\u003cproject-id\u003e.supabase.co:5432/postgres\npgbench --initialize --init-steps dtGvp --scale 200\npsql $PGDATABASE \u003cinit.sql\n```\n\n## Benchmarking PostgreSQL using pgbench\n\n```console\npgbench --builtin simple-update --client $(expr $(psql $PGDATABASE -c 'show max_connections' -t -A) / 4) --jobs $(getconf _NPROCESSORS_ONLN) --progress 10 --protocol prepared --time 180\n```\n\n## Benchmarking Supabase REST API using k6\n\n```console\nexport SUPABASE_URL=https://\u003cproject-id\u003e.supabase.co\nexport SUPABASE_KEY=\u003canon-key\u003e\npsql $PGDATABASE -c 'set statement_timeout = 0' -c 'truncate pgbench_history' -c 'vacuum analyze' \u0026\u0026 k6 run simple-update.js\n```\n\nThere are also:\n\n- `select-only.js`, based on `pgbench --builtin select-only`.\n- `tpcb-like.js`, based on `pgbench --builtin tpcb-like`.\n\n## Cleanup\n\n```console\npgbench --initialize --init-steps d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebengeu%2Fsimple-supabase-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthebengeu%2Fsimple-supabase-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthebengeu%2Fsimple-supabase-benchmarks/lists"}