hyperf
Flagship · PHP · engine: swoole · standard configuration · completeness 4/4
A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.
Composite rank
Each profile of a family is worth its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - 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.
Every result
Alpha Round, 13 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 | 387,711 | 8.41ms | 12.90ms | 3407.8% | 1.9GiB |
| Connection | Pipelined | 4,096 | 466,686 | 117.55ms | 300.30ms | 3578.6% | 1.9GiB |
| Connection | Short-lived | 4,096 | 294,276 | 10.41ms | 17.80ms | 3202.2% | 1.9GiB |
| Concurrency | Async Delay | 32,000 | 303,908 | 91.82ms | 121.20ms | 3320.3% | 3.3GiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 191.4us | 366.0us | 137.6% | 1.9GiB |
| Efficiency | Latency-1M | 1,024 | 307,541 | 6909497.1us | 13668352.0us | 3300.3% | 1.9GiB |
| Workload | JSON Comp | 4,096 | 242,307 | 13.16ms | 22.80ms | 4964.9% | 1.9GiB |
| Workload | JSON Comp | 16,384 | 241,986 | 27.59ms | 47.10ms | 4760.3% | 1.9GiB |
| Workload | JSON TLS | 4,096 | 199,611 | 24.85ms | 422.16ms | 3049.5% | 2.1GiB |
| Workload | 8Gbit | 512 | 48,988 | 401.8us | 1155.0us | 674.3% | 1.9GiB |
| WebSocket | Echo | 512 | 431,538 | 1.19ms | 1.64ms | 1658.0% | 1.8GiB |
| WebSocket | Echo | 4,096 | 429,659 | 8.23ms | 10.50ms | 1564.7% | 1.9GiB |
| WebSocket | Echo | 16,384 | 414,613 | 10.30ms | 13.90ms | 1480.3% | 2.0GiB |
Compared with
The PHP web frameworks around hyperf on the HTTP/1.1 composite, and the one leading them. Entries of other leagues are left out: a composite does not carry from one league to another. The last column shows every profile side by side.
| Entry | Composite | vs hyperf | |
|---|---|---|---|
| true-async-server | 3442 | +208% | head to head |
| swoole | 3175 | +184% | head to head |
| php-fpm | 848 | -24% | head to head |
| symfony-spawn-tas | 694 | -38% | head to head |
Compare hyperf with any PHP entry · Compare hyperf with any entry, in any language · Every PHP entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry