HttpArena
Comparisons

PHP web framework comparison: any two, head to head

swoole is ahead of hyperf on 14 of the 15 tests they both run, and behind on 1. On the HTTP/1.1 composite swoole scores 4557 and hyperf 1632.

Pick any two of the 5 PHP entries. Requests per second is the best of three runs and the delta is the first column against the second; every row is the same profile at the same connection count, on the same machine. The fixed-rate profiles offer every entry the same request rate, so they are compared on their score out of 100 instead, which is CPU cost and latency at that rate. What each profile measures.

ProfileConnsswoolehyperfDeltaswoole p99hyperf p99
Requests per second
Baseline4,0962,310,475387,711+496%9.83ms12.90ms
Pipelined4,0963,298,449466,686+607%44.50ms300.30ms
Short-lived4,0961,940,869294,276+560%10.00ms17.80ms
Async Delay32,00012,618303,908-96%5.00s121.20ms
JSON Comp4,096544,249242,307+125%35.00ms22.80ms
JSON Comp16,384539,064241,986+123%100.20ms47.10ms
JSON TLS4,096797,654199,611+300%111.38ms422.16ms
Async DB1,024249,83763,281+295%25.70ms34.90ms
Echo5123,056,601431,538+608%3.04ms1.64ms
Echo4,0963,354,954429,659+681%6.79ms10.50ms
Echo16,3843,168,894414,613+664%13.70ms13.90ms
Fixed-rate profiles: score out of 100
Latency-10K1,02473.839.8+85%117us366us
Latency-1M1,02469.52.8+2382%210us13.67s
Latency-500K/81,02421.21.3+1531%10.42s16.52s
8Gbit51275.235.7+111%142us1.16ms

Common comparisons

swoole vs hyperf · swoole vs php-fpm · swoole vs true-async-server · hyperf vs php-fpm · hyperf vs true-async-server · php-fpm vs true-async-server

Questions

Is swoole faster than hyperf?

swoole is ahead of hyperf on 14 of the 15 tests they both run, and behind on 1. On the HTTP/1.1 composite swoole scores 4557 and hyperf 1632. Both run on the same machine, in the same round, against the same profiles.

Is swoole faster than php-fpm?

swoole is ahead of php-fpm on 13 of the 16 tests they both run, and behind on 3. On the HTTP/1.1 composite swoole scores 4557 and php-fpm 1259. Both run on the same machine, in the same round, against the same profiles.

Is swoole faster than true-async-server?

swoole is ahead of true-async-server on 10 of the 16 tests they both run, and behind on 6. On the HTTP/1.1 composite swoole scores 4557 and true-async-server 4763. Both run on the same machine, in the same round, against the same profiles.

Is hyperf faster than php-fpm?

hyperf is ahead of php-fpm on 9 of the 12 tests they both run, and behind on 3. On the HTTP/1.1 composite hyperf scores 1632 and php-fpm 1259. Both run on the same machine, in the same round, against the same profiles.

Which PHP framework is fastest overall?

true-async-server holds the highest HTTP/1.1 composite of the PHP web frameworks, at 4763. The composite is throughput over the whole suite; if a service is one shape of workload, compare that profile on its own in the table above, because the order changes.

Every PHP entry

Results updated · PHP composite ranking · Compare across languages · Other languages · Open the leaderboard