{"id":21165998,"url":"https://github.com/peterdee/postgresql-test","last_synced_at":"2026-05-14T05:32:19.472Z","repository":{"id":42128519,"uuid":"276945386","full_name":"peterdee/postgresql-test","owner":"peterdee","description":"PostgreSQL performance testing with Node \u0026 Sequelize","archived":false,"fork":false,"pushed_at":"2022-04-12T11:15:17.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-01-21T10:11:15.897Z","etag":null,"topics":["nodejs","postgresql","sequelize","sql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/peterdee.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}},"created_at":"2020-07-03T16:39:15.000Z","updated_at":"2020-07-06T17:00:01.000Z","dependencies_parsed_at":"2022-08-12T07:20:55.444Z","dependency_job_id":null,"html_url":"https://github.com/peterdee/postgresql-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdee%2Fpostgresql-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdee%2Fpostgresql-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdee%2Fpostgresql-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdee%2Fpostgresql-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterdee","download_url":"https://codeload.github.com/peterdee/postgresql-test/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243615336,"owners_count":20319726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["nodejs","postgresql","sequelize","sql"],"created_at":"2024-11-20T14:47:51.578Z","updated_at":"2026-05-14T05:32:19.443Z","avatar_url":"https://github.com/peterdee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PostgreSQL performance testing with Node \u0026 Sequelize\n\nTesting some PostgreSQL capabilities:\n- comparing raw SQL query speeds with Sequelize\n- estimating query speeds for the big databases (millions of table records)\n\n### Deploy\n\n```shell script\ngit clone https://github.com/peterdee/postgresql-test\ncd ./postgresql-test\nnvm use 14\nnpm i\n```\n\n### Environment\n\nThe `.env` file is required, see the [.env.example](.env.example) file for more information about the required environemnt variables\n\n### Run\n\n```shell script\nnpm start\n```\n\n### Results\n\nTesting locally on a MacBook Pro 15-inch (2018) with 16GB RAM\n\n```text\ndatabase ready\n\ncount users: 74 ms, 2082174 users\ncount users [RAW]: 69 ms, 2082174 users\n\nload single record without any condition: 3 ms\nload single record without any condition [RAW]: 1 ms\n\nload multiple records without any condition: 186 ms\nload multiple records without any condition [RAW]: 182 ms\n\nload single record with conditions: 4 ms\nload single record with conditions [RAW]: 0 ms\n\nload multiple records with conditions: 230 ms, found 500 results\nload multiple records with conditions [RAW]: 231 ms, found 500 results\n\nload single record with JOIN without any condition [RAW]: 717 ms\n\nload single record with JOIN with conditions [RAW]: 437 ms\n\nload multiple records with JOIN without any condition [RAW]: 1726 ms\n\nload multiple records with JOIN with conditions [RAW]: 440 ms\n\nload multiple records with JOIN without any condition (with CTE) [RAW]: 373 ms\n\nload multiple records with JOIN with conditions (with CTE) [RAW]: 221 ms\n```\n\nUsing `CTE` provides a significant performance boost\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdee%2Fpostgresql-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterdee%2Fpostgresql-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdee%2Fpostgresql-test/lists"}