Skip to content

Instantly share code, notes, and snippets.

@kellabyte
Last active August 29, 2015 14:01
Show Gist options
  • Save kellabyte/31d87971774b7fede841 to your computer and use it in GitHub Desktop.
Save kellabyte/31d87971774b7fede841 to your computer and use it in GitHub Desktop.

#Setup

  • Benchmark client: Linux, gigabit LAN, running Wrk benchmark tool.
  • Haywire server: Windows 7, Intel Core i7 930. Haywire running in Release mode.

Haywire is running in single threaded mode (using a IOCP pool for IO) with Haywire event-loop fan-out disabled (broken right now). So this means Haywire won't use all the available cores yet.

#Native results

  • CPU: Peak 5%
  • RAM: 2.5MB
./wrk -d10s -t4 -c4 --latency --pipeline 32 http://server:8000
Running 10s test @ http://server:8000
  4 threads and 4 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.90ms   38.93us   3.34ms   96.39%
    Req/Sec    17.72k     1.33k   20.78k    61.94%
  Latency Distribution
     50%    1.89ms
     75%    1.93ms
     90%    1.94ms
     99%    1.94ms
  669941 requests in 10.00s, 104.78MB read
Requests/sec:  66,992.71
Transfer/sec:     10.48MB

./wrk -d10s -t16 -c16 --latency http://server:8000
Running 10s test @ http://server:8000
  16 threads and 16 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   449.43us   65.09us 700.00us   65.33%
    Req/Sec     2.31k   166.05     3.11k    71.08%
  Latency Distribution
     50%  438.00us
     75%  499.00us
     90%  543.00us
     99%  596.00us
  351707 requests in 10.00s, 55.01MB read
Requests/sec:  35,178.95
Transfer/sec:      5.50MB

#Managed results

  • CPU: Peak 12%
  • RAM: 138MB (I have a leak somewhere :P)
./wrk -d10s -t4 -c4 --latency --pipeline 32 http://server:8001
Running 10s test @ http://192.168.0.15:8001
  4 threads and 4 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.00ms   85.62us   4.03ms   81.22%
    Req/Sec    16.31k   610.92    17.78k    84.57%
  Latency Distribution
     50%    1.99ms
     75%    2.04ms
     90%    2.04ms
     99%    2.29ms
  634165 requests in 10.00s, 105.23MB read
Requests/sec:  63,416.72
Transfer/sec:     10.52MB

./wrk -d10s -t16 -c16 --latency http://server:8001
Running 10s test @ http://server:8001
  16 threads and 16 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   635.73us   44.90us   1.69ms   66.23%
    Req/Sec     1.66k    86.01     2.00k    80.81%
  Latency Distribution
     50%  639.00us
     75%  647.00us
     90%  690.00us
     99%  737.00us
  247968 requests in 10.00s, 41.15MB read
Requests/sec:  24,801.60
Transfer/sec:      4.12MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment