{"id":36493372,"url":"https://github.com/thiagonache/bench","last_synced_at":"2026-01-12T01:58:16.937Z","repository":{"id":37441346,"uuid":"476698403","full_name":"thiagonache/bench","owner":"thiagonache","description":"An HTTP load tester and compare results tool.","archived":false,"fork":false,"pushed_at":"2024-07-23T13:12:00.000Z","size":137,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-23T15:21:34.385Z","etag":null,"topics":["benchmark","command-line-tool","go","golang"],"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/thiagonache.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-04-01T11:47:05.000Z","updated_at":"2024-07-23T13:11:59.000Z","dependencies_parsed_at":"2024-01-09T17:01:44.911Z","dependency_job_id":"3c008588-4574-4361-8c9f-327fda4b3378","html_url":"https://github.com/thiagonache/bench","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/thiagonache/bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagonache%2Fbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagonache%2Fbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagonache%2Fbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagonache%2Fbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiagonache","download_url":"https://codeload.github.com/thiagonache/bench/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagonache%2Fbench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["benchmark","command-line-tool","go","golang"],"created_at":"2026-01-12T01:58:15.541Z","updated_at":"2026-01-12T01:58:16.926Z","avatar_url":"https://github.com/thiagonache.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bench\n\n[![Go](https://github.com/thiagonache/bench/actions/workflows/go.yml/badge.svg)](https://github.com/thiagonache/bench/actions/workflows/go.yml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/thiagonache/bench.svg)](https://pkg.go.dev/github.com/thiagonache/bench)\n[![Go Report Card](https://goreportcard.com/badge/github.com/thiagonache/bench)](https://goreportcard.com/report/github.com/thiagonache/bench)\n\nAn HTTP load tester and compare results tool.\n\n## Import\n\n```go\nimport \"github.com/thiagonache/bench\"\n```\n\n## Install binary\n\n```shell\n$ go install github.com/thiagonache/bench/cmd/simplebench@latest\n$\n```\n## CLI\n\nThe CLI supports two sub commands, run or cmp.\n\n### Run\n\nRuns http benchmark and outputs the results to standard output.\nIt supports `any` HTTP method and several other configs.\n```text\nUsage of simplebench:\n  -b string\n        http body for the requests\n  -c int\n        number of concurrent requests (users) to run benchmark (default 1)\n  -g    generate graphs\n  -m string\n        http method for the requests (default \"GET\")\n  -r int\n        number of requests to be performed in the benchmark (default 1)\n  -t string\n        requests content type header (default \"text/html\")\n  -u string\n        url to run benchmark\n```\n\nExamples:\n\n- GET\n\n  ```bash\n  $ simplebench run -r 20 -c 2 -u https://httpbin.org\n  Site: https://httpbin.org\n  Requests: 20\n  Successes: 20\n  Failures: 0\n  P50(ms): 150.359\n  P90(ms): 431.346\n  P99(ms): 761.359\n  ```\n\n- POST\n\n  ```bash\n    $ simplebench run -m POST -t \"application/json\" -b '{\"data\":\"abc\"}' -r 20 -c 2 -u https://httpbin.org/post\n    Site: https://httpbin.org/post\n    Requests: 20\n    Successes: 20\n    Failures: 0\n    P50(ms): 143.970\n    P90(ms): 395.692\n    P99(ms): 574.325\n  ```\n\n- DELETE\n\n  ```bash\n    $ simplebench run -m DELETE -r 20 -c 2 -u https://httpbin.org/delete\n    Site: https://httpbin.org/delete\n    Requests: 20\n    Successes: 20\n    Failures: 0\n    P50(ms): 145.996\n    P90(ms): 596.712\n    P99(ms): 640.887\n  ```\n\n### Cmp\n\nIt compares two executions and provide the difference.\n\n```bash\n$ simplebench run -r 10 -u https://httpbin.org/delay/2 \u003e stats1.txt\n$ simplebench run -r 10 -u https://httpbin.org/delay/1 \u003e stats2.txt\n$ simplebench cmp stats{1,2}.txt\nSite: https://httpbin.org/delay/2\nMetric              Old                 New                 Delta               Percentage\nP50(ms)             2144.024            1146.673            -997.351            -46.52\nP90(ms)             2221.990            1362.111            -859.879            -38.70\nP99(ms)             2599.690            1613.528            -986.162            -37.93\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagonache%2Fbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagonache%2Fbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagonache%2Fbench/lists"}