Skip to content

Commit e0a682e

Browse files
authored
Merge pull request #742 from EdmondDantes/update-tas-v0.6.3-php-0.7.0-beta.4
[true-async] Bump true-async-server to v0.6.3 (php-true-async 0.7.0-beta.4)
2 parents fed4a24 + 2cd1902 commit e0a682e

30 files changed

Lines changed: 220 additions & 214 deletions

frameworks/true-async-server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM trueasync/php-true-async:0.7.0-beta.3-php8.6
1+
FROM trueasync/php-true-async:0.7.0-beta.4-php8.6
22

33
RUN printf '%s\n' \
44
'opcache.jit=1255' \

frameworks/true-async-server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ connection.
1010
- **Source:** <https://github.com/true-async/server>
1111
- **Engine:** TrueAsync (PHP fork — <https://github.com/true-async/php-src>)
1212
- **Tier:** `tuned`
13-
- **Image:** `trueasync/php-true-async:0.7.0-alpha.13-php8.6`
13+
- **Image:** `trueasync/php-true-async:0.7.0-beta.4-php8.6`
1414

1515
### Related repositories
1616

frameworks/true-async-server/entry.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@
6161
// stay within RSS limits under concurrent 20 MiB POSTs (issue #26).
6262
->setBodyStreamingEnabled(true)
6363
// Transparent gzip/brotli middleware — needed for the json-comp profile.
64+
// Drop both levels to 1 to match Swoole's http_compression_level=1 default
65+
// and the typical high-RPS arena workload. Encode CPU dominates byte-on-wire
66+
// here; q=1 keeps ratio acceptable (br q=1 ≈ 1.5 KB vs q=4 ≈ 1.2 KB on the
67+
// 6.7 KB /json/40 payload) at ~2× faster encode.
6468
->setCompressionEnabled(true)
69+
->setCompressionLevel(1)
70+
->setBrotliLevel(1)
6571
// Built-in worker pool — HttpServer::start() spawns the pool itself.
6672
->setWorkers($workers)
6773
// Run once per worker before its task loop. The class files contain

site/data/api-16-1024.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,28 +1114,28 @@
11141114
{
11151115
"framework": "true-async-server",
11161116
"language": "PHP",
1117-
"rps": 153265,
1118-
"avg_latency": "5.49ms",
1119-
"p99_latency": "102.60ms",
1120-
"cpu": "1568.7%",
1117+
"rps": 153409,
1118+
"avg_latency": "5.44ms",
1119+
"p99_latency": "72.20ms",
1120+
"cpu": "1583.0%",
11211121
"memory": "78MiB",
11221122
"connections": 1024,
11231123
"threads": 64,
11241124
"duration": "5s",
11251125
"pipeline": 1,
1126-
"bandwidth": "769.42MB/s",
1127-
"input_bw": "8.62MB/s",
1128-
"reconnects": 459880,
1129-
"status_2xx": 2298981,
1126+
"bandwidth": "770.22MB/s",
1127+
"input_bw": "8.63MB/s",
1128+
"reconnects": 460334,
1129+
"status_2xx": 2301139,
11301130
"status_3xx": 0,
11311131
"status_4xx": 0,
11321132
"status_5xx": 0,
1133-
"tpl_baseline": 862411,
1134-
"tpl_json": 861979,
1133+
"tpl_baseline": 863053,
1134+
"tpl_json": 862990,
11351135
"tpl_db": 0,
11361136
"tpl_upload": 0,
11371137
"tpl_static": 0,
1138-
"tpl_async_db": 574587
1138+
"tpl_async_db": 575095
11391139
},
11401140
{
11411141
"framework": "uvicorn",

site/data/api-4-256.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,28 +1114,28 @@
11141114
{
11151115
"framework": "true-async-server",
11161116
"language": "PHP",
1117-
"rps": 55778,
1118-
"avg_latency": "3.38ms",
1119-
"p99_latency": "41.20ms",
1120-
"cpu": "392.7%",
1121-
"memory": "44MiB",
1117+
"rps": 57681,
1118+
"avg_latency": "3.36ms",
1119+
"p99_latency": "34.90ms",
1120+
"cpu": "396.6%",
1121+
"memory": "43MiB",
11221122
"connections": 256,
11231123
"threads": 64,
11241124
"duration": "5s",
11251125
"pipeline": 1,
1126-
"bandwidth": "279.95MB/s",
1127-
"input_bw": "3.14MB/s",
1128-
"reconnects": 167387,
1129-
"status_2xx": 836675,
1126+
"bandwidth": "289.55MB/s",
1127+
"input_bw": "3.25MB/s",
1128+
"reconnects": 173073,
1129+
"status_2xx": 865221,
11301130
"status_3xx": 0,
11311131
"status_4xx": 0,
11321132
"status_5xx": 0,
1133-
"tpl_baseline": 313969,
1134-
"tpl_json": 313623,
1133+
"tpl_baseline": 324577,
1134+
"tpl_json": 324428,
11351135
"tpl_db": 0,
11361136
"tpl_upload": 0,
11371137
"tpl_static": 0,
1138-
"tpl_async_db": 209082
1138+
"tpl_async_db": 216214
11391139
},
11401140
{
11411141
"framework": "uvicorn",

site/data/async-db-1024.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -876,22 +876,22 @@
876876
{
877877
"framework": "true-async-server",
878878
"language": "PHP",
879-
"rps": 245903,
880-
"avg_latency": "3.58ms",
881-
"p99_latency": "13.60ms",
882-
"cpu": "4815.0%",
883-
"memory": "244MiB",
879+
"rps": 248147,
880+
"avg_latency": "3.40ms",
881+
"p99_latency": "13.10ms",
882+
"cpu": "4893.0%",
883+
"memory": "246MiB",
884884
"connections": 1024,
885885
"threads": 64,
886886
"duration": "5s",
887887
"pipeline": 1,
888-
"bandwidth": "936.38MB/s",
889-
"input_bw": "16.42MB/s",
890-
"reconnects": 98359,
891-
"status_2xx": 2459033,
888+
"bandwidth": "944.69MB/s",
889+
"input_bw": "16.57MB/s",
890+
"reconnects": 99223,
891+
"status_2xx": 2481477,
892892
"status_3xx": 0,
893893
"status_4xx": 0,
894-
"status_5xx": 1
894+
"status_5xx": 0
895895
},
896896
{
897897
"framework": "uvicorn",

site/data/baseline-4096.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,19 +1248,19 @@
12481248
{
12491249
"framework": "true-async-server",
12501250
"language": "PHP",
1251-
"rps": 2194681,
1252-
"avg_latency": "1.87ms",
1253-
"p99_latency": "2.57ms",
1254-
"cpu": "6058.0%",
1255-
"memory": "215MiB",
1251+
"rps": 2211805,
1252+
"avg_latency": "1.85ms",
1253+
"p99_latency": "2.55ms",
1254+
"cpu": "5876.1%",
1255+
"memory": "220MiB",
12561256
"connections": 4096,
12571257
"threads": 64,
12581258
"duration": "5s",
12591259
"pipeline": 1,
1260-
"bandwidth": "202.97MB/s",
1261-
"input_bw": "169.53MB/s",
1260+
"bandwidth": "204.55MB/s",
1261+
"input_bw": "170.86MB/s",
12621262
"reconnects": 0,
1263-
"status_2xx": 10973407,
1263+
"status_2xx": 11059025,
12641264
"status_3xx": 0,
12651265
"status_4xx": 0,
12661266
"status_5xx": 0

site/data/baseline-512.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,19 +1248,19 @@
12481248
{
12491249
"framework": "true-async-server",
12501250
"language": "PHP",
1251-
"rps": 2125741,
1252-
"avg_latency": "240us",
1253-
"p99_latency": "592us",
1254-
"cpu": "6655.0%",
1255-
"memory": "184MiB",
1251+
"rps": 2099793,
1252+
"avg_latency": "243us",
1253+
"p99_latency": "586us",
1254+
"cpu": "6688.5%",
1255+
"memory": "183MiB",
12561256
"connections": 512,
12571257
"threads": 64,
12581258
"duration": "5s",
12591259
"pipeline": 1,
1260-
"bandwidth": "196.60MB/s",
1261-
"input_bw": "164.21MB/s",
1260+
"bandwidth": "194.20MB/s",
1261+
"input_bw": "162.20MB/s",
12621262
"reconnects": 0,
1263-
"status_2xx": 10628705,
1263+
"status_2xx": 10498968,
12641264
"status_3xx": 0,
12651265
"status_4xx": 0,
12661266
"status_5xx": 0

site/data/baseline-h2-1024.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -472,18 +472,18 @@
472472
{
473473
"framework": "true-async-server",
474474
"language": "PHP",
475-
"rps": 3085968,
476-
"avg_latency": "28.86ms",
477-
"p99_latency": "28.86ms",
478-
"cpu": "7150.2%",
479-
"memory": "506MiB",
475+
"rps": 3010562,
476+
"avg_latency": "30.19ms",
477+
"p99_latency": "30.19ms",
478+
"cpu": "7017.9%",
479+
"memory": "504MiB",
480480
"connections": 1024,
481481
"threads": 64,
482482
"duration": "5s",
483483
"pipeline": 1,
484-
"bandwidth": "65.67MB/s",
484+
"bandwidth": "63.81MB/s",
485485
"reconnects": 0,
486-
"status_2xx": 15645861,
486+
"status_2xx": 15203340,
487487
"status_3xx": 0,
488488
"status_4xx": 0,
489489
"status_5xx": 0

site/data/baseline-h2-256.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -472,18 +472,18 @@
472472
{
473473
"framework": "true-async-server",
474474
"language": "PHP",
475-
"rps": 4850848,
476-
"avg_latency": "5.53ms",
477-
"p99_latency": "5.53ms",
478-
"cpu": "7771.1%",
475+
"rps": 4578020,
476+
"avg_latency": "5.85ms",
477+
"p99_latency": "5.85ms",
478+
"cpu": "7798.3%",
479479
"memory": "227MiB",
480480
"connections": 256,
481481
"threads": 64,
482482
"duration": "5s",
483483
"pipeline": 1,
484-
"bandwidth": "102.39MB/s",
484+
"bandwidth": "96.63MB/s",
485485
"reconnects": 0,
486-
"status_2xx": 24399769,
486+
"status_2xx": 23027445,
487487
"status_3xx": 0,
488488
"status_4xx": 0,
489489
"status_5xx": 0

0 commit comments

Comments
 (0)