File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,14 +37,17 @@ curl -H'User-Agent: test-ua' -H'Foo-Header: foo-bar' http://localhost:8080/heade
3737echo " \nStress Test keep-alive:"
3838ab -k -c 200 -n 100000 http://127.0.0.1:8080/ > keep-alive.bench
3939cat keep-alive.bench | grep Complete
40+ cat large-file.bench | grep Non-2xx
4041cat keep-alive.bench 1>&2
4142echo " \nStress Test close:"
4243ab -c 20 -n 1000 http://127.0.0.1:8080/ > connection-close.bench
4344cat connection-close.bench | grep Complete
45+ cat large-file.bench | grep Non-2xx
4446cat connection-close.bench 1>&2
4547echo " \nStress Test large body:"
46- dd if=/dev/urandom of=test.dat bs=52428800 count=1 2> /dev/null
48+ dd if=/dev/urandom of=test.dat bs=8388608 count=1 2> /dev/null
4749ab -c 2 -n 10 -p test.dat http://127.0.0.1:8080/echo > large-file.bench
4850cat large-file.bench | grep Complete
51+ cat large-file.bench | grep Non-2xx
4952cat large-file.bench 1>&2
5053rm * .dat * .bench
You can’t perform that action at this time.
0 commit comments