{"id":22729047,"url":"https://github.com/giovanniberti/dbench","last_synced_at":"2026-05-08T03:39:48.176Z","repository":{"id":57616588,"uuid":"77603068","full_name":"giovanniberti/dbench","owner":"giovanniberti","description":"dbench is a simple database query benchmarker","archived":false,"fork":false,"pushed_at":"2017-10-16T07:56:48.000Z","size":54,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-01T10:59:12.657Z","etag":null,"topics":["benchmark","database-query-benchmarker","mysql","performance","postgres","postgresql","profiler","query","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/giovanniberti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-29T10:05:44.000Z","updated_at":"2021-09-27T07:57:26.000Z","dependencies_parsed_at":"2022-08-27T08:22:25.424Z","dependency_job_id":null,"html_url":"https://github.com/giovanniberti/dbench","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/giovanniberti/dbench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giovanniberti%2Fdbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giovanniberti%2Fdbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giovanniberti%2Fdbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giovanniberti%2Fdbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giovanniberti","download_url":"https://codeload.github.com/giovanniberti/dbench/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giovanniberti%2Fdbench/sbom","scorecard":{"id":427506,"data":{"date":"2025-08-11","repo":{"name":"github.com/giovanniberti/dbench","commit":"3263f5ed5a25979f9d9954c49cc96e44708a97ae"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2021-0139","Warn: Project is vulnerable to: RUSTSEC-2020-0159","Warn: Project is vulnerable to: RUSTSEC-2024-0421 / GHSA-h97m-ww89-6jmq","Warn: Project is vulnerable to: RUSTSEC-2022-0013 / GHSA-m5pq-gvj9-9vr8","Warn: Project is vulnerable to: RUSTSEC-2022-0004 / GHSA-2226-4v3c-cff8","Warn: Project is vulnerable to: RUSTSEC-2025-0025","Warn: Project is vulnerable to: RUSTSEC-2020-0163","Warn: Project is vulnerable to: RUSTSEC-2022-0006 / GHSA-9hpw-r23r-xgm5","Warn: Project is vulnerable to: RUSTSEC-2020-0071 / GHSA-wcg3-cvx6-7396"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T02:33:00.543Z","repository_id":57616588,"created_at":"2025-08-19T02:33:00.543Z","updated_at":"2025-08-19T02:33:00.543Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281826656,"owners_count":26568315,"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","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["benchmark","database-query-benchmarker","mysql","performance","postgres","postgresql","profiler","query","rust"],"created_at":"2024-12-10T17:19:22.340Z","updated_at":"2025-10-30T15:04:22.723Z","avatar_url":"https://github.com/giovanniberti.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dbench\n**dbench** is a simple database query benchmarker written in Rust.\nIt currently supports MySQL and Postgres. See [Planned features](#planned-features) for more info.\n\n## Table of contents\n - [Install](#install)\n - [Usage](#usage)\n - [Recognized options and flags](#recognized-options-and-flags)\n - [Planned features](#planned-features)\n - [Contribute](#contribute)\n - [License](#license)\n\n## Install\n1. Install cargo for your OS/distribution (https://crates.io/install)\n2. Run `cargo install dbench`\n\n## Usage\n* Run a query \n```\n$ dbench -d foo_database -H localhost -u db_user -p -q \"select * from bar_table\"\n```\n\n\n* Run a query with parametrized URL\n```\n$ dbench mysql://db_user:db_password@localhost/foo_database -q \"select * from bar_table\"\n```\n\n* Run 10 queries\n```\n$ dbench mysql://db_user:db_password@localhost/foo_database -q \"select * from bar_table\" -n 10\n```\n\n* Read help\n```\n$ dbench --help\n```\n\n## Example output\n\n```\n$ dbench mysql://me:hunter2@localhost/swagdb -q \"select * from referents\" -n 100 -j 8\n\nNumber of requests: 100\nLatency per request (mean): 0.1507 ms\nReq/ms: 6.635\nTotal time: 15.0714 ms\nPercentage of queries computed within a certain time:\n  50%\t0.0730 ms\n  66%\t0.0758 ms\n  75%\t0.0813 ms\n  80%\t0.1322 ms\n  90%\t0.1559 ms\n  95%\t0.2756 ms\n  98%\t0.3342 ms\n  99%\t5.8745 ms\n 100%\t5.8745 ms (longest request)\n\n```\n\n## Recognized options and flags\n| Short version | Long version | Accepts parameter |                                Description                              |\n|:-------------:|:------------:|:-----------------:|:------------------------------------------------------------------------|\n| -d            | --database   | yes               | Database name to which the query is sent                                |\n| -H            | --host       | yes               | The host where the database resides                                     |\n| -q            | --query      | yes               | The query to be executed by the database                                |\n| -j            | --jobs       | yes               | Number of concurrent jobs                                               |\n| -u            | --user       | yes               | The username used for authenticating with the database                  |\n| -p            | --password   | no                | Flag to indicate whether to use a password or not (asked interactively) |\n| -V            | --version    | no                | Prints version information                                              |\n| -h            | --help       | no                | Prints help information                                                 |\n| -v            | N/A          | no                | Raises verbosity level                                                  |\n\n## Planned features\n- ~~PostgreSQL support~~ (Done!)\n- Other DBs support (Mongo?)\n- More measurements, such as:\n  - ~~Req/s (mean)~~ (Done!)\n  - ~~Time per request (mean)~~ (Done!)\n  - ~~Total time~~ (Done!)\n  - ~~Percentage with time (as `ab`)~~ (Done!)\n- ~~Concurrent requests support~~ (Done!)\n\n## Contribute\nSee [CONTRIBUTING.md](../master/CONTRIBUTING.md)\n\n## License\n     \n[MIT License (c) Giovanni Berti](../master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiovanniberti%2Fdbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiovanniberti%2Fdbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiovanniberti%2Fdbench/lists"}