{"id":34737821,"url":"https://github.com/rethab/rab","last_synced_at":"2026-05-25T11:33:39.685Z","repository":{"id":52611286,"uuid":"347696157","full_name":"rethab/rab","owner":"rethab","description":"apache bench in rust","archived":false,"fork":false,"pushed_at":"2021-04-23T13:49:29.000Z","size":76,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-03-27T17:19:49.243Z","etag":null,"topics":["performance","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/rethab.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}},"created_at":"2021-03-14T16:53:06.000Z","updated_at":"2021-03-27T11:10:12.000Z","dependencies_parsed_at":"2022-08-25T12:51:22.573Z","dependency_job_id":null,"html_url":"https://github.com/rethab/rab","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/rethab/rab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rethab%2Frab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rethab%2Frab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rethab%2Frab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rethab%2Frab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rethab","download_url":"https://codeload.github.com/rethab/rab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rethab%2Frab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33473704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T06:32:55.349Z","status":"ssl_error","status_checked_at":"2026-05-25T06:32:35.322Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["performance","rust"],"created_at":"2025-12-25T03:43:59.127Z","updated_at":"2026-05-25T11:33:39.676Z","avatar_url":"https://github.com/rethab.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![main](https://github.com/rethab/rab/actions/workflows/rust.yml/badge.svg)\n\n\n# RAB - Rust Apache Bench\n\nThe goal of this program is to become a drop-in replacement for [apache bench (ab)](https://en.wikipedia.org/wiki/ApacheBench).\n\n## Background\nThis program is based on [mio](https://docs.rs/mio), which is a library for non-blocking IO.\nOn linux, that would be [epoll](https://man7.org/linux/man-pages/man7/epoll.7.html).\n\nA notable difference with `ab`, and the reason I wrote this in the first place, is that `ab` does not start shooting at full throttle right away.\nInstead, it first \"tests\" the connection by awaiting the first request. Only once that succeeds, the remaining connections are started ([read more](https://mail-archives.apache.org/mod_mbox/httpd-users/202103.mbox/browser)).\n\n## Usage\nFire 10 requests over two connections:\n\n```bash\ncargo run -- -c 2 -n 10  \"google.com\"\n```\n\nShow Options:\n\n```bash\ncargo run -- --help\n```\n\n## Sample Output\n```bash\n\u003e cargo run --quiet -- -c 100 -n 10000  \"localhost:8080\"\nBenchmarking localhost (be patient)\n\nServer Software:\tnginx\nServer Hostname:\tlocalhost\nServer Port:\t\t8080\n\nConcurrency Level:\t100\nTime taken for tests:\t0.988 seconds\nComplete requests:\t10000\nFailed requests:\t0\nNon-2xx responses:\t0\n\nConnection Times (ms)\n\t\tmin  mean[+/-sd] median   max\nConnect:\t  7   57  59.5   15       139\n\n\nPercentage of the requests served within a certain time (ms)\n50%\t9\n66%\t10\n75%\t10\n80%\t10\n90%\t10\n95%\t12\n98%\t13\n99%\t13\n100%\t17 (longest request)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frethab%2Frab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frethab%2Frab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frethab%2Frab/lists"}