Skip to content

Commit

Permalink
Added nginix test with out-of-the-box settings (no optimization)
Browse files Browse the repository at this point in the history
  • Loading branch information
csoma committed May 13, 2013
1 parent a23fa63 commit 5bcd349
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Observed performance after several runs on MacBook Pro laptop:

* Mongoose: 9,100 - 11,688 transactions/second (9700 t/s average), 1-2% error rate
* Poco: 7,120 - 9,473 transactions/second (8300 t/s average), no errors
* nginx: 7,142 - 11,843 transactions/second (8700 t/s average), no errors (4 workers, no optimization)

All tested using the same command: `siege -c 100 -r 90 -b http://127.0.0.1:9090/`

Expand Down Expand Up @@ -62,7 +63,7 @@ Steps:
* Run "start-XCode": `cd Cpp-SpeedTest; ./start-XCode`
* Select the desired target (Test-Poco, Test-Mongoose)
* Click Run
* Recommended: reduce socket time out to 1sec (see the "run-siege" file)
* Recommended: reduce socket time-out to 1sec (see the "run-siege" file)
* From command line start "run-siege"


Expand Down
8 changes: 7 additions & 1 deletion run-siege
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

if command -v siege > /dev/null
then
siege -c 100 -r 90 http://127.0.0.1:9090/
echo Socket timeout:
sysctl net.inet.tcp.msl
echo
command="siege -b -c 100 -r 90 --log=/dev/null $* http://127.0.0.1:9090/"
echo Command: $command
echo
$command
exit 0
else
echo 'Install and set up Siege'
Expand Down

0 comments on commit 5bcd349

Please sign in to comment.