{"id":20643880,"url":"https://github.com/adjust/go-wrk","last_synced_at":"2025-05-16T19:02:14.533Z","repository":{"id":8447136,"uuid":"10040120","full_name":"adjust/go-wrk","owner":"adjust","description":"a small heavy duty http/https benchmark tool written in go","archived":false,"fork":false,"pushed_at":"2021-09-18T07:09:42.000Z","size":1055,"stargazers_count":845,"open_issues_count":15,"forks_count":107,"subscribers_count":78,"default_branch":"master","last_synced_at":"2025-04-12T17:46:48.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/adjust.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}},"created_at":"2013-05-13T20:07:54.000Z","updated_at":"2025-04-11T10:06:20.000Z","dependencies_parsed_at":"2022-07-18T05:21:43.472Z","dependency_job_id":null,"html_url":"https://github.com/adjust/go-wrk","commit_stats":null,"previous_names":["adeven/go-wrk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fgo-wrk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fgo-wrk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fgo-wrk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fgo-wrk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adjust","download_url":"https://codeload.github.com/adjust/go-wrk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254592367,"owners_count":22097010,"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":[],"created_at":"2024-11-16T16:14:10.908Z","updated_at":"2025-05-16T19:02:14.489Z","avatar_url":"https://github.com/adjust.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# go-wrk 0.1\n\nthis is a small http benchmark utility similar to https://github.com/wg/wrk but written in go.\nit has a couple of features absent from wrk\n \n  - https support (quite expensive on the client side with disabled keep alives)\n  - http POST support\n  - more statistics\n  - leaner codebase\n\n## status\n\nthis tool is in early stage development but stable enough to run larger benchmark sets.\nmissing features will be added as needed, pull requests are welcome ;)\n\n## building\n\nyou need go 1.0+ (1.1 is suggested for performance)\n\n```\ngit clone git://github.com/adeven/go-wrk.git\ncd go-wrk\ngo build\n```\n\n## usage\n\nbasic usage is quite simple:\n```\ngo-wrk [flags] url\n```\n\nwith the flags being\n```\n    -H=\"User-Agent: go-wrk 0.1 bechmark\\nContent-Type: text/html;\": the http headers sent separated by '\\n'\n    -c=100: the max numbers of connections used\n    -k=true: if keep-alives are disabled\n    -i=false: if TLS security checks are disabled\n    -m=\"GET\": the http request method\n    -n=1000: the total number of calls processed\n    -t=1: the numbers of threads used\n    -b=\"\" the http request body\n    -s=\"\" if specified, it counts how often the searched string s is contained in the responses\n```\nfor example\n```\ngo-wrk -c=400 -t=8 -n=100000 http://localhost:8080/index.html\n```\n\n\n## example output\n\n ```\n==========================BENCHMARK==========================\nURL:\t\t\t\thttp://localhost:8509/startup?app_id=479516143\u0026mac=123456789\n\nUsed Connections:\t\t\t100\nUsed Threads:\t\t\t\t1\nTotal number of calls:\t\t100000\n\n============================TIMES============================\nTotal time passed:\t\t\t19.47s\nAvg time per request:\t\t19.45ms\nRequests per second:\t\t5135.02\nMedian time per request:\t11.30ms\n99th percentile time:\t\t65.23ms\nSlowest time for request:\t1698.00ms\n\n==========================RESPONSES==========================\n20X responses:\t\t100000\t(100%)\n30X responses:\t\t0\t(0%)\n40X responses:\t\t0\t(0%)\n50X responses:\t\t0\t(0%)\nmatchResponses:     100000  (100.00%)\n```\n\n## License\n\nThis Software is licensed under the MIT License.\n\nCopyright (c) 2013 adeven GmbH,\nhttp://www.adeven.com\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadjust%2Fgo-wrk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadjust%2Fgo-wrk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadjust%2Fgo-wrk/lists"}