HttpArena
Comparisons

PHP web framework comparison: any two, head to head

swoole is quicker than hyperf on 13 of the 15 profiles they both run, and behind on 1. On the HTTP/1.1 composite they score 5037 and 1777.

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. What each profile measures.

ProfileConnsswoole req/sechyperf req/secDeltaswoole p99hyperf p99
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
Latency-10K1,0249,9829,982+0%117.0us366.0us
Latency-1M1,024997,438307,541+224%210.0us13668352.0us
Latency-500K/81,024331,02180,607+311%10416128.0us16519168.0us
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
8Gbit51249,35648,988+1%142.0us1155.0us
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

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 quicker than hyperf on 13 of the 15 profiles they both run, and behind on 1. On the HTTP/1.1 composite they score 5037 and 1777. Both run on the same machine, in the same round, against the same profiles.

Is swoole faster than php-fpm?

swoole is quicker than php-fpm on 12 of the 16 profiles they both run, and behind on 3. On the HTTP/1.1 composite they score 5037 and 1356. Both run on the same machine, in the same round, against the same profiles.

Is swoole faster than true-async-server?

swoole is quicker than true-async-server on 8 of the 16 profiles they both run, and behind on 8. On the HTTP/1.1 composite they score 5037 and 5288. Both run on the same machine, in the same round, against the same profiles.

Is hyperf faster than php-fpm?

hyperf is quicker than php-fpm on 8 of the 12 profiles they both run, and behind on 3. On the HTTP/1.1 composite they score 1777 and 1356. 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 entries, at 5288. 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