Go Wrk

go-wrk - a HTTP benchmarking tool based in spirit on the excellent wrk tool (https://github.com/wg/wrk)
Alternatives To Go Wrk
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Wrk35,044
a month ago1February 27, 2018186otherC
Modern HTTP benchmarking tool
Locust22,13535696 days ago247July 25, 202317mitPython
Write scalable load tests in plain Python 🚗💨
Vegeta21,875653 days ago77July 24, 202360mitGo
HTTP load testing tool and library. It's over 9000!
Dubbo Go4,536452 days ago159July 17, 2023115apache-2.0Go
Go Implementation For Apache Dubbo .
Bombardier4,506
a month ago10October 15, 202015mitGo
Fast cross-platform HTTP benchmarking tool written in Go
Httprunner3,8053418 hours ago152July 23, 2023459apache-2.0Go
HttpRunner 是一个开源的 API/UI 测试工具,简单易用,功能强大,具有丰富的插件化机制和高度的可扩展能力。
Wrk23,524
a year ago84apache-2.0C
A constant throughput, correct latency recording variant of wrk
Tsung2,397
7 months ago1February 27, 2018123gpl-2.0Erlang
Tsung is a high-performance benchmark framework for various protocols including HTTP, XMPP, LDAP, etc.
Thor1,097443 years ago2April 07, 201342mitJavaScript
The WebSocket god of thunder
Go Wrk699113 months agoJune 04, 20213apache-2.0Go
go-wrk - a HTTP benchmarking tool based in spirit on the excellent wrk tool (https://github.com/wg/wrk)
Alternatives To Go Wrk
Select To Compare


Alternative Project Comparisons
Readme

go-wrk - an HTTP benchmarking tool

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.

Building

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)

Basic Usage

./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

Benchmarking Tips

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.

Acknowledgements

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.

Popular Benchmarking Projects
Popular Http Projects
Popular Software Performance Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Golang
Http
Concurrency
Benchmarking
Performance Testing