{"id":24651864,"url":"https://github.com/wayjam/go-sql-benchmark","last_synced_at":"2025-03-20T22:32:33.502Z","repository":{"id":108561350,"uuid":"295192329","full_name":"wayjam/go-sql-benchmark","owner":"wayjam","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-06T08:28:38.000Z","size":20,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-04T21:36:54.179Z","etag":null,"topics":["benchmark","go","golang","sql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wayjam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-13T16:33:13.000Z","updated_at":"2024-06-19T08:07:30.394Z","dependencies_parsed_at":"2023-07-05T05:01:24.844Z","dependency_job_id":null,"html_url":"https://github.com/wayjam/go-sql-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayjam%2Fgo-sql-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayjam%2Fgo-sql-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayjam%2Fgo-sql-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayjam%2Fgo-sql-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wayjam","download_url":"https://codeload.github.com/wayjam/go-sql-benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244704385,"owners_count":20496297,"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":["benchmark","go","golang","sql"],"created_at":"2025-01-25T19:13:20.309Z","updated_at":"2025-03-20T22:32:33.482Z","avatar_url":"https://github.com/wayjam.png","language":"Go","readme":"# Golang SQL-libs Benchmark\n\n## Libs to test\n\nThis benchmark will use Postgres as a test database and [pgx](https://github.com/jackc/pgx) as the driver.\n\n-\tdatabase/sql\n-\t[sqlx](https://github.com/jmoiron/sqlx)\n-\t[pgx](https://github.com/jackc/pgx)\n-\t[gorm](https://github.com/go-gorm/gorm)\n-\t[squirrel](https://github.com/Masterminds/squirrel)\n\n## Run\n\n**Start a PostgreSQL Image**:\n\n```sh\ndocker run -d \\\n--name go-sql-benchmark-pg \\\n-p 5432:5432 \\\n-e POSTGRES_PASSWORD=postgres \\\n-e POSTGRES_DB=test \\\n-e POSTGRES_USERNAME=postgres \\\npostgres:12\n```\n\n**Start the test**\n\n```sh\nexport BENCHMARK_SQL_DSN=\"host=localhost user=postgres password=postgres dbname=test sslmode=disable\"\n# run\ngo test  -v ./... -bench=. -benchmem\n```\n\n## Report\n\nUsing [cob](https://github.com/knqyf263/cob) to run benchmark on Github Actions.\n\nFind the reference report at: \u003chttps://github.com/wayjam/go-sql-benchmark/actions?query=branch%3Amaster+is%3Asuccess\u003e\n\n## TODO\n\n- [x] CI and auto-genereated report\n- [ ] prepare statement benchmark\n- [ ] [ent](https://github.com/facebook/ent) benchmark\n- [ ] add more code comments\n- [ ] comparison between libs.\n\n## Contribute\n\nFeel free to make contributiton to this project.\n\n### Donate\n\n\u003ca href=\"https://www.buymeacoffee.com/wayjam\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Cola\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\n","funding_links":["https://www.buymeacoffee.com/wayjam"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayjam%2Fgo-sql-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwayjam%2Fgo-sql-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayjam%2Fgo-sql-benchmark/lists"}