All Projects → tsliwowicz → Go Wrk

tsliwowicz / Go Wrk

Licence: apache-2.0
go-wrk - a HTTP benchmarking tool based in spirit on the excellent wrk tool (https://github.com/wg/wrk)

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Go Wrk

Rxgo
Reactive Extensions for the Go language.
Stars: ✭ 3,907 (+828.03%)
Mutual labels:  concurrency
Rxjava2 Jdbc
RxJava2 integration with JDBC including Non-blocking Connection Pools
Stars: ✭ 360 (-14.49%)
Mutual labels:  concurrency
Post Me
📩 Use web Workers and other Windows through a simple Promise API
Stars: ✭ 398 (-5.46%)
Mutual labels:  concurrency
Machine
Machine is a zero dependency library for highly concurrent Go applications. It is inspired by errgroup.Group with extra bells & whistles
Stars: ✭ 346 (-17.81%)
Mutual labels:  concurrency
Crossbeam
Tools for concurrent programming in Rust
Stars: ✭ 4,180 (+892.87%)
Mutual labels:  concurrency
Jmeter Maven Plugin
The JMeter Maven Plugin
Stars: ✭ 362 (-14.01%)
Mutual labels:  performance-testing
Libconcurrent
©️ Concurrent Programming Library (Coroutine) for C11
Stars: ✭ 335 (-20.43%)
Mutual labels:  concurrency
Thread Pool
Thread pool implementation using c++11 threads
Stars: ✭ 417 (-0.95%)
Mutual labels:  concurrency
Nbomber
Modern and flexible load testing framework for Pull and Push scenarios, designed to test any system regardless a protocol (HTTP/WebSockets/AMQP etc) or a semantic model (Pull/Push).
Stars: ✭ 354 (-15.91%)
Mutual labels:  performance-testing
Akka.net
Port of Akka actors for .NET
Stars: ✭ 4,024 (+855.82%)
Mutual labels:  concurrency
Concurrencpp
Modern concurrency for C++. Tasks, executors, timers and C++20 coroutines to rule them all
Stars: ✭ 340 (-19.24%)
Mutual labels:  concurrency
Cloudi
A Cloud at the lowest level!
Stars: ✭ 352 (-16.39%)
Mutual labels:  concurrency
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+4521.85%)
Mutual labels:  concurrency
N plus one control
RSpec and Minitest matchers to prevent N+1 queries problem
Stars: ✭ 345 (-18.05%)
Mutual labels:  performance-testing
Concurrency Logger
Log HTTP requests/responses separately, visualize their concurrency and report logs/errors in context of a request.
Stars: ✭ 400 (-4.99%)
Mutual labels:  concurrency
Golang step by step
Golang入门教程的文章、示例代码,喜欢就star,订阅就watch
Stars: ✭ 339 (-19.48%)
Mutual labels:  concurrency
Sidekiq Throttled
Concurrency and threshold throttling for Sidekiq.
Stars: ✭ 359 (-14.73%)
Mutual labels:  concurrency
Throat
Throttle a collection of promise returning functions
Stars: ✭ 419 (-0.48%)
Mutual labels:  concurrency
Awesome Jmeter
A collection of resources covering different aspects of JMeter usage.
Stars: ✭ 413 (-1.9%)
Mutual labels:  performance-testing
Goben
goben is a golang tool to measure TCP/UDP transport layer throughput between hosts.
Stars: ✭ 391 (-7.13%)
Mutual labels:  performance-testing

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 - https://github.com/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 get github.com/tsliwowicz/go-wrk  

This will download and compile go-wrk. The binary will be placed under your $GOPATH/bin directory

Command line parameters (./go-wrk -help)

   Usage: go-wrk <options> <url>
   Options:
    -H 	 header line, joined with ';' (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)
    -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 (https://github.com/wg/wrk) for the inspiration and even parts of this text.
I also used similar command line arguments format and output format.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].