Skip to content

Instantly share code, notes, and snippets.

@2matzzz
Last active January 9, 2018 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2matzzz/45e2c8a02858850275df to your computer and use it in GitHub Desktop.
Save 2matzzz/45e2c8a02858850275df to your computer and use it in GitHub Desktop.
Load testing h2o on Raspberry Pi 2

Load testing h2o on Raspberry Pi 2

H2O config

$ cat /etc/h2o/h2o.conf
listen: 8080
http1-request-timeout: 5
max-connections: 20480
num-threads: 1
hosts:
  localhost:
    paths:
      /:
        file.dir: /home/pi/www

Sample content

$ curl -D - http://192.168.0.6:8080/1
HTTP/1.1 200 OK
Date: Sat, 11 Apr 2015 17:32:41 GMT
Server: h2o/1.1.1
Connection: keep-alive
Content-Length: 1
content-type: application/octet-stream
last-modified: Sat, 11 Apr 2015 17:18:33 GMT
etag: "55295769-1"

Loadtest from MBA

$ wrk -t1 -c100 -d60 http://192.168.0.6:8080/1
Running 1m test @ http://192.168.0.6:8080/1
  1 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    10.62ms    1.90ms  27.32ms   94.48%
    Req/Sec     9.44k     1.26k   10.20k    91.17%
  563883 requests in 1.00m, 121.00MB read
Requests/sec:   9396.30
Transfer/sec:      2.02MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment