{"id":15817426,"url":"https://github.com/nikoksr/dbench","last_synced_at":"2025-04-01T04:58:16.814Z","repository":{"id":206207439,"uuid":"716074408","full_name":"nikoksr/dbench","owner":"nikoksr","description":"A wrapper around pgbench that provides additional feature like result persistence and plotting.","archived":false,"fork":false,"pushed_at":"2023-12-10T22:05:50.000Z","size":223,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-06T05:41:28.110Z","etag":null,"topics":[],"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/nikoksr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-08T12:04:39.000Z","updated_at":"2023-11-08T14:53:57.000Z","dependencies_parsed_at":"2024-10-26T11:23:08.508Z","dependency_job_id":"d3247d81-7004-4b3a-83ef-bc27b14d89ea","html_url":"https://github.com/nikoksr/dbench","commit_stats":null,"previous_names":["nikoksr/dbench"],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoksr%2Fdbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoksr%2Fdbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoksr%2Fdbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikoksr%2Fdbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikoksr","download_url":"https://codeload.github.com/nikoksr/dbench/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586051,"owners_count":20801026,"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":[],"created_at":"2024-10-05T05:41:28.031Z","updated_at":"2025-04-01T04:58:16.794Z","avatar_url":"https://github.com/nikoksr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u0026nbsp;\n\u003ch1\u003edbench\u003c/h1\u003e\n\u003cp\u003e\u003ci\u003eA nifty wrapper around pgbench that comes with plotting and result management.\u003c/i\u003e\u003c/p\u003e\n\n\u0026nbsp;\n\n[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\u0026style=flat)](https://pkg.go.dev/github.com/nikoksr/dbench)\n\u003c/div\u003e\n\n\u0026nbsp;\n\n## About\n\n`dbench` is a convenient wrapper around `pgbench` that enhances your benchmarking experience with features like result\nmanagement and plotting. It's designed to make it easy to run, manage, and visualize your PostgreSQL benchmarks.\n\n## Installation\n\n\u003e Important: While the releases offer binaries for multiple platforms and architectures, only Linux is tested. If you\n\u003e are using a different OS, I do not guarantee that dbench will work as expected.\n\nDownload one of the [releases](https://github.com/nikoksr/dbench/releases) for your system, or install using the\nprovided [install script](scripts/install.sh):\n\n```sh\ncurl -fsSL https://tinyurl.com/install-dbench | bash\n```\n\n## Prerequisites\n\n`dbench` requires `pgbench` and `gnuplot` to be installed on your system. You can check if they are installed and their\nversions using the `dbench doctor` command.\n\n## Usage\n\n\u003e Note: To enhance security, dbench does not offer a password flag. Instead, you have two options: either set the\n\u003e PGPASSWORD environment variable, or input your password when prompted. dbench will subsequently use the PGPASSWORD\n\u003e environment variable in its sub-processes.\n\nTo use `dbench`, you first need to initialize a PostgreSQL Database. Remember to adjust the connection parameters to\nyour needs.\n\n```bash\ndbench init --db-name=postgres --db-user=postgres --db-host=localhost --db-port=5432 --scale 10\n```\n\nThen, you can run your first array of benchmarks.\n\n```bash\ndbench run --db-name=postgres --db-user=postgres --db-host=localhost --db-port=5432\n```\n\nAfterward, you can plot the results.\n\n```bash\ndbench plot \u003cid\u003e\n```\n\nTo see all available commands and flags, run `dbench --help`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikoksr%2Fdbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikoksr%2Fdbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikoksr%2Fdbench/lists"}