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.4-php8.6
FROM trueasync/php-true-async:0.7.0-beta.5-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-beta.4-php8.6`
- **Image:** `trueasync/php-true-async:0.7.0-beta.5-php8.6`

### Related repositories

Expand Down
12 changes: 4 additions & 8 deletions frameworks/true-async-server/entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
$port = (int)(getenv('PORT') ?: 8080);
$tlsPort = (int)(getenv('TLS_PORT') ?: 8443);
$h2cPort = (int)(getenv('H2C_PORT') ?: 8082);
$h3Port = (int)(getenv('H3_PORT') ?: $tlsPort);
$h3Enabled = getenv('H3_DISABLE') !== '1';
$workers = (int)(getenv('WORKERS') ?: 0);
if ($workers <= 0) {
$workers = available_parallelism();
Expand Down Expand Up @@ -85,12 +83,10 @@
->setCertificate($certPath)
->setPrivateKey($keyPath);

// HTTP/3 over QUIC on the same UDP port — powers baseline-h3 / static-h3.
// Reuses the TLS cert/key. Requires --enable-http3; if missing, the worker
// start() will throw — set H3_DISABLE=1 to skip on builds without it.
if ($h3Enabled) {
$config->addHttp3Listener('0.0.0.0', $h3Port);
}
// No HTTP/3 listener: meta.json subscribes to no h3 profile, so the
// QUIC UDP listener would be pure liability — an extra bind that races
// with the previous container's teardown on back-to-back profile runs
// and makes the server fail to come up ("did not come up" on limited-conn).
}

// Bootloader needs the class files visible in the parent too, otherwise
Expand Down
24 changes: 12 additions & 12 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": 153409,
"avg_latency": "5.44ms",
"p99_latency": "72.20ms",
"cpu": "1583.0%",
"memory": "78MiB",
"rps": 152800,
"avg_latency": "5.70ms",
"p99_latency": "99.80ms",
"cpu": "1574.7%",
"memory": "77MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "770.22MB/s",
"input_bw": "8.63MB/s",
"reconnects": 460334,
"status_2xx": 2301139,
"bandwidth": "762.37MB/s",
"input_bw": "8.60MB/s",
"reconnects": 458523,
"status_2xx": 2292002,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0,
"tpl_baseline": 863053,
"tpl_json": 862990,
"tpl_baseline": 860025,
"tpl_json": 859000,
"tpl_db": 0,
"tpl_upload": 0,
"tpl_static": 0,
"tpl_async_db": 575095
"tpl_async_db": 572974
},
{
"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": 57681,
"avg_latency": "3.36ms",
"p99_latency": "34.90ms",
"cpu": "396.6%",
"memory": "43MiB",
"rps": 56308,
"avg_latency": "3.62ms",
"p99_latency": "41.20ms",
"cpu": "394.0%",
"memory": "42MiB",
"connections": 256,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "289.55MB/s",
"input_bw": "3.25MB/s",
"reconnects": 173073,
"status_2xx": 865221,
"bandwidth": "280.94MB/s",
"input_bw": "3.17MB/s",
"reconnects": 168949,
"status_2xx": 844621,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0,
"tpl_baseline": 324577,
"tpl_json": 324428,
"tpl_baseline": 316921,
"tpl_json": 316708,
"tpl_db": 0,
"tpl_upload": 0,
"tpl_static": 0,
"tpl_async_db": 216214
"tpl_async_db": 210990
},
{
"framework": "uvicorn",
Expand Down
18 changes: 9 additions & 9 deletions site/data/async-db-1024.json
Original file line number Diff line number Diff line change
Expand Up @@ -876,19 +876,19 @@
{
"framework": "true-async-server",
"language": "PHP",
"rps": 248147,
"avg_latency": "3.40ms",
"p99_latency": "13.10ms",
"cpu": "4893.0%",
"memory": "246MiB",
"rps": 249894,
"avg_latency": "3.56ms",
"p99_latency": "12.50ms",
"cpu": "4917.3%",
"memory": "248MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "944.69MB/s",
"input_bw": "16.57MB/s",
"reconnects": 99223,
"status_2xx": 2481477,
"bandwidth": "943.85MB/s",
"input_bw": "16.68MB/s",
"reconnects": 99973,
"status_2xx": 2498944,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
14 changes: 7 additions & 7 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": 2211805,
"avg_latency": "1.85ms",
"p99_latency": "2.55ms",
"cpu": "5876.1%",
"rps": 2260254,
"avg_latency": "1.81ms",
"p99_latency": "2.53ms",
"cpu": "5871.2%",
"memory": "220MiB",
"connections": 4096,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "204.55MB/s",
"input_bw": "170.86MB/s",
"bandwidth": "142.23MB/s",
"input_bw": "174.60MB/s",
"reconnects": 0,
"status_2xx": 11059025,
"status_2xx": 11301272,
"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": 2099793,
"avg_latency": "243us",
"p99_latency": "586us",
"cpu": "6688.5%",
"memory": "183MiB",
"rps": 2154955,
"avg_latency": "237us",
"p99_latency": "571us",
"cpu": "6712.0%",
"memory": "182MiB",
"connections": 512,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "194.20MB/s",
"input_bw": "162.20MB/s",
"bandwidth": "135.61MB/s",
"input_bw": "166.47MB/s",
"reconnects": 0,
"status_2xx": 10498968,
"status_2xx": 10774775,
"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": 3010562,
"avg_latency": "30.19ms",
"p99_latency": "30.19ms",
"cpu": "7017.9%",
"memory": "504MiB",
"rps": 3288741,
"avg_latency": "27.37ms",
"p99_latency": "27.37ms",
"cpu": "7207.5%",
"memory": "505MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "63.81MB/s",
"bandwidth": "66.54MB/s",
"reconnects": 0,
"status_2xx": 15203340,
"status_2xx": 16608143,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
14 changes: 7 additions & 7 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": 4578020,
"avg_latency": "5.85ms",
"p99_latency": "5.85ms",
"cpu": "7798.3%",
"memory": "227MiB",
"rps": 4969431,
"avg_latency": "5.40ms",
"p99_latency": "5.40ms",
"cpu": "7904.6%",
"memory": "225MiB",
"connections": 256,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "96.63MB/s",
"bandwidth": "100.12MB/s",
"reconnects": 0,
"status_2xx": 23027445,
"status_2xx": 24996239,
"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": 3980311,
"avg_latency": "24.63ms",
"p99_latency": "24.63ms",
"cpu": "7160.2%",
"memory": "480MiB",
"rps": 3991541,
"avg_latency": "23.14ms",
"p99_latency": "23.14ms",
"cpu": "7607.8%",
"memory": "528MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "84.53MB/s",
"bandwidth": "81.07MB/s",
"reconnects": 0,
"status_2xx": 20140377,
"status_2xx": 20237114,
"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": 5709735,
"avg_latency": "4.82ms",
"p99_latency": "4.82ms",
"cpu": "7179.8%",
"rps": 6038026,
"avg_latency": "4.37ms",
"p99_latency": "4.37ms",
"cpu": "7082.3%",
"memory": "244MiB",
"connections": 256,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "120.28MB/s",
"bandwidth": "121.65MB/s",
"reconnects": 0,
"status_2xx": 28662874,
"status_2xx": 30371272,
"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": 3421937,
"avg_latency": "109.70ms",
"p99_latency": "109.70ms",
"cpu": "7118.9%",
"memory": "1.6GiB",
"rps": 3753829,
"avg_latency": "100.43ms",
"p99_latency": "100.43ms",
"cpu": "7497.4%",
"memory": "1.5GiB",
"connections": 4096,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "73.16MB/s",
"bandwidth": "76.44MB/s",
"reconnects": 0,
"status_2xx": 17417662,
"status_2xx": 19069452,
"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": 88940,
"avg_latency": "7.99ms",
"p99_latency": "29.00ms",
"cpu": "6348.2%",
"memory": "222MiB",
"rps": 88584,
"avg_latency": "7.68ms",
"p99_latency": "28.80ms",
"cpu": "6331.0%",
"memory": "224MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "2.06GB/s",
"bandwidth": "2.05GB/s",
"reconnects": 0,
"status_2xx": 444701,
"status_2xx": 442920,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
18 changes: 9 additions & 9 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": 994461,
"avg_latency": "3.77ms",
"p99_latency": "9.23ms",
"cpu": "6192.3%",
"memory": "259MiB",
"rps": 983908,
"avg_latency": "3.80ms",
"p99_latency": "9.61ms",
"cpu": "6485.4%",
"memory": "264MiB",
"connections": 4096,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "3.36GB/s",
"input_bw": "47.42MB/s",
"reconnects": 197204,
"status_2xx": 4972308,
"bandwidth": "3.29GB/s",
"input_bw": "46.92MB/s",
"reconnects": 195195,
"status_2xx": 4919544,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
Loading