PHP is a widely-used scripting language uniquely suited to creating dynamic, Web-based content. It is the most rapidly expanding scripting language in use on the Internet due to its simplicity, accessibility, wide number of available modules, and large number of easily available applications.
The scalability of Web Server combined with the versatility of the PHP engine provides a high-performing and versatile web deployment platform for dynamic content. These tests used PHP version 5.1.6.
The tests were performed in two modes:
An out-of-process fastcgi-php application invoked using the FastCGI plug-in.
In-process PHP NSAPI plug-in.
The test executed the phpinfo() query. The goal was to saturate the cores on the server and find out the respective throughput and response time.
The following table shows the Web Server tuning settings used for the FastCGI plug-in test
Table 6–12 Tuning Settings for FastCGI Plug-in Test
The following table shows the results of the PHP with FastCGI test.
Table 6–13 PHP Scalability with Fast CGI
Number of Cores |
Average Throughput (ops/sec) |
Average Response Time (ms) |
---|---|---|
2 |
876 |
114 |
4 |
1706 |
117 |
6 |
2475 |
121 |
The following is a graphical representation of PHP scalability with Fast CGI.
The following table shows the Web Server tuning settings for the PHP with NSAPI test.
Table 6–14 NSAPI Plug-in Configuration for PHP
The following table shows the results of the PHP with NSAPI test.
Table 6–15 PHP Scalability with NSAPI
Number of Cores |
Average Throughput (ops/sec) |
Average Response Time (ms) |
---|---|---|
2 |
950 |
105 |
4 |
1846 |
108 |
6 |
2600 |
115 |
The following is a graphical representation of PHP scalability with NSAPI.