1
0
mirror of https://github.com/wg/wrk synced 2025-01-08 23:32:54 +08:00
Go to file
2013-04-10 20:53:30 +09:00
src switch to time as basis of benchmark duration 2013-04-10 20:53:30 +09:00
.gitignore set default request path to / 2013-02-16 11:38:37 +09:00
LICENSE first public release of wrk 2012-03-18 15:39:52 +09:00
Makefile stop after receiving SIGINT 2013-04-07 14:37:24 +09:00
NOTICE import updated ae from redis 2.6.8 2013-02-16 08:12:43 +09:00
README switch to time as basis of benchmark duration 2013-04-10 20:53:30 +09:00

wrk - a HTTP benchmarking tool

  wrk is a modern HTTP benchmarking tool capable of generating significant
  load when run on a single multi-core CPU. It combines a multithreaded
  design with scalable event notification systems such as epoll and kqueue.

Basic Usage

  wrk -t8 -c400 -d30 http://localhost:8080/index.html

  This runs a benchmark for 30 seconds, using 8 threads, and keeping
  400 HTTP connections open.

  Output:

  Running 30s test @ http://localhost:8080/index.html
    8 threads and 400 connections
    Thread Stats   Avg      Stdev     Max   +/- Stdev
      Latency   439.75us  350.49us   7.60ms   92.88%
      Req/Sec    61.13k     8.26k   72.00k    87.54%
    10000088 requests in 19.87s, 3.42GB read
  Requests/sec: 503396.23
  Transfer/sec:    176.16MB

Benchmarking Tips

  The machine running 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

  wrk contains code from a number of open source projects including the
  'ae' event loop from redis, the nginx/joyent/node.js 'http-parser' and
  the Tiny Mersenne Twister PRNG. Please consult the NOTICE file for
  licensing details.