{"id":14008217,"url":"https://github.com/siadat/benchttp","last_synced_at":"2025-03-16T18:31:34.986Z","repository":{"id":139300143,"uuid":"65555563","full_name":"siadat/benchttp","owner":"siadat","description":"HTTP server benchmarking tool","archived":false,"fork":false,"pushed_at":"2023-01-13T23:14:38.000Z","size":25,"stargazers_count":117,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T00:15:20.398Z","etag":null,"topics":["benchmarking","cli","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siadat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-08-12T13:33:51.000Z","updated_at":"2025-02-11T21:32:46.000Z","dependencies_parsed_at":"2023-12-10T12:47:33.678Z","dependency_job_id":null,"html_url":"https://github.com/siadat/benchttp","commit_stats":{"total_commits":44,"total_committers":1,"mean_commits":44.0,"dds":0.0,"last_synced_commit":"ffc13957e7b10407a7c2c91099709311393c1bbd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siadat%2Fbenchttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siadat%2Fbenchttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siadat%2Fbenchttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siadat%2Fbenchttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siadat","download_url":"https://codeload.github.com/siadat/benchttp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826788,"owners_count":20354220,"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":["benchmarking","cli","go"],"created_at":"2024-08-10T11:01:25.661Z","updated_at":"2025-03-16T18:31:34.332Z","avatar_url":"https://github.com/siadat.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Benchttp\n\n[![GoDoc](https://godoc.org/github.com/siadat/benchttp/benchttp?status.svg)](https://godoc.org/github.com/siadat/benchttp/benchttp)\n[![Build Status](https://travis-ci.org/siadat/benchttp.svg?branch=master)](https://travis-ci.org/siadat/benchttp)\n\n\nBenchttp implements the most commonly used features of ApacheBench.\n\nBenchmarks are limited with either `-n number-of-requests` or `-d total-duration`.\n\n## Install\n\n    go install github.com/siadat/benchttp/cmd/benchttp@master\n\n## Usage\n\nBenchmark 1000 requests\n\n    benchttp -n 1000 http://localhost:8080\n\nBenchmark 1000 requests with maximum 10 concurrently running requests\n\n    benchttp -n 1000 -c 10 http://localhost:8080\n\nBenchmark server for 1s\n\n    benchttp -d 1s http://localhost:8080\n\nBenchmark server for 1s with max 10 concurrently running requests\n\n    benchttp -d 1s -c 10 http://localhost:8080\n\n## Output\n\n     Duration: 2.238s\n     Requests: 10000 (4468.7/s)\n    Responses: 10000 (4468.7/s)\n        [200]: 10000\n\n## Options\n\n* `-d duration`, e.g., `-d 10s`\n* `-n number-of-requests`, e.g., `-n 1000`\n* `-c max-concurrent-requests`, e.g. `-c 100`\n* `-u admin:pass` supply basic authentication\n* `-H \"key: value\"` custom header\n* `-i` do HEAD requests instead of GET\n\n## Contribute\n\nIssues and PRs are welcome.\n\n## Thanks\n\nThanks @Deleplace for testing and reviewing the code.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiadat%2Fbenchttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiadat%2Fbenchttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiadat%2Fbenchttp/lists"}