Skip to content

Instantly share code, notes, and snippets.

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 v0112358/05f0547e05128d87d37552b2ad8738c1 to your computer and use it in GitHub Desktop.
Save v0112358/05f0547e05128d87d37552b2ad8738c1 to your computer and use it in GitHub Desktop.
h2load-nginx-static-file-with-local-and-nfs.md

Local storage

[root@srvsg2 ~]# h2load -n 100000 -c 100 -t 1 -T 5 -m 10 -H 'Accept-Encoding: gzip,deflate' https://xxx.svc-linode.xxx.com/wp-content/uploads/2015/11/logo-1.png
starting benchmark...
spawning thread #0: 100 total client(s). 100000 total requests
TLS Protocol: TLSv1.2
Cipher: ECDHE-RSA-AES256-GCM-SHA384
Server Temp Key: ECDH P-256 256 bits
Application protocol: h2
progress: 10% done
progress: 20% done
progress: 30% done
progress: 40% done
progress: 50% done
progress: 60% done
progress: 70% done
progress: 80% done
progress: 90% done
progress: 100% done

finished in 97.55s, 1025.09 req/s, 117.31MB/s
requests: 100000 total, 100000 started, 100000 done, 100000 succeeded, 0 failed, 0 errored, 0 timeout
status codes: 100000 2xx, 0 3xx, 0 4xx, 0 5xx
traffic: 11.18GB (12000006600) total, 19.07MB (20000000) headers (space savings 29.33%), 11.14GB (11965600000) data
                     min         max         mean         sd        +/- sd
time for request:     9.40ms       5.26s    862.69ms    487.52ms    71.62%
time for connect:   152.60ms       5.12s    530.40ms       1.03s    91.00%
time to 1st byte:   196.27ms       5.50s    674.18ms       1.13s    90.00%
req/s           :      10.25       15.73       11.61        1.17    75.00%

NFS storage with cachefilesd

[root@srvsg2 ~]# h2load -n 100000 -c 100 -t 1 -T 5 -m 10 -H 'Accept-Encoding: gzip,deflate' https://xxx.svc-linode.prod.xxx.com/wp-content/uploads/2015/11/logo-1.png
starting benchmark...
spawning thread #0: 100 total client(s). 100000 total requests
TLS Protocol: TLSv1.2
Cipher: ECDHE-RSA-AES256-GCM-SHA384
Server Temp Key: ECDH P-256 256 bits
Application protocol: h2
progress: 10% done
progress: 20% done
progress: 30% done
progress: 40% done
progress: 50% done
progress: 60% done
progress: 70% done
progress: 80% done
progress: 90% done

finished in 871.92s, 114.47 req/s, 13.10MB/s
requests: 100000 total, 100000 started, 99805 done, 99805 succeeded, 195 failed, 195 errored, 195 timeout
status codes: 99810 2xx, 0 3xx, 0 4xx, 0 5xx
traffic: 11.15GB (11976902333) total, 19.04MB (19962000) headers (space savings 29.33%), 11.12GB (11942561920) data
                     min         max         mean         sd        +/- sd
time for request:    35.20ms      39.56s       8.58s       2.03s    93.23%
time for connect:   117.55ms      44.46s       2.22s       7.77s    92.96%
time to 1st byte:   191.02ms      53.13s       7.00s       9.03s    92.96%
req/s           :       1.15        1.17        1.16        0.01    59.15%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment