Having configured Nginx it is now time to test it.
I will use three tools to perform the tests: Autobench, httperf and OpenWebLoad. The principle behind them is to generate a massive amount of HTTP requests.
– is a simple Perl script for automating the process of benchmarking a web server (or for conducting a comparative test of two different web servers). The script is a wrapper around httperf. Autobench runs httperf a number of times against each host, increasing the number of requested connections per second on each iteration, and extracts the significant data from the httperf output, delivering a CSV or TSV format file which can be imported directly into a spreadsheet for analysis/graphing. For more details please refer to this website
explanation of some of the switches used:
* low rate – connections per second at the beginning of the test
*high_rate – connections per second at the end of the test
*num_call – how many requests should be sent per connection
* num_conn – total amount of connections
TSV file can be open in Excel. So based on the graph it would appear that Raspberry Pi can take approx 1000 connections per second without a loss! Not too bad for something worth so little.