HttpArena
Comparisons

PHP web framework comparison: any two, head to head

workerman is quicker than swoole on 9 of the 16 profiles they both run, and behind on 7. On the HTTP/1.1 composite they score 707 and 576.

Pick any two of the 13 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/secworkerman req/secDeltaswoole p99workerman p99
Baseline5122,035,8562,844,479-28%3.31ms488us
Baseline4,0962,034,4362,848,413-29%8.16ms3.05ms
Pipelined5122,833,4443,637,410-22%8.99ms4.04ms
Pipelined4,0962,928,5853,936,670-26%45.20ms21.20ms
Short-lived5121,511,3511,967,016-23%3.59ms1.97ms
Short-lived4,0961,796,6372,215,363-19%9.69ms21.40ms
JSON4,096946,5171,039,295-9%16.40ms70.40ms
JSON TLS4,096776,894734,683+6%-5.54ms
Upload32279596-53%848.30ms306.60ms
Upload256343470-27%3.23s2.13s
Static1,0241,124,608292,011+285%-3.52ms
Static4,0961,111,770287,254+287%-16.02ms
Static6,8001,112,711285,448+290%-46.60ms
Async DB1,024243,187200,350+21%17.70ms24.00ms
API-425646,04539,709+16%27.50ms80.00ms
API-161,024131,689123,488+7%42.90ms105.50ms

Common comparisons

swoole vs workerman · swoole vs php-fpm · swoole vs hyperf · workerman vs php-fpm · workerman vs hyperf · php-fpm vs hyperf

Questions

Is swoole faster than workerman?

workerman is quicker than swoole on 9 of the 16 profiles they both run, and behind on 7. On the HTTP/1.1 composite they score 707 and 576. 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 18 of the 22 profiles they both run, and behind on 4. On the HTTP/1.1 composite they score 707 and 278. Both run on the same machine, in the same round, against the same profiles.

Is swoole faster than hyperf?

swoole is quicker than hyperf on 21 of the 21 profiles they both run. On the HTTP/1.1 composite they score 707 and 158. Both run on the same machine, in the same round, against the same profiles.

Is workerman faster than php-fpm?

workerman is quicker than php-fpm on 10 of the 15 profiles they both run, and behind on 5. On the HTTP/1.1 composite they score 576 and 278. 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 880. 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 · Other languages · Open the leaderboard