BenchmarkPHP

PHP Hello World Benchmark

Comparing web server response time to requests for small PHP scripts

Published benchmark · interactive view

Summary

Choose a metric to compare the results.

HIGHEST RESULT1.5x10 · Yes
Nginx / FPM0 — 1.5x
10 · No
1.4x
10 · Yes
1.5x
100 · No
1.4x
100 · Yes
1.5x
Values reflect the original test setup.View source and methodology ↗
Concurrent UsersKeep-AliveNginx / FPMApache / FPMApache / EA4 Default
10No1.4x3.4x127.4x
10Yes1.5x3.6x192.6x
100No1.4x3.4x137.5x
100Yes1.5x4.1x197.5x
Methodology

Test Environment

Figures as published by LiteSpeed Technologies. Results depend on hardware, configuration and workload — test with your own application for the most relevant numbers.

  • LiteSpeed Enterprise 5.1.13 Nginx 1.10.3 Apache 2.4.25 PHP 7.1.2 cPanel 62
  • Intel Xeon X5660 Single Core @ 2.80GHz 2GB RAM 50GB HDD CloudLinux 7.3
  • Intel Xeon E5-1620 Dual Core @ 3.60GHz 2GB RAM CentOS 6.8 with OpenVZ kernel 2.6.32-042stab116.1 Intel X540 10GBASE-T on board NIC
  • Netgear XS708E-100NES 8-ports 10G switch
  • We used a simple PHP hello world script, 4.0K in size. We used such a tiny script to avoid saturating the network connection and to show raw speed differences between the different setups.
  • Part of the difference in speeds is due to different server APIs. LiteSpeed Enterprise used LSAPI, PHP-FPM uses FCGI, EA4 Default uses CGI.
  • Opcode caching was used for all setups.
  • The benchmark simulated serving 10000 requests to 10 and 100 users.
  • The test was performed over a 10GBps network connection to make sure network bandwidth did not become a bottleneck.
Ready when you are

Switch to LiteSpeed
in minutes.

Choose your edition, activate over SSH, and start serving faster. Transparent pricing, no setup fees, engineers on call 24/7.

Instant delivery15-day trialFree migrationSupport 24/7