HttpArena
Frameworks

swoole

Flagship · PHP · tuned configuration · completeness 1/4

Swoole is an event-driven, asynchronous, coroutine-based concurrency library with high performance for PHP.

Achievements

🥈 1 Silver · 🥉 1 Bronze. 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.

MedalAwardFieldRank
🥈 SilverWithin its languagePHP · HTTP/1.12 of 5
🥉 BronzeWithin its languagePHP · HTTP/23 of 4

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.

FamilyRankComposite
HTTP/1.111 of 935040
HTTP/217 of 28537
WebSocket12 of 25881

Every result

Alpha Round, 23 runs. Requests per second is the best of three; latency, CPU and memory come from that run.

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0962,310,4751.77ms9.83ms6548.5%200MiB
ConnectionPipelined4,0963,298,44919.84ms44.50ms6503.7%202MiB
ConnectionShort-lived4,0961,940,8692.10ms10.00ms6572.8%245MiB
ConcurrencyAsync Delay32,00012,6182.20s5.00s77.0%749MiB
EfficiencyLatency-10K1,0249,98276.9us117.0us34.3%367MiB
EfficiencyLatency-1M1,024997,438120.5us210.0us4055.9%364MiB
EfficiencyLatency-500K/81,024331,0212829169.8us10416128.0us810.9%356MiB
WorkloadJSON Comp4,096544,2497.49ms35.00ms6509.5%277MiB
WorkloadJSON Comp16,384539,06430.10ms100.20ms6428.1%438MiB
WorkloadJSON TLS4,096797,6545.27ms111.38ms6526.4%370MiB
Workload8Gbit51249,356106.7us142.0us282.9%439MiB
WorkloadStatic TLS1,024415,5242.79ms54.98ms6617.5%312MiB
DatabaseAsync DB1,024249,8373.51ms25.70ms4565.9%256MiB
HTTP/2Baseline2561,778,40114.65ms81.09ms6663.7%208MiB
HTTP/2Baseline1,0241,760,87254.07ms313.28ms6445.0%244MiB
HTTP/2Static256325,92526.65ms182.69ms6532.0%496MiB
HTTP/2Static1,024327,38296.29ms568.41ms6560.8%917MiB
WebSocketEcho5123,056,601166us3.04ms6657.4%184.5MiB
WebSocketEcho4,0963,354,9541.22ms6.79ms6338.1%194.5MiB
WebSocketEcho16,3843,168,8945.04ms13.70ms6468.8%346.9MiB
WebSocketEcho Pipelined5123,750,2072.18ms8.47ms6428.3%180MiB
WebSocketEcho Pipelined4,0963,778,34217.33ms37.30ms6364.5%196MiB
WebSocketEcho Pipelined16,3843,557,59672.32ms136.10ms6262.9%354MiB

Compared with

The PHP entries around swoole on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs swoole
true-async-server5290+5%head to head
hyperf1778-65%head to head
php-fpm1356-73%head to head

Compare swoole with any PHP entry · Compare swoole with any entry, in any language · Every PHP entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry