benchmarks

:checkered_flag: Web Servers and Applications Benchmarks

View on GitHub

Benchmarks

The following setups provide some performance overview of different technologies for web developers.

Apache Benchmark Tool

For measuring performance the Apache Benchmark tool is used with the following configuration:

ab -c 100 -n 100000 -k http://localhost/

Servers

Nginx

Nginx can pass PHP scripts to PHP-FPM via the TCP/IP socket or the Unix Domain sockets. If you’re running Nginx and PHP-FPM on the same machine the Unix Domain sockets will perform better compared to TCP/IP.

Disclaimer

Above benchmarks have been run on Intel® Core™ i7-2670QM CPU @ 2.20GHz × 8 with 16GB RAM.

The following benchmarks are intended to provide an overview how different setups behave and to learn how to optimize certain technology for performance.

Running the benchmarks on different hardware also gets different results. Better workstation/server have different results because of better CPU, network, and other hardware, but the relative comparison shouldn’t be different from one hardware to another.

Some setups might run into issues on Atom processors due to lacky processor support.