{"id":21032501,"url":"https://github.com/majkinetor/postgrest-test","last_synced_at":"2026-04-21T08:37:57.225Z","repository":{"id":76786874,"uuid":"279254843","full_name":"majkinetor/postgrest-test","owner":"majkinetor","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-28T10:45:03.000Z","size":274,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-29T02:17:29.608Z","etag":null,"topics":["performance","postgresql","postgrest","rest-api","test"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/majkinetor.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":"2020-07-13T09:17:58.000Z","updated_at":"2022-09-25T20:11:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c46a3ed-fe57-4945-8599-682f324ffeb6","html_url":"https://github.com/majkinetor/postgrest-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/majkinetor/postgrest-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majkinetor%2Fpostgrest-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majkinetor%2Fpostgrest-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majkinetor%2Fpostgrest-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majkinetor%2Fpostgrest-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/majkinetor","download_url":"https://codeload.github.com/majkinetor/postgrest-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majkinetor%2Fpostgrest-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32084394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["performance","postgresql","postgrest","rest-api","test"],"created_at":"2024-11-19T12:43:25.875Z","updated_at":"2026-04-21T08:37:57.205Z","avatar_url":"https://github.com/majkinetor.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postgrest Windows test\n\nThis repository contains basic setup and test for [Postgrest](https://github.com/PostgREST/postgrest). All dependencies are automatically installed, database is automatically created so you can start testing and tweaking in minutes.\n\n## Usage\n\nThe repository uses embedded [Invoke-Build](https://github.com/nightroman/Invoke-Build) to run tasks.\n\nTo get list of all tasks run with `?`:\n\n```\n\u003e ./Invoke-Build.ps1 ?\n\nName           Jobs Synopsis\n----           ---- --------\nDeps           {}   Install postgresql14, postgrerest 10, and latest superbenchmarker via chocolatey\nRecreateDb     {}   Recreate database using db.sql. Pass aTodosCount to specify number of todo items to seed (default 100K)\nRun            {}   Run postgrest backend\nRunSandboxed   {}   Run inside Windows Sandbox\nTodos          {}   Get 50 todo items with random offset\nTodo           {}   Get single todo item with random id\nPerfTestBulk   {}   Start perf test with limit set to 50 todo items and random offset\nPerfTestBulk2  {}   Start perf test with limit set to 50 todo items and random offset (alternative)\nPerfTestSingle {}   Start perf test with single random todo item\n```\n\n## Quick start\n\n1. Open administrative shell in repository root and type: `Set-Alias ib $pwd\\Invoke-Build.ps1`\n2. Install local dependencies only on first run: `ib Deps`\u003cbr\u003e\nThis will install postgresql (with password `test`), postgrest \u0026 superbenchmarker via chocolatey. If you use existing installation specify password with `$Env:PGPASSWORD`.\n2. Create database with: `ib RecreateDb`.\u003cbr\u003e\nModify number of created todo items via `-aTodosCount` argument - by default 100K records are randomly created.\n1. Start backend with `ib Run`.\n2. Test with `ib Todo` (gets single random todo item) or `ib Todos` (gets bulk todo's)\n\n\n## Run in Windows Sandbox\n\nRun everything in [Windows Sandbox](https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview) using the following command:\n\n```ps1\nib RunSandboxed\n```\n\nwhich executes the following script inside VM:\n\n```ps1\ncd postgrest-test\nSet-Alias ib $pwd\\Invoke-Build.ps1\nib Deps, RecreateDb, Run, Todo, Todos\n```\n\n![screenshot](screenshot.png)\n\n## Notes\n\n- [postgrest-benchmark](https://github.com/steve-chavez/postgrest-benchmark)\u003cbr\u003e\nAnother benchmark, using NixOs and K6\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajkinetor%2Fpostgrest-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmajkinetor%2Fpostgrest-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajkinetor%2Fpostgrest-test/lists"}