{"id":13471780,"url":"https://github.com/tsliwowicz/go-wrk","last_synced_at":"2025-03-26T14:32:30.504Z","repository":{"id":37735037,"uuid":"10390526","full_name":"tsliwowicz/go-wrk","owner":"tsliwowicz","description":"go-wrk - a HTTP benchmarking tool based in spirit on the excellent wrk tool (https://github.com/wg/wrk)","archived":false,"fork":false,"pushed_at":"2024-08-18T10:34:02.000Z","size":68,"stargazers_count":930,"open_issues_count":6,"forks_count":117,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-11-17T12:43:58.544Z","etag":null,"topics":["concurrency","go","http-benchmarking","performance-testing"],"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/tsliwowicz.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":"2013-05-30T19:53:18.000Z","updated_at":"2024-11-17T02:08:14.000Z","dependencies_parsed_at":"2024-08-18T11:41:25.066Z","dependency_job_id":"edd31d83-bacb-4691-abf6-11f6db4ac1b0","html_url":"https://github.com/tsliwowicz/go-wrk","commit_stats":{"total_commits":69,"total_committers":15,"mean_commits":4.6,"dds":"0.46376811594202894","last_synced_commit":"ae30aa2b4b86b470438af58e00ae57ebf1cb1d67"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsliwowicz%2Fgo-wrk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsliwowicz%2Fgo-wrk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsliwowicz%2Fgo-wrk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsliwowicz%2Fgo-wrk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsliwowicz","download_url":"https://codeload.github.com/tsliwowicz/go-wrk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245671011,"owners_count":20653468,"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":["concurrency","go","http-benchmarking","performance-testing"],"created_at":"2024-07-31T16:00:49.216Z","updated_at":"2025-03-26T14:32:30.204Z","avatar_url":"https://github.com/tsliwowicz.png","language":"Go","funding_links":[],"categories":["开源类库","Go","Open source library"],"sub_categories":["HTTP压测","HTTP Print Test"],"readme":"go-wrk - an HTTP benchmarking tool\n==================================\n\ngo-wrk is a modern HTTP benchmarking tool capable of generating significant load when run on a single multi-core CPU. It builds on go language go routines and scheduler for behind the scenes async IO and concurrency.\n\nIt was created mostly to examine go language (http://golang.org) performance and verbosity compared to C (the language wrk was written in. See - \u003chttps://github.com/wg/wrk\u003e).  \nIt turns out that it is just as good in terms of throughput! And with a lot less code.  \n\nThe majority of go-wrk is the product of one afternoon, and its quality is comparable to wrk.\n\nBuilding\n--------\n\n    go install github.com/tsliwowicz/go-wrk@latest\n\nThis will download and compile go-wrk. \n   \nCommand line parameters (./go-wrk -help)  \n\t\n       Usage: go-wrk \u003coptions\u003e \u003curl\u003e\n       Options:\n        -H       Header to add to each request (you can define multiple -H flags) (Default )\n        -M       HTTP method (Default GET)\n        -T       Socket/request timeout in ms (Default 1000)\n        -body    request body string or @filename (Default )\n        -c       Number of goroutines to use (concurrent connections) (Default 10)\n        -ca      CA file to verify peer against (SSL/TLS) (Default )\n        -cert    CA certificate file to verify peer against (SSL/TLS) (Default )\n        -d       Duration of test in seconds (Default 10)\n        -f       Playback file name (Default \u003cempty\u003e)\n        -help    Print help (Default false)\n        -host    Host Header (Default )\n        -http    Use HTTP/2 (Default true)\n        -key     Private key file name (SSL/TLS (Default )\n        -no-c    Disable Compression - Prevents sending the \"Accept-Encoding: gzip\" header (Default false)\n        -no-ka   Disable KeepAlive - prevents re-use of TCP connections between different HTTP requests (Default false)\n        -no-vr   Skip verifying SSL certificate of the server (Default false)\n        -redir   Allow Redirects (Default false)\n        -v       Print version details (Default false)\n\nBasic Usage\n-----------\n\n    ./go-wrk -c 2048 -d 10 http://localhost:8080/plaintext\n\nThis runs a benchmark for 10 seconds, using 2048 go routines (connections)\n\nOutput:\n\n    Running 10s test @ http://localhost:8080/plaintext\n        2048 goroutine(s) running concurrently\n    439977 requests in 10.012950719s, 52.45MB read\n    Requests/sec:\t\t43940.79\n    Transfer/sec:\t\t5.24MB\n    Fastest Request:\t98µs\n    Avg Req Time:\t\t46.608ms\n    Slowest Request:\t398.431ms\n    Number of Errors:\t0\n    Error Counts:\t\tmap[]\n    10%:\t\t\t    164µs\n    50%:\t\t\t    2.382ms\n    75%:\t\t\t    3.83ms\n    99%:\t\t\t    5.403ms\n    99.9%:\t\t\t    5.488ms\n    99.9999%:\t\t    5.5ms\n    99.99999%:\t\t    5.5ms\n    stddev:\t\t\t    29.744ms\n\n\nBenchmarking Tips\n-----------------\n\n  The machine running go-wrk must have a sufficient number of ephemeral ports\n  available and closed sockets should be recycled quickly. To handle the\n  initial connection burst the server's listen(2) backlog should be greater\n  than the number of concurrent connections being tested.\n\nAcknowledgements\n----------------\n\n  golang is awesome. I did not need anything but this to create go-wrk.  \n  I fully credit the wrk project (https://github.com/wg/wrk) for the inspiration and even parts of this text.  \n  I also used similar command line arguments format and output format.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsliwowicz%2Fgo-wrk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsliwowicz%2Fgo-wrk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsliwowicz%2Fgo-wrk/lists"}