{"id":18795001,"url":"https://github.com/fbac/benchdb","last_synced_at":"2025-12-30T00:30:14.068Z","repository":{"id":91737551,"uuid":"531287830","full_name":"fbac/benchdb","owner":"fbac","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-08T12:52:37.000Z","size":3214,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-29T16:40:19.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fbac.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":"2022-08-31T23:06:16.000Z","updated_at":"2022-09-01T18:32:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"f969c8a3-9416-4128-af43-12d81d29fc8e","html_url":"https://github.com/fbac/benchdb","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/fbac%2Fbenchdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbac%2Fbenchdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbac%2Fbenchdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbac%2Fbenchdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fbac","download_url":"https://codeload.github.com/fbac/benchdb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239719468,"owners_count":19685947,"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-11-07T21:32:11.785Z","updated_at":"2025-12-30T00:30:14.026Z","avatar_url":"https://github.com/fbac.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# benchdb\n\n## Status\n\n[![go test](https://github.com/fbac/benchdb/actions/workflows/gotest.yml/badge.svg)](https://github.com/fbac/benchdb/actions/workflows/gotest.yml)\n[![go build](https://github.com/fbac/benchdb/actions/workflows/gobuild.yml/badge.svg)](https://github.com/fbac/benchdb/actions/workflows/gobuild.yml)\n\n## Build\n\n### Requirements\n\nThe following binaries must be installed in your system\n\n- psql\n- docker\n\n### Steps\n\nNOTE: During the db config process, the password will be asked via prompt.\n\nIt is \"postgres\" and has to be introduced manually.\n\n#### Manual procedure\n\n- Create, configure and populate database\n\n```bash\nmake db\n```\n\n- Create bin/benchdb\n\n```bash\nmake build\n```\n\n- Run bin/benchdb\n  Usage as follows\n\n```bash\n$ bin/benchdb -help\n  -csv-file string\n        path to query csv file (default \"data-file.csv\")\n  -max-threads int\n        max threads to process csv (default 1)\n\nExample:\nbin/benchdb -csv-file test/query.csv\n```\n\n#### Automatic procedure\n\n- Alternatively a test-run is available\n  This will set the db up and running, and run a query test suite\n\n```bash\nmake test-run\n```\n\n### Additional Makefile targets\n\n- Clean binary\n\n```bash\nmake clean\n```\n\n- Run test suite\n\n```bash\nmake test\n```\n\n- Run coverage report\n\n```bash\nmake coverage\n```\n\n- View docs in browser\n\n```bash\nmake docs\n```\n\n## Statistics gathered\n\n- number of queries run\n- total processing time of all queries (measure every query processing time)\n- max query time\n- min query time\n- avg query time\n- median query time\n\n## Technical debt\n\n- Divide packages instead of using only package main\n- Use real production-ready folder tree, inside internal/ and divided by pkg/ and cmd/\n- Create doc.go per package\n- Test coverage 100%\n- Use logrus to log by level\n- Modify timescaledb entrypoint to accept scripts from stdin\n- Introduce password automatically during workflow\n- Introduce proper sticky worker-pool\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbac%2Fbenchdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffbac%2Fbenchdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbac%2Fbenchdb/lists"}