HttpArena
Frameworks

true-async-server

Emerging · PHP · tuned configuration · completeness 2/4

Native PHP HTTP server built on the TrueAsync coroutine engine. Each connection runs as a cooperative coroutine; one OS thread per CPU listens via SO_REUSEPORT inside a single PHP process. PDO connection pool, OPcache JIT, no Caddy / FrankenPHP / FastCGI in front.

Achievements

🥇 3 Gold · 🥈 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
🥇 GoldWithin its languagePHP · HTTP/1.11 of 5
🥇 GoldWithin its languagePHP · HTTP/21 of 4
🥇 GoldTest profileHTTP/2 · Static1 of 27
🥈 SilverTest profileEfficiency · Latency-10K2 of 94
🥉 BronzeFamily compositeComposite · HTTP/23 of 29

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.110 of 945288
HTTP/23 of 292530

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0962,260,2541.81ms2.53ms5871.2%220MiB
ConnectionPipelined4,0962,295,05628.56ms48.20ms5949.5%245MiB
ConnectionShort-lived4,0961,798,9302.26ms33.70ms6213.4%165MiB
ConcurrencyAsync Delay32,000906,43735.04ms55.10ms2894.5%2.2GiB
EfficiencyLatency-10K1,0249,98379.9us120.0us36.0%179MiB
EfficiencyLatency-1M1,024997,421169.6us376.0us4286.3%194MiB
EfficiencyLatency-500K/81,024304,6763804930.4us9515008.0us769.0%98MiB
WorkloadJSON Comp4,096458,1098.95ms20.20ms6227.8%254MiB
WorkloadJSON Comp16,384440,48736.93ms66.30ms6499.7%487MiB
WorkloadJSON TLS4,096782,3805.35ms-6236.9%627MiB
Workload8Gbit51249,363108.6us148.0us324.1%260MiB
DatabaseAsync DB1,024249,8943.56ms12.50ms4917.3%248MiB
DatabaseFortunes1,02488,5847.68ms28.80ms6331.0%224MiB
HTTP/2Baseline2564,969,4315.40ms-7904.6%225MiB
HTTP/2Baseline1,0243,288,74127.37ms-7207.5%505MiB
HTTP/2Static2561,035,1188.26ms-6423.3%559MiB
HTTP/2Static1,024830,38237.40ms-6562.3%2.3GiB
HTTP/2Baseline (h2c)2566,038,0264.37ms-7082.3%244MiB
HTTP/2Baseline (h2c)1,0243,991,54123.14ms-7607.8%528MiB
HTTP/2Baseline (h2c)4,0963,753,829100.43ms-7497.4%1.5GiB
HTTP/2JSON (h2c)1,0241,232,19425.75ms-7366.1%319MiB
HTTP/2JSON (h2c)4,0961,217,112102.11ms-7258.8%781MiB

Compared with

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

EntryCompositevs true-async-server
swoole5037-5%head to head
hyperf1777-66%head to head

Compare true-async-server with any PHP entry · Compare true-async-server with any entry, in any language · Every PHP entry, ranked

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