Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Wrk | 35,044 | a month ago | 1 | February 27, 2018 | 186 | other | C | |||
Modern HTTP benchmarking tool | ||||||||||
Locust | 22,135 | 35 | 69 | 6 days ago | 247 | July 25, 2023 | 17 | mit | Python | |
Write scalable load tests in plain Python 🚗💨 | ||||||||||
Vegeta | 21,875 | 65 | 3 days ago | 77 | July 24, 2023 | 60 | mit | Go | ||
HTTP load testing tool and library. It's over 9000! | ||||||||||
Dubbo Go | 4,536 | 45 | 2 days ago | 159 | July 17, 2023 | 115 | apache-2.0 | Go | ||
Go Implementation For Apache Dubbo . | ||||||||||
Bombardier | 4,506 | a month ago | 10 | October 15, 2020 | 15 | mit | Go | |||
Fast cross-platform HTTP benchmarking tool written in Go | ||||||||||
Httprunner | 3,805 | 3 | 4 | 18 hours ago | 152 | July 23, 2023 | 459 | apache-2.0 | Go | |
HttpRunner 是一个开源的 API/UI 测试工具,简单易用,功能强大,具有丰富的插件化机制和高度的可扩展能力。 | ||||||||||
Wrk2 | 3,524 | a year ago | 84 | apache-2.0 | C | |||||
A constant throughput, correct latency recording variant of wrk | ||||||||||
Tsung | 2,397 | 7 months ago | 1 | February 27, 2018 | 123 | gpl-2.0 | Erlang | |||
Tsung is a high-performance benchmark framework for various protocols including HTTP, XMPP, LDAP, etc. | ||||||||||
Thor | 1,097 | 4 | 4 | 3 years ago | 2 | April 07, 2013 | 42 | mit | JavaScript | |
The WebSocket god of thunder | ||||||||||
Go Wrk | 699 | 1 | 1 | 3 months ago | June 04, 2021 | 3 | apache-2.0 | Go | ||
go-wrk - a HTTP benchmarking tool based in spirit on the excellent wrk tool (https://github.com/wg/wrk) |
go-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.
It was created mostly to examine go language (http://golang.org) performance and verbosity compared to C (the language wrk was written in. See - wg/wrk).
It turns out that it is just as good in terms of throughput! And with a lot less code.
The majority of go-wrk is the product of one afternoon, and its quality is comparable to wrk.
go install github.com/tsliwowicz/go-wrk@latest
This will download and compile go-wrk.
Command line parameters (./go-wrk -help)
Usage: go-wrk <options> <url>
Options:
-H Header to add to each request (you can define multiple -H flags) (Default )
-M HTTP method (Default GET)
-T Socket/request timeout in ms (Default 1000)
-body request body string or @filename (Default )
-c Number of goroutines to use (concurrent connections) (Default 10)
-ca CA file to verify peer against (SSL/TLS) (Default )
-cert CA certificate file to verify peer against (SSL/TLS) (Default )
-d Duration of test in seconds (Default 10)
-f Playback file name (Default <empty>)
-help Print help (Default false)
-host Host Header (Default )
-http Use HTTP/2 (Default true)
-key Private key file name (SSL/TLS (Default )
-no-c Disable Compression - Prevents sending the "Accept-Encoding: gzip" header (Default false)
-no-ka Disable KeepAlive - prevents re-use of TCP connections between different HTTP requests (Default false)
-no-vr Skip verifying SSL certificate of the server (Default false)
-redir Allow Redirects (Default false)
-v Print version details (Default false)
./go-wrk -c 80 -d 5 http://192.168.1.118:8080/json
This runs a benchmark for 5 seconds, using 80 go routines (connections)
Output:
Running 10s test @ http://192.168.1.118:8080/json
80 goroutine(s) running concurrently
142470 requests in 4.949028953s, 19.57MB read
Requests/sec: 28787.47
Transfer/sec: 3.95MB
Avg Req Time: 0.0347ms
Fastest Request: 0.0340ms
Slowest Request: 0.0421ms
Number of Errors: 0
The machine running go-wrk must have a sufficient number of ephemeral ports available and closed sockets should be recycled quickly. To handle the initial connection burst the server's listen(2) backlog should be greater than the number of concurrent connections being tested.
golang is awesome. I did not need anything but this to create go-wrk.
I fully credit the wrk project (wg/wrk) for the inspiration and even parts of this text.
I also used similar command line arguments format and output format.