Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frameworks/true-async-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM trueasync/php-true-async:0.7.0-beta.3-php8.6
FROM trueasync/php-true-async:0.7.0-beta.4-php8.6

RUN printf '%s\n' \
'opcache.jit=1255' \
Expand Down
2 changes: 1 addition & 1 deletion frameworks/true-async-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ connection.
- **Source:** <https://github.com/true-async/server>
- **Engine:** TrueAsync (PHP fork — <https://github.com/true-async/php-src>)
- **Tier:** `tuned`
- **Image:** `trueasync/php-true-async:0.7.0-alpha.13-php8.6`
- **Image:** `trueasync/php-true-async:0.7.0-beta.4-php8.6`

### Related repositories

Expand Down
6 changes: 6 additions & 0 deletions frameworks/true-async-server/entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@
// stay within RSS limits under concurrent 20 MiB POSTs (issue #26).
->setBodyStreamingEnabled(true)
// Transparent gzip/brotli middleware — needed for the json-comp profile.
// Drop both levels to 1 to match Swoole's http_compression_level=1 default
// and the typical high-RPS arena workload. Encode CPU dominates byte-on-wire
// here; q=1 keeps ratio acceptable (br q=1 ≈ 1.5 KB vs q=4 ≈ 1.2 KB on the
// 6.7 KB /json/40 payload) at ~2× faster encode.
->setCompressionEnabled(true)
->setCompressionLevel(1)
->setBrotliLevel(1)
// Built-in worker pool — HttpServer::start() spawns the pool itself.
->setWorkers($workers)
// Run once per worker before its task loop. The class files contain
Expand Down
22 changes: 11 additions & 11 deletions site/data/api-16-1024.json
Original file line number Diff line number Diff line change
Expand Up @@ -1114,28 +1114,28 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 153265,
"avg_latency": "5.49ms",
"p99_latency": "102.60ms",
"cpu": "1568.7%",
"rps": 153409,
"avg_latency": "5.44ms",
"p99_latency": "72.20ms",
"cpu": "1583.0%",
"memory": "78MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "769.42MB/s",
"input_bw": "8.62MB/s",
"reconnects": 459880,
"status_2xx": 2298981,
"bandwidth": "770.22MB/s",
"input_bw": "8.63MB/s",
"reconnects": 460334,
"status_2xx": 2301139,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0,
"tpl_baseline": 862411,
"tpl_json": 861979,
"tpl_baseline": 863053,
"tpl_json": 862990,
"tpl_db": 0,
"tpl_upload": 0,
"tpl_static": 0,
"tpl_async_db": 574587
"tpl_async_db": 575095
},
{
"framework": "uvicorn",
Expand Down
24 changes: 12 additions & 12 deletions site/data/api-4-256.json
Original file line number Diff line number Diff line change
Expand Up @@ -1114,28 +1114,28 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 55778,
"avg_latency": "3.38ms",
"p99_latency": "41.20ms",
"cpu": "392.7%",
"memory": "44MiB",
"rps": 57681,
"avg_latency": "3.36ms",
"p99_latency": "34.90ms",
"cpu": "396.6%",
"memory": "43MiB",
"connections": 256,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "279.95MB/s",
"input_bw": "3.14MB/s",
"reconnects": 167387,
"status_2xx": 836675,
"bandwidth": "289.55MB/s",
"input_bw": "3.25MB/s",
"reconnects": 173073,
"status_2xx": 865221,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0,
"tpl_baseline": 313969,
"tpl_json": 313623,
"tpl_baseline": 324577,
"tpl_json": 324428,
"tpl_db": 0,
"tpl_upload": 0,
"tpl_static": 0,
"tpl_async_db": 209082
"tpl_async_db": 216214
},
{
"framework": "uvicorn",
Expand Down
20 changes: 10 additions & 10 deletions site/data/async-db-1024.json
Original file line number Diff line number Diff line change
Expand Up @@ -876,22 +876,22 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 245903,
"avg_latency": "3.58ms",
"p99_latency": "13.60ms",
"cpu": "4815.0%",
"memory": "244MiB",
"rps": 248147,
"avg_latency": "3.40ms",
"p99_latency": "13.10ms",
"cpu": "4893.0%",
"memory": "246MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "936.38MB/s",
"input_bw": "16.42MB/s",
"reconnects": 98359,
"status_2xx": 2459033,
"bandwidth": "944.69MB/s",
"input_bw": "16.57MB/s",
"reconnects": 99223,
"status_2xx": 2481477,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 1
"status_5xx": 0
},
{
"framework": "uvicorn",
Expand Down
16 changes: 8 additions & 8 deletions site/data/baseline-4096.json
Original file line number Diff line number Diff line change
Expand Up @@ -1248,19 +1248,19 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 2194681,
"avg_latency": "1.87ms",
"p99_latency": "2.57ms",
"cpu": "6058.0%",
"memory": "215MiB",
"rps": 2211805,
"avg_latency": "1.85ms",
"p99_latency": "2.55ms",
"cpu": "5876.1%",
"memory": "220MiB",
"connections": 4096,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "202.97MB/s",
"input_bw": "169.53MB/s",
"bandwidth": "204.55MB/s",
"input_bw": "170.86MB/s",
"reconnects": 0,
"status_2xx": 10973407,
"status_2xx": 11059025,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
16 changes: 8 additions & 8 deletions site/data/baseline-512.json
Original file line number Diff line number Diff line change
Expand Up @@ -1248,19 +1248,19 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 2125741,
"avg_latency": "240us",
"p99_latency": "592us",
"cpu": "6655.0%",
"memory": "184MiB",
"rps": 2099793,
"avg_latency": "243us",
"p99_latency": "586us",
"cpu": "6688.5%",
"memory": "183MiB",
"connections": 512,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "196.60MB/s",
"input_bw": "164.21MB/s",
"bandwidth": "194.20MB/s",
"input_bw": "162.20MB/s",
"reconnects": 0,
"status_2xx": 10628705,
"status_2xx": 10498968,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
14 changes: 7 additions & 7 deletions site/data/baseline-h2-1024.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,18 +472,18 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 3085968,
"avg_latency": "28.86ms",
"p99_latency": "28.86ms",
"cpu": "7150.2%",
"memory": "506MiB",
"rps": 3010562,
"avg_latency": "30.19ms",
"p99_latency": "30.19ms",
"cpu": "7017.9%",
"memory": "504MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "65.67MB/s",
"bandwidth": "63.81MB/s",
"reconnects": 0,
"status_2xx": 15645861,
"status_2xx": 15203340,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
12 changes: 6 additions & 6 deletions site/data/baseline-h2-256.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,18 +472,18 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 4850848,
"avg_latency": "5.53ms",
"p99_latency": "5.53ms",
"cpu": "7771.1%",
"rps": 4578020,
"avg_latency": "5.85ms",
"p99_latency": "5.85ms",
"cpu": "7798.3%",
"memory": "227MiB",
"connections": 256,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "102.39MB/s",
"bandwidth": "96.63MB/s",
"reconnects": 0,
"status_2xx": 24399769,
"status_2xx": 23027445,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
14 changes: 7 additions & 7 deletions site/data/baseline-h2c-1024.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,18 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 4006305,
"avg_latency": "24.02ms",
"p99_latency": "24.02ms",
"cpu": "7256.2%",
"memory": "479MiB",
"rps": 3980311,
"avg_latency": "24.63ms",
"p99_latency": "24.63ms",
"cpu": "7160.2%",
"memory": "480MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "84.92MB/s",
"bandwidth": "84.53MB/s",
"reconnects": 0,
"status_2xx": 20231845,
"status_2xx": 20140377,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
12 changes: 6 additions & 6 deletions site/data/baseline-h2c-256.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,18 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 5864699,
"avg_latency": "4.56ms",
"p99_latency": "4.56ms",
"cpu": "7119.8%",
"rps": 5709735,
"avg_latency": "4.82ms",
"p99_latency": "4.82ms",
"cpu": "7179.8%",
"memory": "244MiB",
"connections": 256,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "123.79MB/s",
"bandwidth": "120.28MB/s",
"reconnects": 0,
"status_2xx": 29499436,
"status_2xx": 28662874,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
14 changes: 7 additions & 7 deletions site/data/baseline-h2c-4096.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,18 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 3703266,
"avg_latency": "101.19ms",
"p99_latency": "101.19ms",
"cpu": "7512.1%",
"memory": "1.5GiB",
"rps": 3421937,
"avg_latency": "109.70ms",
"p99_latency": "109.70ms",
"cpu": "7118.9%",
"memory": "1.6GiB",
"connections": 4096,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "79.33MB/s",
"bandwidth": "73.16MB/s",
"reconnects": 0,
"status_2xx": 18886660,
"status_2xx": 17417662,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
14 changes: 7 additions & 7 deletions site/data/fortunes-1024.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 88559,
"avg_latency": "7.90ms",
"p99_latency": "28.80ms",
"cpu": "6457.1%",
"memory": "229MiB",
"rps": 88940,
"avg_latency": "7.99ms",
"p99_latency": "29.00ms",
"cpu": "6348.2%",
"memory": "222MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "2.05GB/s",
"bandwidth": "2.06GB/s",
"reconnects": 0,
"status_2xx": 442797,
"status_2xx": 444701,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
16 changes: 8 additions & 8 deletions site/data/json-4096.json
Original file line number Diff line number Diff line change
Expand Up @@ -996,19 +996,19 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 1004306,
"avg_latency": "3.70ms",
"p99_latency": "9.16ms",
"cpu": "6231.8%",
"rps": 994461,
"avg_latency": "3.77ms",
"p99_latency": "9.23ms",
"cpu": "6192.3%",
"memory": "259MiB",
"connections": 4096,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "3.39GB/s",
"input_bw": "47.89MB/s",
"reconnects": 199472,
"status_2xx": 5021531,
"bandwidth": "3.36GB/s",
"input_bw": "47.42MB/s",
"reconnects": 197204,
"status_2xx": 4972308,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
Loading