nitely / nim-hyperx

Pure Nim http2 client and server 🖖
MIT License
23 stars 0 forks source link

add h2load test to CI #4

Closed nitely closed 1 month ago

nitely commented 2 months ago
$ sudo apt-get install libevent-dev libc-ares-dev 
$ tar xf nghttp2-X.Y.Z.tar.bz2
$ cd nghttp2-X.Y.Z
$ ./configure --enable-app
$ make
$ ./h2load -n100000 -c100 -m10 https://127.0.0.1:4443 | tee /dev/tty | grep "100000 2xx"

output sample, just check for 100000 succeeded

finished in 1.75s, 57244.26 req/s, 1.80MB/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: 3.15MB (3303800) total, 294.34KB (301400) headers (space savings 93.72%), 1.14MB (1200000) data
                     min         max         mean         sd        +/- sd
time for request:      436us     41.08ms      8.29ms      2.23ms    95.80%
time for connect:    37.18ms    138.18ms     95.07ms     28.40ms    57.00%
time to 1st byte:   144.53ms    165.76ms    156.08ms      5.50ms    62.00%
req/s           :     572.76      582.70      577.69        1.86    67.00%

https://nghttp2.org/documentation/h2load-howto.html

nitely commented 1 month ago

done