php-fpm
Flagship · PHP · engine: nginx · standard configuration · completeness 1/4
Plain PHP with PHP-FPM & nginx.
Achievements
🥇 1 Gold · 🥈 3 Silver. Top three of a field, taken in this entry's own league: the family composite, the same composite among entries written in the same language, and each test profile it is scored on. Every field is the one the badges publish, so a medal and a badge always say the same thing. How medals are awarded.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Test profile | HTTP/2 · Static | 1 of 16 |
| 🥈 Silver | Family composite | Composite · HTTP/3 | 2 of 7 |
| 🥈 Silver | Within its language | PHP · HTTP/2 | 2 of 4 |
| 🥈 Silver | Test profile | HTTP/3 · Static | 2 of 7 |
Composite rank
Each profile of a family is worth 100 to the entry that leads it, and the composite is the sum over the family, less 2.5% for each of routing, middleware, request and response the entry does not do for you - its completeness factor, which the WebSocket and gRPC families do not carry. The field is this entry's own league: engines and reverse proxies are scored apart from frameworks. How it works.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 54 of 71 | 1356 |
| HTTP/2 | 8 of 18 | 746 |
| HTTP/3 | 2 of 7 | 879 |
Every result
Alpha Round, 18 runs. Requests per second is the best of three; latency, CPU and memory come from that run.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 267,441 | 15.25ms | 19.40ms | 6202.1% | 3.9GiB |
| Connection | Pipelined | 4,096 | 284,705 | 224.80ms | 242.60ms | 6149.0% | 3.9GiB |
| Connection | Short-lived | 4,096 | 259,403 | 15.74ms | 20.40ms | 6221.8% | 3.9GiB |
| Concurrency | Async Delay | 32,000 | 24,825 | 1.20s | 1.28s | 614.7% | 4.3GiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 207.2us | 297.0us | 176.4% | 3.7GiB |
| Efficiency | Latency-1M | 1,024 | 270,083 | 7275581.6us | 14405632.0us | 6333.3% | 3.7GiB |
| Efficiency | Latency-500K/8 | 1,024 | 41,940 | 9113423.2us | 18112512.0us | 812.1% | 3.7GiB |
| Workload | JSON Comp | 4,096 | 184,789 | 22.02ms | 26.50ms | 6232.5% | 3.9GiB |
| Workload | JSON Comp | 16,384 | 180,355 | 89.21ms | 99.20ms | 6448.4% | 4.1GiB |
| Workload | JSON TLS | 4,096 | 221,725 | 18.38ms | 70.89ms | 6533.7% | 3.9GiB |
| Workload | 8Gbit | 512 | 49,355 | 308.2us | 500.0us | 1474.2% | 3.8GiB |
| Database | Async DB | 1,024 | 95,580 | 10.33ms | 18.30ms | 4460.8% | 3.9GiB |
| HTTP/2 | Baseline | 256 | 246,315 | 102.53ms | 102.53ms | 6173.3% | 4.3GiB |
| HTTP/2 | Baseline | 1,024 | 294,864 | 143.45ms | 143.45ms | 2169.8% | 4.8GiB |
| HTTP/2 | Static | 256 | 708,017 | 42.70ms | 42.70ms | 6481.6% | 4.0GiB |
| HTTP/2 | Static | 1,024 | 730,481 | 132.18ms | 132.18ms | 6594.4% | 4.8GiB |
| HTTP/3 | Baseline | 64 | 273,758 | 15.33ms | 28.65ms | 6527.1% | 4.0GiB |
| HTTP/3 | Static | 64 | 252,236 | 17.08ms | 49.83ms | 5594.0% | 3.9GiB |
Compared with
The PHP entries around php-fpm on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.
| Entry | Composite | vs php-fpm | |
|---|---|---|---|
| true-async-server | 5290 | +290% | head to head |
| swoole | 5040 | +272% | head to head |
| hyperf | 1778 | +31% | head to head |
| symfony-spawn-tas | 1213 | -11% | head to head |
Compare php-fpm with any PHP entry · Compare php-fpm with any entry, in any language · Every PHP entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry