From 9d3ba2d8d8dd767bc01533e4eda321c3495b5bc8 Mon Sep 17 00:00:00 2001 From: praisethemoon Date: Sat, 23 May 2026 13:53:25 +0200 Subject: [PATCH 01/21] typev: update runtime, improves gc & memory reclamation --- frameworks/typev/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/typev/Dockerfile b/frameworks/typev/Dockerfile index 1fd66d1c..77db7f08 100644 --- a/frameworks/typev/Dockerfile +++ b/frameworks/typev/Dockerfile @@ -12,7 +12,7 @@ WORKDIR /app # typev VM — binary + FFI plugins (json, stdcore, stdsocket, ...). Pre-built # (-O3 -march=x86-64-v3, static liburing) and fetched from object storage RUN wget -q -O /tmp/typev.zip \ - https://typev.s3.fr-par.scw.cloud/typev-21-05-2026.zip && \ + https://typev.s3.fr-par.scw.cloud/typev-23-05-2026.zip && \ unzip -q /tmp/typev.zip -d /app && \ rm /tmp/typev.zip From 398f339c3f6de71bdd19b361fc3a26f46cc23fde Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 23 May 2026 16:17:41 +0000 Subject: [PATCH 02/21] Benchmark results: typev --- site/data/baseline-4096.json | 16 ++++++++-------- site/data/baseline-512.json | 16 ++++++++-------- site/data/echo-ws-16384.json | 14 +++++++------- site/data/echo-ws-4096.json | 14 +++++++------- site/data/echo-ws-512.json | 14 +++++++------- site/data/echo-ws-pipeline-16384.json | 14 +++++++------- site/data/echo-ws-pipeline-4096.json | 14 +++++++------- site/data/echo-ws-pipeline-512.json | 14 +++++++------- site/data/json-4096.json | 18 +++++++++--------- site/data/limited-conn-4096.json | 18 +++++++++--------- site/data/limited-conn-512.json | 16 ++++++++-------- site/data/pipelined-4096.json | 14 +++++++------- site/data/pipelined-512.json | 14 +++++++------- site/data/static-1024.json | 14 +++++++------- site/data/static-4096.json | 14 +++++++------- site/data/static-6800.json | 14 +++++++------- site/data/upload-256.json | 18 +++++++++--------- site/data/upload-32.json | 18 +++++++++--------- 18 files changed, 137 insertions(+), 137 deletions(-) diff --git a/site/data/baseline-4096.json b/site/data/baseline-4096.json index f146e515..00026944 100644 --- a/site/data/baseline-4096.json +++ b/site/data/baseline-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2238245, - "avg_latency": "160us", - "p99_latency": "681us", - "cpu": "6230.3%", - "memory": "448MiB", + "rps": 2255667, + "avg_latency": "137us", + "p99_latency": "641us", + "cpu": "6687.6%", + "memory": "551MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "192.04MB/s", - "input_bw": "172.90MB/s", + "bandwidth": "193.55MB/s", + "input_bw": "174.24MB/s", "reconnects": 0, - "status_2xx": 11191228, + "status_2xx": 11278337, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/baseline-512.json b/site/data/baseline-512.json index 2e4e9899..f75d5263 100644 --- a/site/data/baseline-512.json +++ b/site/data/baseline-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2230325, - "avg_latency": "125us", - "p99_latency": "665us", - "cpu": "6378.6%", - "memory": "211MiB", + "rps": 2249295, + "avg_latency": "124us", + "p99_latency": "667us", + "cpu": "6693.9%", + "memory": "272MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "191.36MB/s", - "input_bw": "172.29MB/s", + "bandwidth": "193.01MB/s", + "input_bw": "173.75MB/s", "reconnects": 0, - "status_2xx": 11151628, + "status_2xx": 11246479, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-16384.json b/site/data/echo-ws-16384.json index 0e2205ae..ccffba5c 100644 --- a/site/data/echo-ws-16384.json +++ b/site/data/echo-ws-16384.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 3048278, - "avg_latency": "170us", - "p99_latency": "1.53ms", - "cpu": "6266.4%", - "memory": "751MiB", + "rps": 3018725, + "avg_latency": "160us", + "p99_latency": "812us", + "cpu": "6540.4%", + "memory": "1.1GiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.37MB/s", + "bandwidth": "20.20MB/s", "reconnects": 0, - "status_2xx": 15241392, + "status_2xx": 15093629, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-4096.json b/site/data/echo-ws-4096.json index 3c856a36..afc26b89 100644 --- a/site/data/echo-ws-4096.json +++ b/site/data/echo-ws-4096.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2981735, - "avg_latency": "145us", - "p99_latency": "548us", - "cpu": "6441.7%", - "memory": "450MiB", + "rps": 2998664, + "avg_latency": "157us", + "p99_latency": "570us", + "cpu": "6467.7%", + "memory": "601MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.90MB/s", + "bandwidth": "20.01MB/s", "reconnects": 0, - "status_2xx": 14908675, + "status_2xx": 14993323, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-512.json b/site/data/echo-ws-512.json index 8551d41b..44c3f1e2 100644 --- a/site/data/echo-ws-512.json +++ b/site/data/echo-ws-512.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 3017632, - "avg_latency": "105us", - "p99_latency": "480us", - "cpu": "6739.4%", - "memory": "269MiB", + "rps": 2747051, + "avg_latency": "109us", + "p99_latency": "467us", + "cpu": "6758.0%", + "memory": "266MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.14MB/s", + "bandwidth": "18.33MB/s", "reconnects": 0, - "status_2xx": 15088164, + "status_2xx": 13735257, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-16384.json b/site/data/echo-ws-pipeline-16384.json index 98010ccf..8d20b931 100644 --- a/site/data/echo-ws-pipeline-16384.json +++ b/site/data/echo-ws-pipeline-16384.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 19139286, - "avg_latency": "308us", - "p99_latency": "1.04ms", - "cpu": "6358.2%", - "memory": "458MiB", + "rps": 19062131, + "avg_latency": "295us", + "p99_latency": "1.55ms", + "cpu": "6135.7%", + "memory": "1.1GiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "127.73MB/s", + "bandwidth": "127.27MB/s", "reconnects": 0, - "status_2xx": 95696432, + "status_2xx": 95310656, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-4096.json b/site/data/echo-ws-pipeline-4096.json index 43cae863..db8f4b87 100644 --- a/site/data/echo-ws-pipeline-4096.json +++ b/site/data/echo-ws-pipeline-4096.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 19362240, - "avg_latency": "184us", - "p99_latency": "846us", - "cpu": "6677.0%", - "memory": "422MiB", + "rps": 19442723, + "avg_latency": "192us", + "p99_latency": "961us", + "cpu": "6415.8%", + "memory": "584MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "129.22MB/s", + "bandwidth": "129.76MB/s", "reconnects": 0, - "status_2xx": 96811200, + "status_2xx": 97213616, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-512.json b/site/data/echo-ws-pipeline-512.json index f026551e..19984578 100644 --- a/site/data/echo-ws-pipeline-512.json +++ b/site/data/echo-ws-pipeline-512.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18460480, - "avg_latency": "166us", - "p99_latency": "140us", - "cpu": "6464.7%", - "memory": "273MiB", + "rps": 18755462, + "avg_latency": "156us", + "p99_latency": "132us", + "cpu": "6518.1%", + "memory": "270MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "123.20MB/s", + "bandwidth": "125.17MB/s", "reconnects": 0, - "status_2xx": 92302400, + "status_2xx": 93777311, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/json-4096.json b/site/data/json-4096.json index 8b25083f..dc7c0485 100644 --- a/site/data/json-4096.json +++ b/site/data/json-4096.json @@ -1036,19 +1036,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1194865, - "avg_latency": "3.00ms", - "p99_latency": "2.70ms", - "cpu": "6751.2%", - "memory": "673MiB", + "rps": 1188956, + "avg_latency": "3.01ms", + "p99_latency": "2.44ms", + "cpu": "6750.8%", + "memory": "892MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.02GB/s", - "input_bw": "56.98MB/s", - "reconnects": 238578, - "status_2xx": 5974326, + "bandwidth": "4.00GB/s", + "input_bw": "56.69MB/s", + "reconnects": 237396, + "status_2xx": 5944782, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-4096.json b/site/data/limited-conn-4096.json index b2e9e95d..24435791 100644 --- a/site/data/limited-conn-4096.json +++ b/site/data/limited-conn-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1544570, - "avg_latency": "2.61ms", - "p99_latency": "155.40ms", - "cpu": "6625.4%", - "memory": "379MiB", + "rps": 1558607, + "avg_latency": "2.59ms", + "p99_latency": "154.30ms", + "cpu": "6484.1%", + "memory": "543MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "132.55MB/s", - "input_bw": "119.31MB/s", - "reconnects": 772280, - "status_2xx": 7722850, + "bandwidth": "133.74MB/s", + "input_bw": "120.40MB/s", + "reconnects": 779360, + "status_2xx": 7793038, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-512.json b/site/data/limited-conn-512.json index 3c81a934..b98fb4a0 100644 --- a/site/data/limited-conn-512.json +++ b/site/data/limited-conn-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1496006, + "rps": 1495600, "avg_latency": "331us", - "p99_latency": "8.95ms", - "cpu": "6641.2%", - "memory": "257MiB", + "p99_latency": "9.00ms", + "cpu": "6598.4%", + "memory": "260MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "128.39MB/s", - "input_bw": "115.56MB/s", - "reconnects": 747995, - "status_2xx": 7480034, + "bandwidth": "128.33MB/s", + "input_bw": "115.53MB/s", + "reconnects": 747794, + "status_2xx": 7478002, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-4096.json b/site/data/pipelined-4096.json index f4f64a9b..b210b760 100644 --- a/site/data/pipelined-4096.json +++ b/site/data/pipelined-4096.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 46959193, - "avg_latency": "262us", - "p99_latency": "1.20ms", - "cpu": "6257.5%", - "memory": "380MiB", + "rps": 47449846, + "avg_latency": "270us", + "p99_latency": "1.21ms", + "cpu": "6175.5%", + "memory": "388MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.93GB/s", + "bandwidth": "3.98GB/s", "reconnects": 0, - "status_2xx": 234795968, + "status_2xx": 237249232, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-512.json b/site/data/pipelined-512.json index ea48cd39..8c7b9a80 100644 --- a/site/data/pipelined-512.json +++ b/site/data/pipelined-512.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 48455952, - "avg_latency": "167us", - "p99_latency": "917us", - "cpu": "6464.7%", - "memory": "289MiB", + "rps": 45425804, + "avg_latency": "168us", + "p99_latency": "886us", + "cpu": "6319.3%", + "memory": "292MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "4.06GB/s", + "bandwidth": "3.81GB/s", "reconnects": 0, - "status_2xx": 242279760, + "status_2xx": 227129024, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-1024.json b/site/data/static-1024.json index 148cc892..63eb65e7 100644 --- a/site/data/static-1024.json +++ b/site/data/static-1024.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1135054, - "avg_latency": "19.41ms", - "p99_latency": "19.41ms", - "cpu": "6372.0%", - "memory": "295MiB", + "rps": 1157283, + "avg_latency": "21.41ms", + "p99_latency": "21.41ms", + "cpu": "6133.7%", + "memory": "303MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.32GB", + "bandwidth": "17.66GB", "reconnects": 0, - "status_2xx": 5788327, + "status_2xx": 5902359, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-4096.json b/site/data/static-4096.json index 4f3e1202..df0a68da 100644 --- a/site/data/static-4096.json +++ b/site/data/static-4096.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1166570, - "avg_latency": "62.92ms", - "p99_latency": "62.92ms", - "cpu": "6157.0%", - "memory": "670MiB", + "rps": 1174232, + "avg_latency": "43.68ms", + "p99_latency": "43.68ms", + "cpu": "6243.9%", + "memory": "701MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.80GB", + "bandwidth": "17.91GB", "reconnects": 0, - "status_2xx": 5949621, + "status_2xx": 5988623, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-6800.json b/site/data/static-6800.json index 0d5c28fa..5c94d216 100644 --- a/site/data/static-6800.json +++ b/site/data/static-6800.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1146000, - "avg_latency": "32.67ms", - "p99_latency": "32.67ms", - "cpu": "6427.0%", - "memory": "1.4GiB", + "rps": 1159506, + "avg_latency": "34.92ms", + "p99_latency": "34.92ms", + "cpu": "6118.9%", + "memory": "988MiB", "connections": 6800, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.48GB", + "bandwidth": "17.69GB", "reconnects": 0, - "status_2xx": 5844717, + "status_2xx": 5912886, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-256.json b/site/data/upload-256.json index 190b6402..1b42fb8c 100644 --- a/site/data/upload-256.json +++ b/site/data/upload-256.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3009, - "avg_latency": "77.92ms", - "p99_latency": "226.90ms", - "cpu": "3569.8%", - "memory": "297MiB", + "rps": 2998, + "avg_latency": "77.97ms", + "p99_latency": "218.10ms", + "cpu": "3660.7%", + "memory": "296MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "280.12KB/s", - "input_bw": "23.87GB/s", - "reconnects": 2995, - "status_2xx": 15138, + "bandwidth": "278.80KB/s", + "input_bw": "23.78GB/s", + "reconnects": 2973, + "status_2xx": 15080, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-32.json b/site/data/upload-32.json index 33aec010..52d6e9b7 100644 --- a/site/data/upload-32.json +++ b/site/data/upload-32.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3056, - "avg_latency": "10.45ms", - "p99_latency": "31.20ms", - "cpu": "1979.2%", - "memory": "201MiB", + "rps": 3057, + "avg_latency": "10.43ms", + "p99_latency": "31.60ms", + "cpu": "1367.9%", + "memory": "192MiB", "connections": 32, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "284.18KB/s", - "input_bw": "24.24GB/s", - "reconnects": 3055, - "status_2xx": 15284, + "bandwidth": "284.13KB/s", + "input_bw": "24.25GB/s", + "reconnects": 3053, + "status_2xx": 15288, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 From 7f50c01e5dcb11c6d492a3e6f854d0bd36ba2662 Mon Sep 17 00:00:00 2001 From: praisethemoon Date: Sat, 23 May 2026 22:15:11 +0200 Subject: [PATCH 03/21] typev: use resize Raw instead of resize (no memset internally) --- .../typev/bundle/benchmark-code/src/main.tc | 8 +++++--- frameworks/typev/bundle/output.tvbc | Bin 24673 -> 24417 bytes 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frameworks/typev/bundle/benchmark-code/src/main.tc b/frameworks/typev/bundle/benchmark-code/src/main.tc index 3be5cc06..c6cc7975 100644 --- a/frameworks/typev/bundle/benchmark-code/src/main.tc +++ b/frameworks/typev/bundle/benchmark-code/src/main.tc @@ -99,12 +99,14 @@ fn drainUpload(fd: int, buf: byte[], bufcap: uint, bodyStart: uint, cl: uint, cu // Serve one connection. fn handle_client(fd: int) -> void { + // resizeRaw: these buffers are write-before-read (tcp_read fills, parser + // reads only up to the filled length), so skip the per-connection zero-fill. let buf: byte[] = [] - buf.resize(BUFCAP) + buf.resizeRaw(BUFCAP) let tmp: byte[] = [] - tmp.resize(BUFCAP) + tmp.resizeRaw(BUFCAP) let obuf: byte[] = [] - obuf.resize(OBUFCAP) + obuf.resizeRaw(OBUFCAP) // Parse scratch — created once, reused for every request. let req = newReq() let chunk = newChunk() diff --git a/frameworks/typev/bundle/output.tvbc b/frameworks/typev/bundle/output.tvbc index d715baf87d79595f87dc4c1d471bca3a28e3886d..bf93a260abb5638e56e26c251831aa3d2ec043b6 100644 GIT binary patch delta 6718 zcmbtZdyJgdRX_K8-udR6o!Q-a?yhHMy*oQQJKyX)9NX*lWBrb861#5w0++T4usfk0 zj0jMg5PvsznyCe-Np4FYNQJ);e^A;GsS@h4uu^#_2sMyGDIi4&5=}^zIJBaH{9%6Q zo7vi{{@JzeoclQ6x#xAyIrsY2zZ9=-h_Bu#i<-V!u8jLc^nFU;_ups)zwc2}f4#iJ zokss<+NobD?;5dFF1civ45BV&_0)91s(VEG;Pk9jj}yJ{$n;_RD1TuJ8qWa=lK3?Q zPXRcXaRn`yOkhG$9J3yfVnpj`=*OyndUWMV`0MznfjL`HZjy-rmuP`#CnJ{eBQfXV zYfxQBL*JPJ?2@4bsBFeSAx5rnv8y9U$U7usWOQjt?e$|u+9!)~!3CgT=;L1;N^oi9 zDmqDWRui^r#}l!BDlV?ZW$Kn0Ppl>03n>NEBv^v3)>&UZjZ^`n&6C(XDX5+FV_+cJ zrPo3MW|*Om3!84}>G@18jgM4{Xg|Z*6dh(*F4HN7A0ax=@DGT7T7P)HDz5AP{GmAr z=H0minjWia210g8DyuX?R&0cBl(ABT`o2Fuz2+MU2;vLyBw!lw8ZTLlA5*=!<=se8 zd;z<6$yU8F%LDG1NI_vEl5t380E2}dTEn!(_$33NgCB3txd;E zl<8%_QITBzd$pchqFmG;U-+1{Fb;WYxix{>O#gW9)!q zu;w`InI>y>EYOwuN;s+7mOUmdwwt5+jzx8+3|36l$q0)q%5>@7kTT>Ca7H2=%CaxC zfF~4-T+8ko_8oO7=Vg|hR<@mSa-D2MBip6h;bunA+Ss>3Sco>^b)SHQN3!4w&Kz-V zfID_+q80s4y%zfLDONA5ErUp8FDgRsi>H^jQhqH_#8zw?hS2 z;LYF)Z-#@#H$p#RiV+`B{ShhZBR@O*@RWl0OPrQCB7rBM0Fg$pi|`jze+QT;(vDJe z!hBUPvUwrUj%be^Y{q(#O`KKu9(x{5W0P^TF|^U)B4SgD(rm_h@o^wW1V*qa2tcCZ z6PR<<(hhhb=Co=ScYY_VM^Wh8kby1wPk`SFmnztI1}-{_sQ!)Si9MrGrAwn-`h0lJ zC1cYN>TzMxP1pvWUz!8-sfu6r_T~`o(feD~>7S2A2DXk?tw)Eek45k>UDr2TJ4Y;K zxjE`N*hP|~ztWm2Lt!zvSlp|499mpejdNJB z)gj-rmb_NH9rut_*kOsC*F=azAE5<-FN7**^*49z4LKb9WJ5*=c5_$#q-xu~=(`9! zHn|o1NJO-1|I9!?ZrSE}Cfav>Ya;3kwHZge^4|&D(h+?}5~rBDvkW-MeM$(BkHVLP zs$ohFv4W095Uh!TSR7SN3h-rQ4L4#NyWz|w(C3dv$k>2ia8!H}V(il2yl=v)gI)d3 zedj}@21M@IFmijVV=2|njQRa6w3wl6B{P&KGn6M=&hUIBPj<|ji2CsL$RUMV8@nA2 z;^vl&{~2=Su!$Ug1H1n!wu3$w76I`m^yco_5HWa=veuLzRBAn zXl+*Y=MZh9RL3=C-*$n|>+lzgB&&5zz7 zuUCNZ=n%mkBK+DA!5I?xIO(_d<-`8<=7Q2s5AXxiHpmd69#+=5_VJw3j!q1LeCE>az#-$0}-YP)GE02Nq}Y zhKVSE#f+*!Ws!|=U5HeQF-Y6`l>-eoZ(EF~lLuR=Aipw@ERV3oljjcRVNFgi(};Fp z6%~BNW$!MiYK%{3E~@Tjo{g0p;N-}iiE#Lkd8(G%s`gxUsNltx;;mde7cYQTu2T?s zocThR-o|N&abzuYV$nf_x?c&gZbu0E&4b0TuHZ&E8Zd{&`&HG9WZo+9TtpC$?2662 zO{uEKdrqK0hwntV;Ei!m5za(7L*5Ga@D}qtoYF$Okmr*A9zNa<>)5v&!W*x79&(QW zj2mE%YZNg5@9fna4dCJ5L5}|yG>SsrQ!wH*c>c+*V3E<{I=6BuJ0zCkLJxTqzY|0y zeRE~Tn&A}iCo3OIu3*+d^}7R5;I>#h{Kzf{z^RB8B1RB?k%JbZq>Zw69F(}&N9tJT zo5UE6R?*jge|REcs=cG*!}8=Uefw~I@;@NlYiO^Auv{D(^*8ed^-=abr}rFrBAmyr z*U<)l#{fRGHJ~elQF$=&&|rkv#(&SE-NpRh6OLY zX$jpvHqk*+7YN7#ir|}^z$HzfJ`%{-0>K(bgak5+U`xY>UFzv)k4;|xdc1Ee*f{~Rt+2IFCGu9DtBHy-l$cu^BfwAQvtgRJP3$7T7ZU% zKs3=>Xl>m(F(qEt51x3`nNTQQuNH z&%1id!hpXn>+7d3O-zQ^YcIkWq|Bq`(6V8~*juO0ocP>zurtx6&tC7+XV5g-b7;?A z$APDHM4e6O?o%L$><{@!MztNz5&v;XY2Y^g#OdPv45nE5j1RA%68wU1Lwt1CEevq$ zuAr~~?({4ke{P?yjPsptaEp_Ik1#F^dj8DAr5S9^Wzm;S;Jak5yU3t;z}Z9t)X$&E z3`o6rrWksZ1yu>_GEn*K@R|s+3@eIr%u>N1T354H9gX?kZ z8i7kfN(2o2;>d&G@Izs>P_0{{V+w&QDhCf^!xSO4EsRWvX){e=cz0-!h@@I_g!6#! z*_}kozv_F5TjV>(F$ONO;{Sw9=y$L?SG(vsER2Cg*jU%fv=*f zuX%1dhwKRJpx()i(<}J-85@6FAfR_tjU;ti=>0(AJObm zpbT80q|NoyC=&m5xS4dW#3Tw+;JY$5{LbZXLM+Cj1t9Pu7h<=_l^tmg3%Wdrgb@*> zZ5$YhgouL>$D^fx2LbpFKcPw7iTQ3DTTRB)UYU#^a;3a1UC{L9Rhe)*u5jA1q|5uQ zC4U%p;xVQ#;`+t+T|BlIl5>*5-$&4f-QL~q(|5aHxZC~HyWMZ-htI3CaH~N!0E8nA zvH^le6#f59A?hSh2M#j>gqVZ?Q)ng3!P5m!gqT5_MVs@qI5Cb3Zwa>P(kB!mr@%v} zM+Zo51P1j2l8puhrN$sefI6-tKL~pbLk{NBs@Je3Ey5q0cm{4!VRbQyIa8huti^Ua zX!ILx(Q8|>9W1u{oj^PkG&)xslfl(ss(~-s?ThWj#w`)F*B1X9p_Wu{(UzS>Z?V@D zvfh+ntf1PhML*pdygY$PevLK3q`%RG$N8Ml@J74H>v7d%QS>QGOMd}gm3cP4CZFLG^ct2_6+#d$xskzjv>#XAK+iJ-2@*^-p6NU-Q{D^ zq(+k#OGs;c06?>ftid@8oBC8^IIvM-z#xPK0TY7w5G0_3(EK56vqFm-t%%_kZ@zWH zdM!up4O$*F96)Oe&^Xwk`f3C3!hs{(?MBcK+5(DftTpiN4a{zwo`yz087?4#=zSOV zjQ(8cd&9@{7(c^&SgQ+#WEHU_5*SYdUAn0M=)zn$QQ)^8CmPF&g%#c$SLsTpgL`sezf5r3g%Lt-YAfBtCkjj8D?~=IZbB4~DG5|XIk1wIBhMDxYFU=od zPB>fvU##Pf$5G_TY)axfW^ZQkb{R4Fl?DQ!?i#ZN6lPNNNPKV_2d4#f5`LmbKMVzsU__n-eU~v8uT^G5 zl0YkMqLt88mS~0HWR{LFtk>x{!$*itG5md^2lctx84>DmcC95q;EfwVF~R(H6Xf^E zQ&uufRw7NCKFA)!vKo%5Ll&>kj-N{zDFNI>2E$-?kEH7RmbaNDU*w1iS<3auRQ;6Y z3EW z$%AVJvNne1bzqQD`KW!kj_Wcrhkij<7Mr=suRwgVkWvAmfD z`4Xk$cU!FmUUAuJmpVl!h}Zu|xLp)@&@!yRc+gQ%A?y%@1!yI-B2UOLb1)%$>&87w zt7?^odX!`cnR*Nh%oM<4kDNV-@S!oINL>j2HoR<-vuz6XOOV-bGY16KW{C8=jfIau zoggOy?_HfAEdwZJ}__ zlaypfa`&XDdgMlOmjY(^lduaI*?r<6ViOT?H}U)@lt@Ds8OS0FS>zIsO=IUQ{(XqglJ=3HNnk&Pc%T-Kb>U)r^g?*iC1cwV>M3E;0J4L<)TRNG#80-9 z)($+N-&>p+|9I3h=#%lN^_iWomm;`MoBGc7#9gMc+<^L$1uR(c4T6)m+&pbU=niUuBTaRMikWUkKn+M)Ibc%|xk1h?+}sD8$Zcf|vZ@8TWvr@y+!%eiz&ygjNZ5vV#xyDd{8KAD<95yq>c{648-Obl{mBXFT6yop)5m zCx_K-E$LayUfb_j9!MqCHHF!ux5I6C*AN_^(&7H4Q2rE&#Lq;A0Abjm-+|t_8_AUF z*hw+4ZSrjnoR-Site@bSUB^MB25!=-+A;69!RHIf>tRPaV&F&w)K%;&*y+lf0aw8h zAjGhPlnez93nSsPfZ*nZuvT}-VwY`F)rrG!j52ke}NAm2EYcpF1$)hP}o z2gM@!MP@E|5E(ppP^=gA=z*$uTQ46N6`$2-59|*;IE^Hn2RnCm>^TT(XoccfxuKF# zFcNB;@hd@}0`R7cc@@m7uE3T*Mq+e>L=E`V?;?Q&MofZP(Yl%%Od~kY&~$5#%KkK) zB=DJ`D$8Vfu03;}9k)Njh8cYrjX#{5VaJW}TBIE_ROj!@b4wWCb=>Y8O~lRz(QYXhbYf#75u?Y^&%-##^qK!ixc4hqh!EUZCLCX7M5Vxqd1VFieq`o-JNhQ1n<;mu3H zwal&vidl;N;M$1iESC{Xoib2G%&7cl*r@~-mV>4jL*~zAxb#1SR3XtS=W$8;9XwOW zh5mpc+8;4oC;Bsnb)v5^R778ANMfG;CVDaGA0lYcKSxl~+Y!uC4cqfZOZxYgepw33 zf;5m@)|RKk65<bj;J*e=#$ z-j2!`8dbh$6fQ8w5oW4+J57(c#L--OOSP!hOesJ$e`U z)QuZ#v0Z66F;!11_%|t$x<;ENedJJBm*o5g>wJMUc4bvOrpH!mBB|F_YtCuK#lqDK zt0S<)Qk|fw@Ya|dh(POuQX2Q1g;7~gh))A_fcYIVr06j(@OoyQ&rAf##3veGYa)a{|e6Pc6VrMQr z{5JV60gJK{!3v?CLC`H?E;J!pmx<>F@mx2W%f^>bqO!uZQV4V50a$FsODy~C0Hs9* zmIaQRQu}8rM zSuQsbnejy7Sl2&V+ZSbqpu^QeN1n*6l*UKi zpWH4RG(a4AN&n{h(_s_GbK(>KP5>au+xa~d_v&$XBksXX^6w?I-I-tB)BEb4-Z%I3 z-rUo>ju?H*He8tRZW`?A&Ftwl_w?5G^zPZy`^cW&=APb*Lg(%{HwSqk&3VQ!Oct|c zEfUHMRC3Xn1sNI^@}kQY>F4jL-UUOA3q%$U8iXUj6p@3Vh5%8m3Z!EK>6Iv942r-8 zFA%Ts~)Pg?)(oky+w7&6v>xwBzq#%M^Fjy6{&fzA}# zG};W>EZQ8}JlX=&z_jd zbCJvCJRG{<>kNsU`;ilm&Tt%oXNCRS>MJJJyJTKNeBh9^jm8jRM89^T$XnX_zfSZ* z#t*o-s95>OXt7o^7X@q*#Z@%M6tJb_aSg^y>k1)`8thx&3%9Z8^Jt6_s7S#QnDXce zuM;msse*-;5>^|vh$WD73sm!P0y!kySk|%dfbD@`4)T!=B2wZ`#Zk)$?DzVf-A%Ur zE0lDO+8!e3yCF89=WuewWI;%n*zv-ZQi9X@TqK3~uFz4I2@`-@g)0?TpfN?4C`0#t>hVlZ=pEk`!p6=R#bH2zQxdm$qa!$I1Ah?xm;{; zA70!>-{HO`VN$zea%T?Mk9h^Mw-EUGitl-73{wOl*?e3abUbFg0W**9KP(fri8}`l zDNMVm|My-d zQtv-GK8!mszWxz156Nhk8#ID3Q|<3gd1X!>#)TLB!gU13S>IUfq5D zx_;@DVvF1jEO_4&Sa81)1(82jD1lPD0S5RF-$1YcEn`?yM;k|j#tSI7n1uYNP(uDM zuZ{h18PTIB6```GgXD#Dh~(CSLHz}i%?2&h;L@XXwZxg^J7K?J$apNT`VCuB6K2-J zUHKwaHkxUSneya<)$Ftv8iPh#^xKx~EHvAL&Vu;ZLZfrOF}y$v)b6yK3s*#=eW7_B zP8LaH)0W+)ccj^G2^q8qbtZ0G7n{k#BIn5tV@SZz1cJ$}78Eu~W4tiin=fD8!;MjPN=2an@Z}Qj##`dvF^&2>|L6Z@oEt+Dt%y@vT zR;L9VT5)l<2Zts?Ym1t-7BeW?ZyNi}AZp;iB!?7m?@U;#*me_YnKz73np-~ZxLKNPikx@SmR(uT>_mM9U z->ZOsk*Ds$@*;g7Pvaju_*6yZpnq_>JjwYP%4JXqkAWb1&5-mJ zj#L;2WlW`|vuD~8DD(d+gg$zvA=dQIohcmWKnEldF;E#=ir9O9dc^5-{ zcJ?qc24rM7G%#~2oRhKM|B|wEzGB From e37afade95031afb89ab9df16a2be2b9843fa0bf Mon Sep 17 00:00:00 2001 From: praisethemoon Date: Sat, 23 May 2026 22:25:18 +0200 Subject: [PATCH 04/21] bump url link --- frameworks/typev/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/typev/Dockerfile b/frameworks/typev/Dockerfile index 77db7f08..fb3d4e8a 100644 --- a/frameworks/typev/Dockerfile +++ b/frameworks/typev/Dockerfile @@ -12,7 +12,7 @@ WORKDIR /app # typev VM — binary + FFI plugins (json, stdcore, stdsocket, ...). Pre-built # (-O3 -march=x86-64-v3, static liburing) and fetched from object storage RUN wget -q -O /tmp/typev.zip \ - https://typev.s3.fr-par.scw.cloud/typev-23-05-2026.zip && \ + https://typev.s3.fr-par.scw.cloud/typev-23-05-2026-v2.zip && \ unzip -q /tmp/typev.zip -d /app && \ rm /tmp/typev.zip From 94d386a8f1dec1f691d8ba28cdb082eaeb680bde Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 23 May 2026 21:31:31 +0000 Subject: [PATCH 05/21] Benchmark results: typev --- site/data/baseline-4096.json | 16 ++++++++-------- site/data/baseline-512.json | 16 ++++++++-------- site/data/current.json | 2 +- site/data/echo-ws-16384.json | 14 +++++++------- site/data/echo-ws-4096.json | 14 +++++++------- site/data/echo-ws-512.json | 14 +++++++------- site/data/echo-ws-pipeline-16384.json | 14 +++++++------- site/data/echo-ws-pipeline-4096.json | 14 +++++++------- site/data/echo-ws-pipeline-512.json | 14 +++++++------- site/data/json-4096.json | 18 +++++++++--------- site/data/limited-conn-4096.json | 18 +++++++++--------- site/data/limited-conn-512.json | 18 +++++++++--------- site/data/pipelined-4096.json | 14 +++++++------- site/data/pipelined-512.json | 14 +++++++------- site/data/static-1024.json | 14 +++++++------- site/data/static-4096.json | 14 +++++++------- site/data/static-6800.json | 14 +++++++------- site/data/upload-256.json | 18 +++++++++--------- site/data/upload-32.json | 18 +++++++++--------- 19 files changed, 139 insertions(+), 139 deletions(-) diff --git a/site/data/baseline-4096.json b/site/data/baseline-4096.json index 00026944..e0015e89 100644 --- a/site/data/baseline-4096.json +++ b/site/data/baseline-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2255667, - "avg_latency": "137us", - "p99_latency": "641us", - "cpu": "6687.6%", - "memory": "551MiB", + "rps": 2338966, + "avg_latency": "155us", + "p99_latency": "634us", + "cpu": "6552.9%", + "memory": "398MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "193.55MB/s", - "input_bw": "174.24MB/s", + "bandwidth": "200.69MB/s", + "input_bw": "180.68MB/s", "reconnects": 0, - "status_2xx": 11278337, + "status_2xx": 11694830, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/baseline-512.json b/site/data/baseline-512.json index f75d5263..1ef382eb 100644 --- a/site/data/baseline-512.json +++ b/site/data/baseline-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2249295, - "avg_latency": "124us", - "p99_latency": "667us", - "cpu": "6693.9%", - "memory": "272MiB", + "rps": 2350301, + "avg_latency": "108us", + "p99_latency": "655us", + "cpu": "6267.2%", + "memory": "156MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "193.01MB/s", - "input_bw": "173.75MB/s", + "bandwidth": "201.66MB/s", + "input_bw": "181.56MB/s", "reconnects": 0, - "status_2xx": 11246479, + "status_2xx": 11751508, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/current.json b/site/data/current.json index f8d0404a..f8816ee0 100644 --- a/site/data/current.json +++ b/site/data/current.json @@ -5,7 +5,7 @@ "threads_per_core": "2", "ram": "251Gi", "os": "Ubuntu 24.04.4 LTS", - "kernel": "6.17.0-22-generic", + "kernel": "6.17.0-29-generic", "docker": "29.3.0", "docker_runtime": "runc", "governor": "performance", diff --git a/site/data/echo-ws-16384.json b/site/data/echo-ws-16384.json index ccffba5c..7e016c0a 100644 --- a/site/data/echo-ws-16384.json +++ b/site/data/echo-ws-16384.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 3018725, - "avg_latency": "160us", - "p99_latency": "812us", - "cpu": "6540.4%", - "memory": "1.1GiB", + "rps": 3100908, + "avg_latency": "230us", + "p99_latency": "1.33ms", + "cpu": "6480.0%", + "memory": "726MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.20MB/s", + "bandwidth": "20.80MB/s", "reconnects": 0, - "status_2xx": 15093629, + "status_2xx": 15504543, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-4096.json b/site/data/echo-ws-4096.json index afc26b89..f2023035 100644 --- a/site/data/echo-ws-4096.json +++ b/site/data/echo-ws-4096.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2998664, - "avg_latency": "157us", - "p99_latency": "570us", - "cpu": "6467.7%", - "memory": "601MiB", + "rps": 3073750, + "avg_latency": "158us", + "p99_latency": "536us", + "cpu": "6298.7%", + "memory": "460MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.01MB/s", + "bandwidth": "20.52MB/s", "reconnects": 0, - "status_2xx": 14993323, + "status_2xx": 15368752, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-512.json b/site/data/echo-ws-512.json index 44c3f1e2..fd49b730 100644 --- a/site/data/echo-ws-512.json +++ b/site/data/echo-ws-512.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2747051, - "avg_latency": "109us", - "p99_latency": "467us", - "cpu": "6758.0%", - "memory": "266MiB", + "rps": 3088007, + "avg_latency": "96us", + "p99_latency": "352us", + "cpu": "6707.9%", + "memory": "177MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.33MB/s", + "bandwidth": "20.61MB/s", "reconnects": 0, - "status_2xx": 13735257, + "status_2xx": 15440035, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-16384.json b/site/data/echo-ws-pipeline-16384.json index 8d20b931..ec7cf830 100644 --- a/site/data/echo-ws-pipeline-16384.json +++ b/site/data/echo-ws-pipeline-16384.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 19062131, - "avg_latency": "295us", - "p99_latency": "1.55ms", - "cpu": "6135.7%", - "memory": "1.1GiB", + "rps": 19588854, + "avg_latency": "296us", + "p99_latency": "1.11ms", + "cpu": "6443.2%", + "memory": "752MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "127.27MB/s", + "bandwidth": "130.81MB/s", "reconnects": 0, - "status_2xx": 95310656, + "status_2xx": 97944272, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-4096.json b/site/data/echo-ws-pipeline-4096.json index db8f4b87..684702e3 100644 --- a/site/data/echo-ws-pipeline-4096.json +++ b/site/data/echo-ws-pipeline-4096.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 19442723, - "avg_latency": "192us", - "p99_latency": "961us", - "cpu": "6415.8%", - "memory": "584MiB", + "rps": 19786896, + "avg_latency": "181us", + "p99_latency": "566us", + "cpu": "6553.4%", + "memory": "402MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "129.76MB/s", + "bandwidth": "132.06MB/s", "reconnects": 0, - "status_2xx": 97213616, + "status_2xx": 98934480, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-512.json b/site/data/echo-ws-pipeline-512.json index 19984578..13d52d69 100644 --- a/site/data/echo-ws-pipeline-512.json +++ b/site/data/echo-ws-pipeline-512.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18755462, - "avg_latency": "156us", - "p99_latency": "132us", - "cpu": "6518.1%", - "memory": "270MiB", + "rps": 18996697, + "avg_latency": "147us", + "p99_latency": "133us", + "cpu": "6438.5%", + "memory": "148MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "125.17MB/s", + "bandwidth": "126.78MB/s", "reconnects": 0, - "status_2xx": 93777311, + "status_2xx": 94983488, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/json-4096.json b/site/data/json-4096.json index dc7c0485..545a340c 100644 --- a/site/data/json-4096.json +++ b/site/data/json-4096.json @@ -1036,19 +1036,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1188956, - "avg_latency": "3.01ms", - "p99_latency": "2.44ms", - "cpu": "6750.8%", - "memory": "892MiB", + "rps": 1230469, + "avg_latency": "2.90ms", + "p99_latency": "2.92ms", + "cpu": "6304.3%", + "memory": "656MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.00GB/s", - "input_bw": "56.69MB/s", - "reconnects": 237396, - "status_2xx": 5944782, + "bandwidth": "4.15GB/s", + "input_bw": "58.67MB/s", + "reconnects": 245756, + "status_2xx": 6152346, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-4096.json b/site/data/limited-conn-4096.json index 24435791..feb0f07f 100644 --- a/site/data/limited-conn-4096.json +++ b/site/data/limited-conn-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1558607, - "avg_latency": "2.59ms", - "p99_latency": "154.30ms", - "cpu": "6484.1%", - "memory": "543MiB", + "rps": 1688305, + "avg_latency": "2.39ms", + "p99_latency": "137.70ms", + "cpu": "6603.3%", + "memory": "523MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "133.74MB/s", - "input_bw": "120.40MB/s", - "reconnects": 779360, - "status_2xx": 7793038, + "bandwidth": "144.87MB/s", + "input_bw": "130.42MB/s", + "reconnects": 844176, + "status_2xx": 8441525, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-512.json b/site/data/limited-conn-512.json index b98fb4a0..5febbd42 100644 --- a/site/data/limited-conn-512.json +++ b/site/data/limited-conn-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1495600, - "avg_latency": "331us", - "p99_latency": "9.00ms", - "cpu": "6598.4%", - "memory": "260MiB", + "rps": 1663785, + "avg_latency": "297us", + "p99_latency": "8.03ms", + "cpu": "6613.0%", + "memory": "213MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "128.33MB/s", - "input_bw": "115.53MB/s", - "reconnects": 747794, - "status_2xx": 7478002, + "bandwidth": "142.77MB/s", + "input_bw": "128.52MB/s", + "reconnects": 831899, + "status_2xx": 8318928, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-4096.json b/site/data/pipelined-4096.json index b210b760..dc06d33b 100644 --- a/site/data/pipelined-4096.json +++ b/site/data/pipelined-4096.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 47449846, - "avg_latency": "270us", - "p99_latency": "1.21ms", - "cpu": "6175.5%", - "memory": "388MiB", + "rps": 49140934, + "avg_latency": "250us", + "p99_latency": "1.14ms", + "cpu": "6120.5%", + "memory": "245MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.98GB/s", + "bandwidth": "4.12GB/s", "reconnects": 0, - "status_2xx": 237249232, + "status_2xx": 245704672, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-512.json b/site/data/pipelined-512.json index 8c7b9a80..f5d2d72f 100644 --- a/site/data/pipelined-512.json +++ b/site/data/pipelined-512.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 45425804, - "avg_latency": "168us", - "p99_latency": "886us", - "cpu": "6319.3%", - "memory": "292MiB", + "rps": 49999385, + "avg_latency": "148us", + "p99_latency": "657us", + "cpu": "6531.9%", + "memory": "181MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.81GB/s", + "bandwidth": "4.19GB/s", "reconnects": 0, - "status_2xx": 227129024, + "status_2xx": 249996928, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-1024.json b/site/data/static-1024.json index 63eb65e7..317d947d 100644 --- a/site/data/static-1024.json +++ b/site/data/static-1024.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1157283, - "avg_latency": "21.41ms", - "p99_latency": "21.41ms", - "cpu": "6133.7%", - "memory": "303MiB", + "rps": 1163730, + "avg_latency": "23.80ms", + "p99_latency": "23.80ms", + "cpu": "6215.6%", + "memory": "190MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.66GB", + "bandwidth": "17.75GB", "reconnects": 0, - "status_2xx": 5902359, + "status_2xx": 5935013, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-4096.json b/site/data/static-4096.json index df0a68da..f7d00e70 100644 --- a/site/data/static-4096.json +++ b/site/data/static-4096.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1174232, - "avg_latency": "43.68ms", - "p99_latency": "43.68ms", - "cpu": "6243.9%", - "memory": "701MiB", + "rps": 1163183, + "avg_latency": "16.42ms", + "p99_latency": "16.42ms", + "cpu": "6256.6%", + "memory": "327MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.91GB", + "bandwidth": "17.75GB", "reconnects": 0, - "status_2xx": 5988623, + "status_2xx": 5931870, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-6800.json b/site/data/static-6800.json index 5c94d216..c11ebddb 100644 --- a/site/data/static-6800.json +++ b/site/data/static-6800.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1159506, - "avg_latency": "34.92ms", - "p99_latency": "34.92ms", - "cpu": "6118.9%", - "memory": "988MiB", + "rps": 1174927, + "avg_latency": "17.94ms", + "p99_latency": "17.94ms", + "cpu": "6152.2%", + "memory": "448MiB", "connections": 6800, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.69GB", + "bandwidth": "17.92GB", "reconnects": 0, - "status_2xx": 5912886, + "status_2xx": 5992266, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-256.json b/site/data/upload-256.json index 1b42fb8c..371f0b60 100644 --- a/site/data/upload-256.json +++ b/site/data/upload-256.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2998, - "avg_latency": "77.97ms", - "p99_latency": "218.10ms", - "cpu": "3660.7%", - "memory": "296MiB", + "rps": 3023, + "avg_latency": "77.60ms", + "p99_latency": "227.30ms", + "cpu": "3738.8%", + "memory": "287MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "278.80KB/s", - "input_bw": "23.78GB/s", - "reconnects": 2973, - "status_2xx": 15080, + "bandwidth": "281.07KB/s", + "input_bw": "23.98GB/s", + "reconnects": 3002, + "status_2xx": 15206, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-32.json b/site/data/upload-32.json index 52d6e9b7..9e05fd3f 100644 --- a/site/data/upload-32.json +++ b/site/data/upload-32.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3057, - "avg_latency": "10.43ms", - "p99_latency": "31.60ms", - "cpu": "1367.9%", - "memory": "192MiB", + "rps": 3156, + "avg_latency": "10.08ms", + "p99_latency": "28.20ms", + "cpu": "1684.7%", + "memory": "186MiB", "connections": 32, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "284.13KB/s", - "input_bw": "24.25GB/s", - "reconnects": 3053, - "status_2xx": 15288, + "bandwidth": "293.84KB/s", + "input_bw": "25.03GB/s", + "reconnects": 3160, + "status_2xx": 15815, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 From dde6085218701e43f3bc0383117ae0f8ece81507 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 23 May 2026 21:41:54 +0000 Subject: [PATCH 06/21] Benchmark results: typev --- site/data/baseline-4096.json | 16 ++++++++-------- site/data/baseline-512.json | 16 ++++++++-------- site/data/echo-ws-16384.json | 14 +++++++------- site/data/echo-ws-4096.json | 14 +++++++------- site/data/echo-ws-512.json | 12 ++++++------ site/data/echo-ws-pipeline-16384.json | 14 +++++++------- site/data/echo-ws-pipeline-4096.json | 14 +++++++------- site/data/echo-ws-pipeline-512.json | 14 +++++++------- site/data/json-4096.json | 18 +++++++++--------- site/data/limited-conn-4096.json | 18 +++++++++--------- site/data/limited-conn-512.json | 18 +++++++++--------- site/data/pipelined-4096.json | 14 +++++++------- site/data/pipelined-512.json | 14 +++++++------- site/data/static-1024.json | 14 +++++++------- site/data/static-4096.json | 14 +++++++------- site/data/static-6800.json | 14 +++++++------- site/data/upload-256.json | 18 +++++++++--------- site/data/upload-32.json | 16 ++++++++-------- 18 files changed, 136 insertions(+), 136 deletions(-) diff --git a/site/data/baseline-4096.json b/site/data/baseline-4096.json index e0015e89..d3929f1c 100644 --- a/site/data/baseline-4096.json +++ b/site/data/baseline-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2338966, - "avg_latency": "155us", - "p99_latency": "634us", - "cpu": "6552.9%", - "memory": "398MiB", + "rps": 2254531, + "avg_latency": "152us", + "p99_latency": "557us", + "cpu": "6423.8%", + "memory": "393MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "200.69MB/s", - "input_bw": "180.68MB/s", + "bandwidth": "193.44MB/s", + "input_bw": "174.16MB/s", "reconnects": 0, - "status_2xx": 11694830, + "status_2xx": 11272658, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/baseline-512.json b/site/data/baseline-512.json index 1ef382eb..682c222a 100644 --- a/site/data/baseline-512.json +++ b/site/data/baseline-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2350301, - "avg_latency": "108us", - "p99_latency": "655us", - "cpu": "6267.2%", - "memory": "156MiB", + "rps": 2278885, + "avg_latency": "117us", + "p99_latency": "598us", + "cpu": "6424.4%", + "memory": "159MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "201.66MB/s", - "input_bw": "181.56MB/s", + "bandwidth": "195.54MB/s", + "input_bw": "176.04MB/s", "reconnects": 0, - "status_2xx": 11751508, + "status_2xx": 11394429, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-16384.json b/site/data/echo-ws-16384.json index 7e016c0a..879d4e70 100644 --- a/site/data/echo-ws-16384.json +++ b/site/data/echo-ws-16384.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 3100908, - "avg_latency": "230us", - "p99_latency": "1.33ms", - "cpu": "6480.0%", - "memory": "726MiB", + "rps": 3039125, + "avg_latency": "178us", + "p99_latency": "647us", + "cpu": "6438.4%", + "memory": "724MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.80MB/s", + "bandwidth": "20.37MB/s", "reconnects": 0, - "status_2xx": 15504543, + "status_2xx": 15195629, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-4096.json b/site/data/echo-ws-4096.json index f2023035..657443d1 100644 --- a/site/data/echo-ws-4096.json +++ b/site/data/echo-ws-4096.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 3073750, - "avg_latency": "158us", - "p99_latency": "536us", - "cpu": "6298.7%", - "memory": "460MiB", + "rps": 3105692, + "avg_latency": "607us", + "p99_latency": "926us", + "cpu": "6216.1%", + "memory": "338MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.52MB/s", + "bandwidth": "20.77MB/s", "reconnects": 0, - "status_2xx": 15368752, + "status_2xx": 15528464, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-512.json b/site/data/echo-ws-512.json index fd49b730..8d5bf01b 100644 --- a/site/data/echo-ws-512.json +++ b/site/data/echo-ws-512.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 3088007, + "rps": 3061424, "avg_latency": "96us", - "p99_latency": "352us", - "cpu": "6707.9%", - "memory": "177MiB", + "p99_latency": "361us", + "cpu": "6557.9%", + "memory": "161MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.61MB/s", + "bandwidth": "20.43MB/s", "reconnects": 0, - "status_2xx": 15440035, + "status_2xx": 15307123, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-16384.json b/site/data/echo-ws-pipeline-16384.json index ec7cf830..1a814cbb 100644 --- a/site/data/echo-ws-pipeline-16384.json +++ b/site/data/echo-ws-pipeline-16384.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 19588854, - "avg_latency": "296us", - "p99_latency": "1.11ms", - "cpu": "6443.2%", - "memory": "752MiB", + "rps": 19251632, + "avg_latency": "225us", + "p99_latency": "552us", + "cpu": "6229.0%", + "memory": "757MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "130.81MB/s", + "bandwidth": "128.55MB/s", "reconnects": 0, - "status_2xx": 97944272, + "status_2xx": 96258160, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-4096.json b/site/data/echo-ws-pipeline-4096.json index 684702e3..356658af 100644 --- a/site/data/echo-ws-pipeline-4096.json +++ b/site/data/echo-ws-pipeline-4096.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 19786896, - "avg_latency": "181us", - "p99_latency": "566us", - "cpu": "6553.4%", - "memory": "402MiB", + "rps": 19350413, + "avg_latency": "191us", + "p99_latency": "354us", + "cpu": "6275.8%", + "memory": "462MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "132.06MB/s", + "bandwidth": "129.12MB/s", "reconnects": 0, - "status_2xx": 98934480, + "status_2xx": 96752068, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-512.json b/site/data/echo-ws-pipeline-512.json index 13d52d69..9d5bfb80 100644 --- a/site/data/echo-ws-pipeline-512.json +++ b/site/data/echo-ws-pipeline-512.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18996697, - "avg_latency": "147us", - "p99_latency": "133us", - "cpu": "6438.5%", - "memory": "148MiB", + "rps": 18714636, + "avg_latency": "144us", + "p99_latency": "131us", + "cpu": "6520.0%", + "memory": "175MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "126.78MB/s", + "bandwidth": "124.90MB/s", "reconnects": 0, - "status_2xx": 94983488, + "status_2xx": 93573184, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/json-4096.json b/site/data/json-4096.json index 545a340c..807cd986 100644 --- a/site/data/json-4096.json +++ b/site/data/json-4096.json @@ -1036,19 +1036,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1230469, - "avg_latency": "2.90ms", - "p99_latency": "2.92ms", - "cpu": "6304.3%", - "memory": "656MiB", + "rps": 1209639, + "avg_latency": "2.96ms", + "p99_latency": "2.96ms", + "cpu": "6253.6%", + "memory": "640MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.15GB/s", - "input_bw": "58.67MB/s", - "reconnects": 245756, - "status_2xx": 6152346, + "bandwidth": "4.07GB/s", + "input_bw": "57.68MB/s", + "reconnects": 241628, + "status_2xx": 6048199, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-4096.json b/site/data/limited-conn-4096.json index feb0f07f..88bb7c24 100644 --- a/site/data/limited-conn-4096.json +++ b/site/data/limited-conn-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1688305, - "avg_latency": "2.39ms", - "p99_latency": "137.70ms", - "cpu": "6603.3%", - "memory": "523MiB", + "rps": 1690228, + "avg_latency": "2.38ms", + "p99_latency": "141.10ms", + "cpu": "6582.5%", + "memory": "500MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "144.87MB/s", - "input_bw": "130.42MB/s", - "reconnects": 844176, - "status_2xx": 8441525, + "bandwidth": "145.03MB/s", + "input_bw": "130.57MB/s", + "reconnects": 845136, + "status_2xx": 8451140, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-512.json b/site/data/limited-conn-512.json index 5febbd42..716b7ad4 100644 --- a/site/data/limited-conn-512.json +++ b/site/data/limited-conn-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1663785, - "avg_latency": "297us", - "p99_latency": "8.03ms", - "cpu": "6613.0%", - "memory": "213MiB", + "rps": 1626895, + "avg_latency": "304us", + "p99_latency": "8.29ms", + "cpu": "6445.5%", + "memory": "204MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "142.77MB/s", - "input_bw": "128.52MB/s", - "reconnects": 831899, - "status_2xx": 8318928, + "bandwidth": "139.60MB/s", + "input_bw": "125.67MB/s", + "reconnects": 813427, + "status_2xx": 8134476, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-4096.json b/site/data/pipelined-4096.json index dc06d33b..7297cdc0 100644 --- a/site/data/pipelined-4096.json +++ b/site/data/pipelined-4096.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 49140934, - "avg_latency": "250us", - "p99_latency": "1.14ms", - "cpu": "6120.5%", - "memory": "245MiB", + "rps": 49708790, + "avg_latency": "244us", + "p99_latency": "1.16ms", + "cpu": "6275.9%", + "memory": "248MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "4.12GB/s", + "bandwidth": "4.17GB/s", "reconnects": 0, - "status_2xx": 245704672, + "status_2xx": 248543952, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-512.json b/site/data/pipelined-512.json index f5d2d72f..b4a0ff4a 100644 --- a/site/data/pipelined-512.json +++ b/site/data/pipelined-512.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 49999385, - "avg_latency": "148us", - "p99_latency": "657us", - "cpu": "6531.9%", - "memory": "181MiB", + "rps": 48985094, + "avg_latency": "155us", + "p99_latency": "650us", + "cpu": "6406.1%", + "memory": "175MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "4.19GB/s", + "bandwidth": "4.10GB/s", "reconnects": 0, - "status_2xx": 249996928, + "status_2xx": 244925471, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-1024.json b/site/data/static-1024.json index 317d947d..0a1d31aa 100644 --- a/site/data/static-1024.json +++ b/site/data/static-1024.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1163730, - "avg_latency": "23.80ms", - "p99_latency": "23.80ms", - "cpu": "6215.6%", - "memory": "190MiB", + "rps": 1142516, + "avg_latency": "21.96ms", + "p99_latency": "21.96ms", + "cpu": "6402.2%", + "memory": "225MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.75GB", + "bandwidth": "17.43GB", "reconnects": 0, - "status_2xx": 5935013, + "status_2xx": 5813206, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-4096.json b/site/data/static-4096.json index f7d00e70..5dd73436 100644 --- a/site/data/static-4096.json +++ b/site/data/static-4096.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1163183, - "avg_latency": "16.42ms", - "p99_latency": "16.42ms", - "cpu": "6256.6%", - "memory": "327MiB", + "rps": 1162909, + "avg_latency": "25.98ms", + "p99_latency": "25.98ms", + "cpu": "6094.1%", + "memory": "326MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.75GB", + "bandwidth": "17.74GB", "reconnects": 0, - "status_2xx": 5931870, + "status_2xx": 5930493, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-6800.json b/site/data/static-6800.json index c11ebddb..d6a27023 100644 --- a/site/data/static-6800.json +++ b/site/data/static-6800.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1174927, - "avg_latency": "17.94ms", - "p99_latency": "17.94ms", - "cpu": "6152.2%", - "memory": "448MiB", + "rps": 1163376, + "avg_latency": "32.38ms", + "p99_latency": "32.38ms", + "cpu": "6380.5%", + "memory": "601MiB", "connections": 6800, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.92GB", + "bandwidth": "17.75GB", "reconnects": 0, - "status_2xx": 5992266, + "status_2xx": 5933473, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-256.json b/site/data/upload-256.json index 371f0b60..951a6c48 100644 --- a/site/data/upload-256.json +++ b/site/data/upload-256.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3023, - "avg_latency": "77.60ms", - "p99_latency": "227.30ms", - "cpu": "3738.8%", - "memory": "287MiB", + "rps": 3048, + "avg_latency": "77.17ms", + "p99_latency": "240.60ms", + "cpu": "3479.0%", + "memory": "271MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "281.07KB/s", - "input_bw": "23.98GB/s", - "reconnects": 3002, - "status_2xx": 15206, + "bandwidth": "283.49KB/s", + "input_bw": "24.18GB/s", + "reconnects": 3028, + "status_2xx": 15334, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-32.json b/site/data/upload-32.json index 9e05fd3f..b1865687 100644 --- a/site/data/upload-32.json +++ b/site/data/upload-32.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3156, - "avg_latency": "10.08ms", + "rps": 3150, + "avg_latency": "10.12ms", "p99_latency": "28.20ms", - "cpu": "1684.7%", - "memory": "186MiB", + "cpu": "1674.9%", + "memory": "190MiB", "connections": 32, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "293.84KB/s", - "input_bw": "25.03GB/s", - "reconnects": 3160, - "status_2xx": 15815, + "bandwidth": "292.81KB/s", + "input_bw": "24.99GB/s", + "reconnects": 3150, + "status_2xx": 15751, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 From af2c950ca0f504a2a418ef9f9c084b94f34eabe8 Mon Sep 17 00:00:00 2001 From: praisethemoon Date: Sun, 24 May 2026 11:42:01 +0200 Subject: [PATCH 07/21] typev: no accept on main --- .../typev/bundle/benchmark-code/src/main.tc | 14 +------------- frameworks/typev/bundle/output.tvbc | Bin 24417 -> 24249 bytes 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/frameworks/typev/bundle/benchmark-code/src/main.tc b/frameworks/typev/bundle/benchmark-code/src/main.tc index c6cc7975..af5e117a 100644 --- a/frameworks/typev/bundle/benchmark-code/src/main.tc +++ b/frameworks/typev/bundle/benchmark-code/src/main.tc @@ -279,22 +279,10 @@ fn accept_loop() -> void { fn main() -> uint { println("typev HttpArena server listening on :8080") + // accept ONLY on spawned loops foreach i in 0, 3, 1 { spawn accept_loop() } - let server = tcp_listen(PORT, 4096) - if server < 0 { - println("Failed to start server") - return 1u - } - - while true { - let client = tcp_accept(server) - if client >= 0 { - spawn handle_client(client) - } - } - return 0u } diff --git a/frameworks/typev/bundle/output.tvbc b/frameworks/typev/bundle/output.tvbc index bf93a260abb5638e56e26c251831aa3d2ec043b6..c16e48b493860e57a233e04d239dc269e954cf2a 100644 GIT binary patch delta 510 zcmXX>&r6h16uswtpMxV3wJ=1?e%KEwL2wk&vGH?+uu(~3RBDl+ZpJ~>8Le!lrqar^ zti1gq&_F`m>TOX$L4+>a89}%SY9ZpnKS8|TH$FJ`+;iV~@4WZ#8$N%9zbV`qJxD}v zm;Fa0dC5VbEknZ z*)HEPxFs7EQwAySs~ks~w<-g;&BcLhxWlQy0y11u6~$dnR{h02xm^7pxG&W;yFQG2 z0TcWyw1fweYB&r$lvyV~7mxUT^F-++47u+lP~HJ0%k6a;g+=*VZ63N9_QOZ?-3NNi zM?3&E^0;3`Ru_`3^SHwG$Mu|kTsiBDtI6H(*KcP1nxQ(TB746fqk0gH R-h2>_%ZGH(v_A-Yya$2OcP9V< delta 683 zcmXX?OGs2<6h7a*|J->fVXq+^rY1zCng}1!gBV{R&Y%@2qAh|U2PPdT#>q^rJEc}? znRR-(Xyd9DE#wa>P(#9kh-e|S6Kc_}Ha#E$>)fk9ob#Q>ch33Gc{z{I3-CA8x3?7$ z(e$i8tU^Jt8k46psjf)wOr$rL%;qA!scc^=dxBR~OsCYp5VATIDF%9Ve&-Q|9M6}& z!#OUFJwhLsl`rGG{#!n2pkI&g-VR*QPxh1n1Nvk1yMaOdYTvklAx=~d<05~ktimNW zs!qb@WYrAvtg72^nLDdja77>7{{>S6@<-H zwBR#|Eb^5|%QSiNPfbPSC3DWJ2wu>lh=V)4PQD;7ovb+}HGWd1LQT^j`*pxWO9Aq~ z4M6-~cA9>Q{IFpWEn1*)5Cvqk3Gx;Qf-D}3@5KZ^k2m55uf~UPlLr&WG0E=}Z*a@K z#uQgH&)_yMH#gyq4!0ZzSa%#1xU2ctR}=Smpf!s+{?_^l_w`a+0(ihh?a%N~FSSPv zPnV23#lJfyj2dFQGpMIKr>1lKoR>=9?p-$qK}84-t{kvhn|Gg#wg lgyiIVWXm Date: Sun, 24 May 2026 12:02:41 +0200 Subject: [PATCH 08/21] typev: main awaits process --- .../typev/bundle/benchmark-code/src/main.tc | 4 +++- frameworks/typev/bundle/output.tvbc | Bin 24249 -> 24275 bytes 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frameworks/typev/bundle/benchmark-code/src/main.tc b/frameworks/typev/bundle/benchmark-code/src/main.tc index af5e117a..15495050 100644 --- a/frameworks/typev/bundle/benchmark-code/src/main.tc +++ b/frameworks/typev/bundle/benchmark-code/src/main.tc @@ -280,9 +280,11 @@ fn main() -> uint { println("typev HttpArena server listening on :8080") // accept ONLY on spawned loops - foreach i in 0, 3, 1 { + let keepalive = spawn accept_loop() + foreach i in 0, 2, 1 { spawn accept_loop() } + let (_r, _s) = keepalive.await() return 0u } diff --git a/frameworks/typev/bundle/output.tvbc b/frameworks/typev/bundle/output.tvbc index c16e48b493860e57a233e04d239dc269e954cf2a..bf63e6adfebfc9d3ee5f2570001ecc966491c66d 100644 GIT binary patch delta 106 zcmdnFm+|sm#tpolexeLOz{tSG2c%d)Y#?9)VrDRpk%1q`W@BIw15y@1ycVbyB)^A= mh2b!eaU3WH5@H03F)}kv_ViTcIKjrwc#7>m Date: Sun, 24 May 2026 10:30:08 +0000 Subject: [PATCH 09/21] Benchmark results: typev limited-conn --- site/data/baseline-4096.json | 16 ++++++++-------- site/data/baseline-512.json | 16 ++++++++-------- site/data/echo-ws-16384.json | 12 ++++++------ site/data/echo-ws-4096.json | 14 +++++++------- site/data/echo-ws-512.json | 14 +++++++------- site/data/echo-ws-pipeline-16384.json | 14 +++++++------- site/data/echo-ws-pipeline-4096.json | 14 +++++++------- site/data/echo-ws-pipeline-512.json | 14 +++++++------- site/data/json-4096.json | 18 +++++++++--------- site/data/limited-conn-4096.json | 18 +++++++++--------- site/data/limited-conn-512.json | 18 +++++++++--------- site/data/pipelined-4096.json | 14 +++++++------- site/data/pipelined-512.json | 14 +++++++------- site/data/static-1024.json | 14 +++++++------- site/data/static-4096.json | 14 +++++++------- site/data/static-6800.json | 14 +++++++------- site/data/upload-256.json | 18 +++++++++--------- site/data/upload-32.json | 18 +++++++++--------- 18 files changed, 137 insertions(+), 137 deletions(-) diff --git a/site/data/baseline-4096.json b/site/data/baseline-4096.json index d3929f1c..f146e515 100644 --- a/site/data/baseline-4096.json +++ b/site/data/baseline-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2254531, - "avg_latency": "152us", - "p99_latency": "557us", - "cpu": "6423.8%", - "memory": "393MiB", + "rps": 2238245, + "avg_latency": "160us", + "p99_latency": "681us", + "cpu": "6230.3%", + "memory": "448MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "193.44MB/s", - "input_bw": "174.16MB/s", + "bandwidth": "192.04MB/s", + "input_bw": "172.90MB/s", "reconnects": 0, - "status_2xx": 11272658, + "status_2xx": 11191228, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/baseline-512.json b/site/data/baseline-512.json index 682c222a..2e4e9899 100644 --- a/site/data/baseline-512.json +++ b/site/data/baseline-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2278885, - "avg_latency": "117us", - "p99_latency": "598us", - "cpu": "6424.4%", - "memory": "159MiB", + "rps": 2230325, + "avg_latency": "125us", + "p99_latency": "665us", + "cpu": "6378.6%", + "memory": "211MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "195.54MB/s", - "input_bw": "176.04MB/s", + "bandwidth": "191.36MB/s", + "input_bw": "172.29MB/s", "reconnects": 0, - "status_2xx": 11394429, + "status_2xx": 11151628, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-16384.json b/site/data/echo-ws-16384.json index 879d4e70..0e2205ae 100644 --- a/site/data/echo-ws-16384.json +++ b/site/data/echo-ws-16384.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 3039125, - "avg_latency": "178us", - "p99_latency": "647us", - "cpu": "6438.4%", - "memory": "724MiB", + "rps": 3048278, + "avg_latency": "170us", + "p99_latency": "1.53ms", + "cpu": "6266.4%", + "memory": "751MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, "bandwidth": "20.37MB/s", "reconnects": 0, - "status_2xx": 15195629, + "status_2xx": 15241392, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-4096.json b/site/data/echo-ws-4096.json index 657443d1..3c856a36 100644 --- a/site/data/echo-ws-4096.json +++ b/site/data/echo-ws-4096.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 3105692, - "avg_latency": "607us", - "p99_latency": "926us", - "cpu": "6216.1%", - "memory": "338MiB", + "rps": 2981735, + "avg_latency": "145us", + "p99_latency": "548us", + "cpu": "6441.7%", + "memory": "450MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.77MB/s", + "bandwidth": "19.90MB/s", "reconnects": 0, - "status_2xx": 15528464, + "status_2xx": 14908675, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-512.json b/site/data/echo-ws-512.json index 8d5bf01b..8551d41b 100644 --- a/site/data/echo-ws-512.json +++ b/site/data/echo-ws-512.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 3061424, - "avg_latency": "96us", - "p99_latency": "361us", - "cpu": "6557.9%", - "memory": "161MiB", + "rps": 3017632, + "avg_latency": "105us", + "p99_latency": "480us", + "cpu": "6739.4%", + "memory": "269MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.43MB/s", + "bandwidth": "20.14MB/s", "reconnects": 0, - "status_2xx": 15307123, + "status_2xx": 15088164, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-16384.json b/site/data/echo-ws-pipeline-16384.json index 1a814cbb..98010ccf 100644 --- a/site/data/echo-ws-pipeline-16384.json +++ b/site/data/echo-ws-pipeline-16384.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 19251632, - "avg_latency": "225us", - "p99_latency": "552us", - "cpu": "6229.0%", - "memory": "757MiB", + "rps": 19139286, + "avg_latency": "308us", + "p99_latency": "1.04ms", + "cpu": "6358.2%", + "memory": "458MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "128.55MB/s", + "bandwidth": "127.73MB/s", "reconnects": 0, - "status_2xx": 96258160, + "status_2xx": 95696432, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-4096.json b/site/data/echo-ws-pipeline-4096.json index 356658af..43cae863 100644 --- a/site/data/echo-ws-pipeline-4096.json +++ b/site/data/echo-ws-pipeline-4096.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 19350413, - "avg_latency": "191us", - "p99_latency": "354us", - "cpu": "6275.8%", - "memory": "462MiB", + "rps": 19362240, + "avg_latency": "184us", + "p99_latency": "846us", + "cpu": "6677.0%", + "memory": "422MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "129.12MB/s", + "bandwidth": "129.22MB/s", "reconnects": 0, - "status_2xx": 96752068, + "status_2xx": 96811200, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-512.json b/site/data/echo-ws-pipeline-512.json index 9d5bfb80..f026551e 100644 --- a/site/data/echo-ws-pipeline-512.json +++ b/site/data/echo-ws-pipeline-512.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18714636, - "avg_latency": "144us", - "p99_latency": "131us", - "cpu": "6520.0%", - "memory": "175MiB", + "rps": 18460480, + "avg_latency": "166us", + "p99_latency": "140us", + "cpu": "6464.7%", + "memory": "273MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "124.90MB/s", + "bandwidth": "123.20MB/s", "reconnects": 0, - "status_2xx": 93573184, + "status_2xx": 92302400, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/json-4096.json b/site/data/json-4096.json index 807cd986..8b25083f 100644 --- a/site/data/json-4096.json +++ b/site/data/json-4096.json @@ -1036,19 +1036,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1209639, - "avg_latency": "2.96ms", - "p99_latency": "2.96ms", - "cpu": "6253.6%", - "memory": "640MiB", + "rps": 1194865, + "avg_latency": "3.00ms", + "p99_latency": "2.70ms", + "cpu": "6751.2%", + "memory": "673MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.07GB/s", - "input_bw": "57.68MB/s", - "reconnects": 241628, - "status_2xx": 6048199, + "bandwidth": "4.02GB/s", + "input_bw": "56.98MB/s", + "reconnects": 238578, + "status_2xx": 5974326, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-4096.json b/site/data/limited-conn-4096.json index 88bb7c24..c8da6b21 100644 --- a/site/data/limited-conn-4096.json +++ b/site/data/limited-conn-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1690228, - "avg_latency": "2.38ms", - "p99_latency": "141.10ms", - "cpu": "6582.5%", - "memory": "500MiB", + "rps": 1672266, + "avg_latency": "2.43ms", + "p99_latency": "33.00ms", + "cpu": "6592.2%", + "memory": "467MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "145.03MB/s", - "input_bw": "130.57MB/s", - "reconnects": 845136, - "status_2xx": 8451140, + "bandwidth": "143.49MB/s", + "input_bw": "129.18MB/s", + "reconnects": 836104, + "status_2xx": 8361330, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-512.json b/site/data/limited-conn-512.json index 716b7ad4..461e1ee6 100644 --- a/site/data/limited-conn-512.json +++ b/site/data/limited-conn-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1626895, - "avg_latency": "304us", - "p99_latency": "8.29ms", - "cpu": "6445.5%", - "memory": "204MiB", + "rps": 1740036, + "avg_latency": "284us", + "p99_latency": "4.37ms", + "cpu": "6542.5%", + "memory": "308MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "139.60MB/s", - "input_bw": "125.67MB/s", - "reconnects": 813427, - "status_2xx": 8134476, + "bandwidth": "149.29MB/s", + "input_bw": "134.41MB/s", + "reconnects": 869886, + "status_2xx": 8700183, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-4096.json b/site/data/pipelined-4096.json index 7297cdc0..f4f64a9b 100644 --- a/site/data/pipelined-4096.json +++ b/site/data/pipelined-4096.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 49708790, - "avg_latency": "244us", - "p99_latency": "1.16ms", - "cpu": "6275.9%", - "memory": "248MiB", + "rps": 46959193, + "avg_latency": "262us", + "p99_latency": "1.20ms", + "cpu": "6257.5%", + "memory": "380MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "4.17GB/s", + "bandwidth": "3.93GB/s", "reconnects": 0, - "status_2xx": 248543952, + "status_2xx": 234795968, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-512.json b/site/data/pipelined-512.json index b4a0ff4a..ea48cd39 100644 --- a/site/data/pipelined-512.json +++ b/site/data/pipelined-512.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 48985094, - "avg_latency": "155us", - "p99_latency": "650us", - "cpu": "6406.1%", - "memory": "175MiB", + "rps": 48455952, + "avg_latency": "167us", + "p99_latency": "917us", + "cpu": "6464.7%", + "memory": "289MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "4.10GB/s", + "bandwidth": "4.06GB/s", "reconnects": 0, - "status_2xx": 244925471, + "status_2xx": 242279760, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-1024.json b/site/data/static-1024.json index 0a1d31aa..148cc892 100644 --- a/site/data/static-1024.json +++ b/site/data/static-1024.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1142516, - "avg_latency": "21.96ms", - "p99_latency": "21.96ms", - "cpu": "6402.2%", - "memory": "225MiB", + "rps": 1135054, + "avg_latency": "19.41ms", + "p99_latency": "19.41ms", + "cpu": "6372.0%", + "memory": "295MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.43GB", + "bandwidth": "17.32GB", "reconnects": 0, - "status_2xx": 5813206, + "status_2xx": 5788327, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-4096.json b/site/data/static-4096.json index 5dd73436..4f3e1202 100644 --- a/site/data/static-4096.json +++ b/site/data/static-4096.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1162909, - "avg_latency": "25.98ms", - "p99_latency": "25.98ms", - "cpu": "6094.1%", - "memory": "326MiB", + "rps": 1166570, + "avg_latency": "62.92ms", + "p99_latency": "62.92ms", + "cpu": "6157.0%", + "memory": "670MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.74GB", + "bandwidth": "17.80GB", "reconnects": 0, - "status_2xx": 5930493, + "status_2xx": 5949621, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-6800.json b/site/data/static-6800.json index d6a27023..0d5c28fa 100644 --- a/site/data/static-6800.json +++ b/site/data/static-6800.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1163376, - "avg_latency": "32.38ms", - "p99_latency": "32.38ms", - "cpu": "6380.5%", - "memory": "601MiB", + "rps": 1146000, + "avg_latency": "32.67ms", + "p99_latency": "32.67ms", + "cpu": "6427.0%", + "memory": "1.4GiB", "connections": 6800, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.75GB", + "bandwidth": "17.48GB", "reconnects": 0, - "status_2xx": 5933473, + "status_2xx": 5844717, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-256.json b/site/data/upload-256.json index 951a6c48..190b6402 100644 --- a/site/data/upload-256.json +++ b/site/data/upload-256.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3048, - "avg_latency": "77.17ms", - "p99_latency": "240.60ms", - "cpu": "3479.0%", - "memory": "271MiB", + "rps": 3009, + "avg_latency": "77.92ms", + "p99_latency": "226.90ms", + "cpu": "3569.8%", + "memory": "297MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "283.49KB/s", - "input_bw": "24.18GB/s", - "reconnects": 3028, - "status_2xx": 15334, + "bandwidth": "280.12KB/s", + "input_bw": "23.87GB/s", + "reconnects": 2995, + "status_2xx": 15138, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-32.json b/site/data/upload-32.json index b1865687..33aec010 100644 --- a/site/data/upload-32.json +++ b/site/data/upload-32.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3150, - "avg_latency": "10.12ms", - "p99_latency": "28.20ms", - "cpu": "1674.9%", - "memory": "190MiB", + "rps": 3056, + "avg_latency": "10.45ms", + "p99_latency": "31.20ms", + "cpu": "1979.2%", + "memory": "201MiB", "connections": 32, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "292.81KB/s", - "input_bw": "24.99GB/s", - "reconnects": 3150, - "status_2xx": 15751, + "bandwidth": "284.18KB/s", + "input_bw": "24.24GB/s", + "reconnects": 3055, + "status_2xx": 15284, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 From fd96dc37a1401aae406b26f4c6d277d17b8ea1e5 Mon Sep 17 00:00:00 2001 From: praisethemoon Date: Sun, 24 May 2026 16:16:19 +0200 Subject: [PATCH 10/21] docs(bench): document await-keepalive liveness rationale in main.tc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The await-keepalive topology (spawn one accept_loop awaitable + keepalive.await(), rest fire-and-forget) keeps the runtime alive while leaving main_w parked so it never feeds the global queue — the limited-conn feeder-fix. Validated 32/0 on the -v2 arena VM (incl WebSocket 7/7, static-404, server-alive). Comment-only; the matching output.tvbc bundle is already committed. --- frameworks/typev/bundle/benchmark-code/src/main.tc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frameworks/typev/bundle/benchmark-code/src/main.tc b/frameworks/typev/bundle/benchmark-code/src/main.tc index 15495050..135083bf 100644 --- a/frameworks/typev/bundle/benchmark-code/src/main.tc +++ b/frameworks/typev/bundle/benchmark-code/src/main.tc @@ -279,7 +279,9 @@ fn accept_loop() -> void { fn main() -> uint { println("typev HttpArena server listening on :8080") - // accept ONLY on spawned loops + // Liveness via await: spawn one accept loop awaitable FIRST, rest + // fire-and-forget, then block root on it (never returns). main_w parks, + // never feeds global. spawn/await non-adjacent to avoid fused PROC_RUN_AWAIT. let keepalive = spawn accept_loop() foreach i in 0, 2, 1 { spawn accept_loop() From 21e96268da4ec2d9689c754a196455cc33c87edd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 14:36:53 +0000 Subject: [PATCH 11/21] Benchmark results: typev --- site/data/baseline-4096.json | 16 ++++++++-------- site/data/baseline-512.json | 16 ++++++++-------- site/data/echo-ws-16384.json | 14 +++++++------- site/data/echo-ws-4096.json | 14 +++++++------- site/data/echo-ws-512.json | 14 +++++++------- site/data/echo-ws-pipeline-16384.json | 14 +++++++------- site/data/echo-ws-pipeline-4096.json | 14 +++++++------- site/data/echo-ws-pipeline-512.json | 14 +++++++------- site/data/json-4096.json | 18 +++++++++--------- site/data/limited-conn-4096.json | 18 +++++++++--------- site/data/limited-conn-512.json | 16 ++++++++-------- site/data/pipelined-4096.json | 14 +++++++------- site/data/pipelined-512.json | 14 +++++++------- site/data/static-1024.json | 14 +++++++------- site/data/static-4096.json | 14 +++++++------- site/data/static-6800.json | 14 +++++++------- site/data/upload-256.json | 18 +++++++++--------- site/data/upload-32.json | 18 +++++++++--------- 18 files changed, 137 insertions(+), 137 deletions(-) diff --git a/site/data/baseline-4096.json b/site/data/baseline-4096.json index f146e515..d2e12520 100644 --- a/site/data/baseline-4096.json +++ b/site/data/baseline-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2238245, - "avg_latency": "160us", - "p99_latency": "681us", - "cpu": "6230.3%", - "memory": "448MiB", + "rps": 2167738, + "avg_latency": "205us", + "p99_latency": "789us", + "cpu": "6288.5%", + "memory": "221MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "192.04MB/s", - "input_bw": "172.90MB/s", + "bandwidth": "185.99MB/s", + "input_bw": "167.45MB/s", "reconnects": 0, - "status_2xx": 11191228, + "status_2xx": 10838694, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/baseline-512.json b/site/data/baseline-512.json index 2e4e9899..b9b004b7 100644 --- a/site/data/baseline-512.json +++ b/site/data/baseline-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2230325, - "avg_latency": "125us", - "p99_latency": "665us", - "cpu": "6378.6%", - "memory": "211MiB", + "rps": 2194846, + "avg_latency": "113us", + "p99_latency": "674us", + "cpu": "6524.2%", + "memory": "179MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "191.36MB/s", - "input_bw": "172.29MB/s", + "bandwidth": "188.34MB/s", + "input_bw": "169.55MB/s", "reconnects": 0, - "status_2xx": 11151628, + "status_2xx": 10974230, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-16384.json b/site/data/echo-ws-16384.json index 0e2205ae..f9c8942a 100644 --- a/site/data/echo-ws-16384.json +++ b/site/data/echo-ws-16384.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 3048278, - "avg_latency": "170us", - "p99_latency": "1.53ms", - "cpu": "6266.4%", - "memory": "751MiB", + "rps": 2706911, + "avg_latency": "160us", + "p99_latency": "1.09ms", + "cpu": "6558.3%", + "memory": "755MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.37MB/s", + "bandwidth": "18.16MB/s", "reconnects": 0, - "status_2xx": 15241392, + "status_2xx": 13534555, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-4096.json b/site/data/echo-ws-4096.json index 3c856a36..76563bd9 100644 --- a/site/data/echo-ws-4096.json +++ b/site/data/echo-ws-4096.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2981735, - "avg_latency": "145us", - "p99_latency": "548us", - "cpu": "6441.7%", - "memory": "450MiB", + "rps": 2789860, + "avg_latency": "162us", + "p99_latency": "631us", + "cpu": "6516.7%", + "memory": "396MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.90MB/s", + "bandwidth": "18.62MB/s", "reconnects": 0, - "status_2xx": 14908675, + "status_2xx": 13949303, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-512.json b/site/data/echo-ws-512.json index 8551d41b..737269d8 100644 --- a/site/data/echo-ws-512.json +++ b/site/data/echo-ws-512.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 3017632, - "avg_latency": "105us", - "p99_latency": "480us", - "cpu": "6739.4%", - "memory": "269MiB", + "rps": 2739949, + "avg_latency": "98us", + "p99_latency": "460us", + "cpu": "6540.7%", + "memory": "158MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "20.14MB/s", + "bandwidth": "18.29MB/s", "reconnects": 0, - "status_2xx": 15088164, + "status_2xx": 13699749, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-16384.json b/site/data/echo-ws-pipeline-16384.json index 98010ccf..365d4855 100644 --- a/site/data/echo-ws-pipeline-16384.json +++ b/site/data/echo-ws-pipeline-16384.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 19139286, - "avg_latency": "308us", - "p99_latency": "1.04ms", - "cpu": "6358.2%", - "memory": "458MiB", + "rps": 18058022, + "avg_latency": "349us", + "p99_latency": "2.64ms", + "cpu": "6095.7%", + "memory": "400MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "127.73MB/s", + "bandwidth": "120.52MB/s", "reconnects": 0, - "status_2xx": 95696432, + "status_2xx": 90290112, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-4096.json b/site/data/echo-ws-pipeline-4096.json index 43cae863..2da47f2c 100644 --- a/site/data/echo-ws-pipeline-4096.json +++ b/site/data/echo-ws-pipeline-4096.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 19362240, - "avg_latency": "184us", - "p99_latency": "846us", - "cpu": "6677.0%", - "memory": "422MiB", + "rps": 17986572, + "avg_latency": "183us", + "p99_latency": "277us", + "cpu": "6379.9%", + "memory": "390MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "129.22MB/s", + "bandwidth": "120.04MB/s", "reconnects": 0, - "status_2xx": 96811200, + "status_2xx": 89932864, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-512.json b/site/data/echo-ws-pipeline-512.json index f026551e..d5757c15 100644 --- a/site/data/echo-ws-pipeline-512.json +++ b/site/data/echo-ws-pipeline-512.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18460480, - "avg_latency": "166us", - "p99_latency": "140us", - "cpu": "6464.7%", - "memory": "273MiB", + "rps": 18399766, + "avg_latency": "148us", + "p99_latency": "134us", + "cpu": "6427.3%", + "memory": "181MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "123.20MB/s", + "bandwidth": "122.80MB/s", "reconnects": 0, - "status_2xx": 92302400, + "status_2xx": 91998832, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/json-4096.json b/site/data/json-4096.json index 8b25083f..2b694dc7 100644 --- a/site/data/json-4096.json +++ b/site/data/json-4096.json @@ -1036,19 +1036,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1194865, - "avg_latency": "3.00ms", - "p99_latency": "2.70ms", - "cpu": "6751.2%", - "memory": "673MiB", + "rps": 1230003, + "avg_latency": "2.95ms", + "p99_latency": "86.10ms", + "cpu": "6650.1%", + "memory": "619MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.02GB/s", - "input_bw": "56.98MB/s", - "reconnects": 238578, - "status_2xx": 5974326, + "bandwidth": "4.14GB/s", + "input_bw": "58.65MB/s", + "reconnects": 245510, + "status_2xx": 6150017, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-4096.json b/site/data/limited-conn-4096.json index c8da6b21..65859416 100644 --- a/site/data/limited-conn-4096.json +++ b/site/data/limited-conn-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1672266, - "avg_latency": "2.43ms", - "p99_latency": "33.00ms", - "cpu": "6592.2%", - "memory": "467MiB", + "rps": 1645090, + "avg_latency": "2.47ms", + "p99_latency": "36.70ms", + "cpu": "6370.4%", + "memory": "534MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "143.49MB/s", - "input_bw": "129.18MB/s", - "reconnects": 836104, - "status_2xx": 8361330, + "bandwidth": "141.16MB/s", + "input_bw": "127.08MB/s", + "reconnects": 822663, + "status_2xx": 8225454, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-512.json b/site/data/limited-conn-512.json index 461e1ee6..6cd61f88 100644 --- a/site/data/limited-conn-512.json +++ b/site/data/limited-conn-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1740036, + "rps": 1737129, "avg_latency": "284us", - "p99_latency": "4.37ms", - "cpu": "6542.5%", - "memory": "308MiB", + "p99_latency": "3.96ms", + "cpu": "6566.8%", + "memory": "318MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "149.29MB/s", - "input_bw": "134.41MB/s", - "reconnects": 869886, - "status_2xx": 8700183, + "bandwidth": "149.06MB/s", + "input_bw": "134.19MB/s", + "reconnects": 868569, + "status_2xx": 8685646, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-4096.json b/site/data/pipelined-4096.json index f4f64a9b..eede9733 100644 --- a/site/data/pipelined-4096.json +++ b/site/data/pipelined-4096.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 46959193, - "avg_latency": "262us", - "p99_latency": "1.20ms", - "cpu": "6257.5%", - "memory": "380MiB", + "rps": 44172745, + "avg_latency": "199us", + "p99_latency": "740us", + "cpu": "6414.9%", + "memory": "397MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.93GB/s", + "bandwidth": "3.70GB/s", "reconnects": 0, - "status_2xx": 234795968, + "status_2xx": 220863728, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-512.json b/site/data/pipelined-512.json index ea48cd39..67f7e471 100644 --- a/site/data/pipelined-512.json +++ b/site/data/pipelined-512.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 48455952, - "avg_latency": "167us", - "p99_latency": "917us", - "cpu": "6464.7%", - "memory": "289MiB", + "rps": 44678003, + "avg_latency": "148us", + "p99_latency": "652us", + "cpu": "6507.2%", + "memory": "171MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "4.06GB/s", + "bandwidth": "3.74GB/s", "reconnects": 0, - "status_2xx": 242279760, + "status_2xx": 223390016, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-1024.json b/site/data/static-1024.json index 148cc892..a7c568a3 100644 --- a/site/data/static-1024.json +++ b/site/data/static-1024.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1135054, - "avg_latency": "19.41ms", - "p99_latency": "19.41ms", - "cpu": "6372.0%", - "memory": "295MiB", + "rps": 1129837, + "avg_latency": "21.19ms", + "p99_latency": "21.19ms", + "cpu": "6455.6%", + "memory": "220MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.32GB", + "bandwidth": "17.24GB", "reconnects": 0, - "status_2xx": 5788327, + "status_2xx": 5761969, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-4096.json b/site/data/static-4096.json index 4f3e1202..3fd845e5 100644 --- a/site/data/static-4096.json +++ b/site/data/static-4096.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1166570, - "avg_latency": "62.92ms", - "p99_latency": "62.92ms", - "cpu": "6157.0%", - "memory": "670MiB", + "rps": 1135467, + "avg_latency": "59.38ms", + "p99_latency": "59.38ms", + "cpu": "6308.8%", + "memory": "513MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.80GB", + "bandwidth": "17.32GB", "reconnects": 0, - "status_2xx": 5949621, + "status_2xx": 5790464, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-6800.json b/site/data/static-6800.json index 0d5c28fa..0441b5bc 100644 --- a/site/data/static-6800.json +++ b/site/data/static-6800.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1146000, - "avg_latency": "32.67ms", - "p99_latency": "32.67ms", - "cpu": "6427.0%", - "memory": "1.4GiB", + "rps": 1121107, + "avg_latency": "41.48ms", + "p99_latency": "41.48ms", + "cpu": "6002.7%", + "memory": "457MiB", "connections": 6800, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.48GB", + "bandwidth": "17.10GB", "reconnects": 0, - "status_2xx": 5844717, + "status_2xx": 5717128, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-256.json b/site/data/upload-256.json index 190b6402..079b5ee9 100644 --- a/site/data/upload-256.json +++ b/site/data/upload-256.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3009, - "avg_latency": "77.92ms", - "p99_latency": "226.90ms", - "cpu": "3569.8%", - "memory": "297MiB", + "rps": 3063, + "avg_latency": "76.77ms", + "p99_latency": "268.90ms", + "cpu": "3834.8%", + "memory": "280MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "280.12KB/s", - "input_bw": "23.87GB/s", - "reconnects": 2995, - "status_2xx": 15138, + "bandwidth": "284.76KB/s", + "input_bw": "24.30GB/s", + "reconnects": 3045, + "status_2xx": 15409, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-32.json b/site/data/upload-32.json index 33aec010..1b6bb28b 100644 --- a/site/data/upload-32.json +++ b/site/data/upload-32.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3056, - "avg_latency": "10.45ms", - "p99_latency": "31.20ms", - "cpu": "1979.2%", - "memory": "201MiB", + "rps": 3144, + "avg_latency": "10.13ms", + "p99_latency": "28.20ms", + "cpu": "1640.0%", + "memory": "189MiB", "connections": 32, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "284.18KB/s", - "input_bw": "24.24GB/s", - "reconnects": 3055, - "status_2xx": 15284, + "bandwidth": "292.69KB/s", + "input_bw": "24.94GB/s", + "reconnects": 3146, + "status_2xx": 15752, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 From 1c2e3e724084a14c9d2d1dd2ed8045d67377d2ec Mon Sep 17 00:00:00 2001 From: praisethemoon Date: Sun, 24 May 2026 17:09:55 +0200 Subject: [PATCH 12/21] 4 accept shards --- .../typev/bundle/benchmark-code/src/main.tc | 5 +---- frameworks/typev/bundle/output.tvbc | Bin 24275 -> 24275 bytes 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/frameworks/typev/bundle/benchmark-code/src/main.tc b/frameworks/typev/bundle/benchmark-code/src/main.tc index 135083bf..a14f2945 100644 --- a/frameworks/typev/bundle/benchmark-code/src/main.tc +++ b/frameworks/typev/bundle/benchmark-code/src/main.tc @@ -279,11 +279,8 @@ fn accept_loop() -> void { fn main() -> uint { println("typev HttpArena server listening on :8080") - // Liveness via await: spawn one accept loop awaitable FIRST, rest - // fire-and-forget, then block root on it (never returns). main_w parks, - // never feeds global. spawn/await non-adjacent to avoid fused PROC_RUN_AWAIT. let keepalive = spawn accept_loop() - foreach i in 0, 2, 1 { + foreach i in 0, 3, 1 { spawn accept_loop() } let (_r, _s) = keepalive.await() diff --git a/frameworks/typev/bundle/output.tvbc b/frameworks/typev/bundle/output.tvbc index bf63e6adfebfc9d3ee5f2570001ecc966491c66d..7d418426cb4a39e719d8fa2187b0d196153e7953 100644 GIT binary patch delta 16 Xcmcb-m+|sm#tl)PjLe&(Ju5^3KQ#tk delta 16 Xcmcb-m+|sm#tl)Pj7*!OJu5^3KQ9Jd From 612d793589a987fb19a5e820e3df833e733b3d7d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 15:21:17 +0000 Subject: [PATCH 13/21] Benchmark results: typev --- site/data/baseline-4096.json | 16 ++++++++-------- site/data/baseline-512.json | 16 ++++++++-------- site/data/echo-ws-16384.json | 14 +++++++------- site/data/echo-ws-4096.json | 14 +++++++------- site/data/echo-ws-512.json | 12 ++++++------ site/data/echo-ws-pipeline-16384.json | 14 +++++++------- site/data/echo-ws-pipeline-4096.json | 14 +++++++------- site/data/echo-ws-pipeline-512.json | 14 +++++++------- site/data/json-4096.json | 16 ++++++++-------- site/data/limited-conn-4096.json | 16 ++++++++-------- site/data/limited-conn-512.json | 18 +++++++++--------- site/data/pipelined-4096.json | 14 +++++++------- site/data/pipelined-512.json | 14 +++++++------- site/data/static-1024.json | 14 +++++++------- site/data/static-4096.json | 14 +++++++------- site/data/static-6800.json | 14 +++++++------- site/data/upload-256.json | 18 +++++++++--------- site/data/upload-32.json | 16 ++++++++-------- 18 files changed, 134 insertions(+), 134 deletions(-) diff --git a/site/data/baseline-4096.json b/site/data/baseline-4096.json index d2e12520..172aa1c2 100644 --- a/site/data/baseline-4096.json +++ b/site/data/baseline-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2167738, - "avg_latency": "205us", - "p99_latency": "789us", - "cpu": "6288.5%", - "memory": "221MiB", + "rps": 2181840, + "avg_latency": "165us", + "p99_latency": "667us", + "cpu": "6294.6%", + "memory": "468MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "185.99MB/s", - "input_bw": "167.45MB/s", + "bandwidth": "187.22MB/s", + "input_bw": "168.54MB/s", "reconnects": 0, - "status_2xx": 10838694, + "status_2xx": 10909204, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/baseline-512.json b/site/data/baseline-512.json index b9b004b7..def6b0f9 100644 --- a/site/data/baseline-512.json +++ b/site/data/baseline-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2194846, - "avg_latency": "113us", - "p99_latency": "674us", - "cpu": "6524.2%", - "memory": "179MiB", + "rps": 2184095, + "avg_latency": "105us", + "p99_latency": "677us", + "cpu": "6368.7%", + "memory": "154MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "188.34MB/s", - "input_bw": "169.55MB/s", + "bandwidth": "187.40MB/s", + "input_bw": "168.72MB/s", "reconnects": 0, - "status_2xx": 10974230, + "status_2xx": 10920479, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-16384.json b/site/data/echo-ws-16384.json index f9c8942a..b089ed40 100644 --- a/site/data/echo-ws-16384.json +++ b/site/data/echo-ws-16384.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2706911, - "avg_latency": "160us", - "p99_latency": "1.09ms", - "cpu": "6558.3%", - "memory": "755MiB", + "rps": 2705047, + "avg_latency": "117us", + "p99_latency": "498us", + "cpu": "6589.9%", + "memory": "753MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.16MB/s", + "bandwidth": "18.14MB/s", "reconnects": 0, - "status_2xx": 13534555, + "status_2xx": 13525239, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-4096.json b/site/data/echo-ws-4096.json index 76563bd9..0e3db2a6 100644 --- a/site/data/echo-ws-4096.json +++ b/site/data/echo-ws-4096.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2789860, - "avg_latency": "162us", - "p99_latency": "631us", - "cpu": "6516.7%", - "memory": "396MiB", + "rps": 2853130, + "avg_latency": "138us", + "p99_latency": "524us", + "cpu": "6364.9%", + "memory": "462MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.62MB/s", + "bandwidth": "19.04MB/s", "reconnects": 0, - "status_2xx": 13949303, + "status_2xx": 14265653, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-512.json b/site/data/echo-ws-512.json index 737269d8..08da794e 100644 --- a/site/data/echo-ws-512.json +++ b/site/data/echo-ws-512.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2739949, - "avg_latency": "98us", - "p99_latency": "460us", - "cpu": "6540.7%", + "rps": 2843407, + "avg_latency": "99us", + "p99_latency": "413us", + "cpu": "6572.5%", "memory": "158MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.29MB/s", + "bandwidth": "18.98MB/s", "reconnects": 0, - "status_2xx": 13699749, + "status_2xx": 14217035, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-16384.json b/site/data/echo-ws-pipeline-16384.json index 365d4855..9c22fab0 100644 --- a/site/data/echo-ws-pipeline-16384.json +++ b/site/data/echo-ws-pipeline-16384.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18058022, - "avg_latency": "349us", - "p99_latency": "2.64ms", - "cpu": "6095.7%", - "memory": "400MiB", + "rps": 18073907, + "avg_latency": "238us", + "p99_latency": "865us", + "cpu": "6104.8%", + "memory": "777MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "120.52MB/s", + "bandwidth": "120.70MB/s", "reconnects": 0, - "status_2xx": 90290112, + "status_2xx": 90369536, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-4096.json b/site/data/echo-ws-pipeline-4096.json index 2da47f2c..1f021967 100644 --- a/site/data/echo-ws-pipeline-4096.json +++ b/site/data/echo-ws-pipeline-4096.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 17986572, - "avg_latency": "183us", - "p99_latency": "277us", - "cpu": "6379.9%", - "memory": "390MiB", + "rps": 18319481, + "avg_latency": "285us", + "p99_latency": "855us", + "cpu": "6232.8%", + "memory": "212MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "120.04MB/s", + "bandwidth": "122.25MB/s", "reconnects": 0, - "status_2xx": 89932864, + "status_2xx": 91597407, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-512.json b/site/data/echo-ws-pipeline-512.json index d5757c15..6e8ccf44 100644 --- a/site/data/echo-ws-pipeline-512.json +++ b/site/data/echo-ws-pipeline-512.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18399766, - "avg_latency": "148us", - "p99_latency": "134us", - "cpu": "6427.3%", - "memory": "181MiB", + "rps": 18469187, + "avg_latency": "150us", + "p99_latency": "133us", + "cpu": "6460.9%", + "memory": "182MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "122.80MB/s", + "bandwidth": "123.26MB/s", "reconnects": 0, - "status_2xx": 91998832, + "status_2xx": 92345936, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/json-4096.json b/site/data/json-4096.json index 2b694dc7..7bbaeee5 100644 --- a/site/data/json-4096.json +++ b/site/data/json-4096.json @@ -1036,19 +1036,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1230003, - "avg_latency": "2.95ms", - "p99_latency": "86.10ms", - "cpu": "6650.1%", - "memory": "619MiB", + "rps": 1230839, + "avg_latency": "2.97ms", + "p99_latency": "85.60ms", + "cpu": "6408.5%", + "memory": "818MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, "bandwidth": "4.14GB/s", - "input_bw": "58.65MB/s", - "reconnects": 245510, - "status_2xx": 6150017, + "input_bw": "58.69MB/s", + "reconnects": 245657, + "status_2xx": 6154195, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-4096.json b/site/data/limited-conn-4096.json index 65859416..a57240cb 100644 --- a/site/data/limited-conn-4096.json +++ b/site/data/limited-conn-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1645090, + "rps": 1651361, "avg_latency": "2.47ms", - "p99_latency": "36.70ms", - "cpu": "6370.4%", - "memory": "534MiB", + "p99_latency": "37.20ms", + "cpu": "6415.3%", + "memory": "582MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "141.16MB/s", - "input_bw": "127.08MB/s", - "reconnects": 822663, - "status_2xx": 8225454, + "bandwidth": "141.70MB/s", + "input_bw": "127.56MB/s", + "reconnects": 825666, + "status_2xx": 8256809, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-512.json b/site/data/limited-conn-512.json index 6cd61f88..c5f5b4f8 100644 --- a/site/data/limited-conn-512.json +++ b/site/data/limited-conn-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1737129, - "avg_latency": "284us", - "p99_latency": "3.96ms", - "cpu": "6566.8%", - "memory": "318MiB", + "rps": 1753785, + "avg_latency": "281us", + "p99_latency": "4.33ms", + "cpu": "6571.2%", + "memory": "348MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "149.06MB/s", - "input_bw": "134.19MB/s", - "reconnects": 868569, - "status_2xx": 8685646, + "bandwidth": "150.49MB/s", + "input_bw": "135.48MB/s", + "reconnects": 876893, + "status_2xx": 8768927, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-4096.json b/site/data/pipelined-4096.json index eede9733..00e4b9ad 100644 --- a/site/data/pipelined-4096.json +++ b/site/data/pipelined-4096.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 44172745, - "avg_latency": "199us", - "p99_latency": "740us", - "cpu": "6414.9%", - "memory": "397MiB", + "rps": 44235824, + "avg_latency": "202us", + "p99_latency": "751us", + "cpu": "6512.0%", + "memory": "382MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.70GB/s", + "bandwidth": "3.71GB/s", "reconnects": 0, - "status_2xx": 220863728, + "status_2xx": 221179120, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-512.json b/site/data/pipelined-512.json index 67f7e471..abd7bfe8 100644 --- a/site/data/pipelined-512.json +++ b/site/data/pipelined-512.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 44678003, - "avg_latency": "148us", - "p99_latency": "652us", - "cpu": "6507.2%", - "memory": "171MiB", + "rps": 46047789, + "avg_latency": "166us", + "p99_latency": "718us", + "cpu": "6588.7%", + "memory": "181MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.74GB/s", + "bandwidth": "3.86GB/s", "reconnects": 0, - "status_2xx": 223390016, + "status_2xx": 230238946, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-1024.json b/site/data/static-1024.json index a7c568a3..1ed41074 100644 --- a/site/data/static-1024.json +++ b/site/data/static-1024.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1129837, - "avg_latency": "21.19ms", - "p99_latency": "21.19ms", - "cpu": "6455.6%", - "memory": "220MiB", + "rps": 1130632, + "avg_latency": "22.15ms", + "p99_latency": "22.15ms", + "cpu": "6445.7%", + "memory": "221MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.24GB", + "bandwidth": "17.25GB", "reconnects": 0, - "status_2xx": 5761969, + "status_2xx": 5750445, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-4096.json b/site/data/static-4096.json index 3fd845e5..7267753a 100644 --- a/site/data/static-4096.json +++ b/site/data/static-4096.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1135467, - "avg_latency": "59.38ms", - "p99_latency": "59.38ms", - "cpu": "6308.8%", - "memory": "513MiB", + "rps": 1120826, + "avg_latency": "59.49ms", + "p99_latency": "59.49ms", + "cpu": "6419.3%", + "memory": "493MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.32GB", + "bandwidth": "17.10GB", "reconnects": 0, - "status_2xx": 5790464, + "status_2xx": 5716203, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-6800.json b/site/data/static-6800.json index 0441b5bc..0a4d4fc6 100644 --- a/site/data/static-6800.json +++ b/site/data/static-6800.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1121107, - "avg_latency": "41.48ms", - "p99_latency": "41.48ms", - "cpu": "6002.7%", - "memory": "457MiB", + "rps": 1124081, + "avg_latency": "17.85ms", + "p99_latency": "17.85ms", + "cpu": "6117.1%", + "memory": "456MiB", "connections": 6800, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.10GB", + "bandwidth": "17.15GB", "reconnects": 0, - "status_2xx": 5717128, + "status_2xx": 5733479, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-256.json b/site/data/upload-256.json index 079b5ee9..e649689e 100644 --- a/site/data/upload-256.json +++ b/site/data/upload-256.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3063, - "avg_latency": "76.77ms", - "p99_latency": "268.90ms", - "cpu": "3834.8%", - "memory": "280MiB", + "rps": 3057, + "avg_latency": "77.33ms", + "p99_latency": "257.00ms", + "cpu": "3898.3%", + "memory": "267MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "284.76KB/s", - "input_bw": "24.30GB/s", - "reconnects": 3045, - "status_2xx": 15409, + "bandwidth": "284.33KB/s", + "input_bw": "24.25GB/s", + "reconnects": 3039, + "status_2xx": 15378, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-32.json b/site/data/upload-32.json index 1b6bb28b..34e4b9bc 100644 --- a/site/data/upload-32.json +++ b/site/data/upload-32.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3144, - "avg_latency": "10.13ms", - "p99_latency": "28.20ms", - "cpu": "1640.0%", + "rps": 3153, + "avg_latency": "10.09ms", + "p99_latency": "28.50ms", + "cpu": "1718.5%", "memory": "189MiB", "connections": 32, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "292.69KB/s", - "input_bw": "24.94GB/s", - "reconnects": 3146, - "status_2xx": 15752, + "bandwidth": "293.59KB/s", + "input_bw": "25.01GB/s", + "reconnects": 3155, + "status_2xx": 15800, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 From 89ea077764cca664f3727b0f82bcedb50d378a95 Mon Sep 17 00:00:00 2001 From: praisethemoon Date: Sun, 24 May 2026 17:23:19 +0200 Subject: [PATCH 14/21] 16 accept shards --- .../typev/bundle/benchmark-code/src/main.tc | 2 +- frameworks/typev/bundle/output.tvbc | Bin 24275 -> 24275 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/typev/bundle/benchmark-code/src/main.tc b/frameworks/typev/bundle/benchmark-code/src/main.tc index a14f2945..caa013cd 100644 --- a/frameworks/typev/bundle/benchmark-code/src/main.tc +++ b/frameworks/typev/bundle/benchmark-code/src/main.tc @@ -280,7 +280,7 @@ fn main() -> uint { println("typev HttpArena server listening on :8080") let keepalive = spawn accept_loop() - foreach i in 0, 3, 1 { + foreach i in 0, 15, 1 { spawn accept_loop() } let (_r, _s) = keepalive.await() diff --git a/frameworks/typev/bundle/output.tvbc b/frameworks/typev/bundle/output.tvbc index 7d418426cb4a39e719d8fa2187b0d196153e7953..ece3a5fe67f93d69964784cdfe371623e2125046 100644 GIT binary patch delta 16 Xcmcb-m+|sm#tl)PjQpFUJu5^3KYa#j delta 16 Xcmcb-m+|sm#tl)PjLe&(Ju5^3KQ#tk From df831708db6778807382f1039b6668aea27fd3fa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 15:40:33 +0000 Subject: [PATCH 15/21] Benchmark results: typev --- site/data/baseline-4096.json | 16 ++++++++-------- site/data/baseline-512.json | 16 ++++++++-------- site/data/echo-ws-16384.json | 14 +++++++------- site/data/echo-ws-4096.json | 14 +++++++------- site/data/echo-ws-512.json | 14 +++++++------- site/data/echo-ws-pipeline-16384.json | 14 +++++++------- site/data/echo-ws-pipeline-4096.json | 14 +++++++------- site/data/echo-ws-pipeline-512.json | 14 +++++++------- site/data/json-4096.json | 18 +++++++++--------- site/data/limited-conn-4096.json | 16 ++++++++-------- site/data/limited-conn-512.json | 18 +++++++++--------- site/data/pipelined-4096.json | 14 +++++++------- site/data/pipelined-512.json | 12 ++++++------ site/data/static-1024.json | 14 +++++++------- site/data/static-4096.json | 14 +++++++------- site/data/static-6800.json | 14 +++++++------- site/data/upload-256.json | 18 +++++++++--------- site/data/upload-32.json | 18 +++++++++--------- 18 files changed, 136 insertions(+), 136 deletions(-) diff --git a/site/data/baseline-4096.json b/site/data/baseline-4096.json index 172aa1c2..90084b14 100644 --- a/site/data/baseline-4096.json +++ b/site/data/baseline-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2181840, - "avg_latency": "165us", - "p99_latency": "667us", - "cpu": "6294.6%", - "memory": "468MiB", + "rps": 2183539, + "avg_latency": "164us", + "p99_latency": "578us", + "cpu": "6393.0%", + "memory": "466MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "187.22MB/s", - "input_bw": "168.54MB/s", + "bandwidth": "187.36MB/s", + "input_bw": "168.67MB/s", "reconnects": 0, - "status_2xx": 10909204, + "status_2xx": 10917697, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/baseline-512.json b/site/data/baseline-512.json index def6b0f9..4663385a 100644 --- a/site/data/baseline-512.json +++ b/site/data/baseline-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2184095, - "avg_latency": "105us", - "p99_latency": "677us", - "cpu": "6368.7%", - "memory": "154MiB", + "rps": 2213212, + "avg_latency": "106us", + "p99_latency": "571us", + "cpu": "6646.6%", + "memory": "178MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "187.40MB/s", - "input_bw": "168.72MB/s", + "bandwidth": "189.92MB/s", + "input_bw": "170.97MB/s", "reconnects": 0, - "status_2xx": 10920479, + "status_2xx": 11066062, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-16384.json b/site/data/echo-ws-16384.json index b089ed40..4b73e90b 100644 --- a/site/data/echo-ws-16384.json +++ b/site/data/echo-ws-16384.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2705047, - "avg_latency": "117us", - "p99_latency": "498us", - "cpu": "6589.9%", - "memory": "753MiB", + "rps": 2728496, + "avg_latency": "308us", + "p99_latency": "3.05ms", + "cpu": "6325.8%", + "memory": "854MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.14MB/s", + "bandwidth": "18.28MB/s", "reconnects": 0, - "status_2xx": 13525239, + "status_2xx": 13642481, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-4096.json b/site/data/echo-ws-4096.json index 0e3db2a6..dd2383cd 100644 --- a/site/data/echo-ws-4096.json +++ b/site/data/echo-ws-4096.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2853130, - "avg_latency": "138us", - "p99_latency": "524us", - "cpu": "6364.9%", - "memory": "462MiB", + "rps": 2716205, + "avg_latency": "111us", + "p99_latency": "557us", + "cpu": "6452.9%", + "memory": "466MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.04MB/s", + "bandwidth": "18.14MB/s", "reconnects": 0, - "status_2xx": 14265653, + "status_2xx": 13581027, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-512.json b/site/data/echo-ws-512.json index 08da794e..5880cf11 100644 --- a/site/data/echo-ws-512.json +++ b/site/data/echo-ws-512.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2843407, - "avg_latency": "99us", - "p99_latency": "413us", - "cpu": "6572.5%", - "memory": "158MiB", + "rps": 2811249, + "avg_latency": "92us", + "p99_latency": "582us", + "cpu": "6801.4%", + "memory": "178MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.98MB/s", + "bandwidth": "18.76MB/s", "reconnects": 0, - "status_2xx": 14217035, + "status_2xx": 14056248, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-16384.json b/site/data/echo-ws-pipeline-16384.json index 9c22fab0..84549c61 100644 --- a/site/data/echo-ws-pipeline-16384.json +++ b/site/data/echo-ws-pipeline-16384.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18073907, - "avg_latency": "238us", - "p99_latency": "865us", - "cpu": "6104.8%", - "memory": "777MiB", + "rps": 18646784, + "avg_latency": "643us", + "p99_latency": "3.07ms", + "cpu": "6485.9%", + "memory": "802MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "120.70MB/s", + "bandwidth": "124.53MB/s", "reconnects": 0, - "status_2xx": 90369536, + "status_2xx": 93233920, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-4096.json b/site/data/echo-ws-pipeline-4096.json index 1f021967..c020ccc8 100644 --- a/site/data/echo-ws-pipeline-4096.json +++ b/site/data/echo-ws-pipeline-4096.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18319481, - "avg_latency": "285us", - "p99_latency": "855us", - "cpu": "6232.8%", - "memory": "212MiB", + "rps": 18520640, + "avg_latency": "175us", + "p99_latency": "508us", + "cpu": "6527.8%", + "memory": "382MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "122.25MB/s", + "bandwidth": "123.60MB/s", "reconnects": 0, - "status_2xx": 91597407, + "status_2xx": 92603200, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-512.json b/site/data/echo-ws-pipeline-512.json index 6e8ccf44..90f767b6 100644 --- a/site/data/echo-ws-pipeline-512.json +++ b/site/data/echo-ws-pipeline-512.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18469187, - "avg_latency": "150us", - "p99_latency": "133us", - "cpu": "6460.9%", - "memory": "182MiB", + "rps": 18166908, + "avg_latency": "155us", + "p99_latency": "135us", + "cpu": "6445.7%", + "memory": "152MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "123.26MB/s", + "bandwidth": "121.24MB/s", "reconnects": 0, - "status_2xx": 92345936, + "status_2xx": 90834544, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/json-4096.json b/site/data/json-4096.json index 7bbaeee5..780ca96f 100644 --- a/site/data/json-4096.json +++ b/site/data/json-4096.json @@ -1036,19 +1036,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1230839, - "avg_latency": "2.97ms", - "p99_latency": "85.60ms", - "cpu": "6408.5%", - "memory": "818MiB", + "rps": 1230978, + "avg_latency": "2.98ms", + "p99_latency": "100.20ms", + "cpu": "6368.1%", + "memory": "856MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.14GB/s", - "input_bw": "58.69MB/s", - "reconnects": 245657, - "status_2xx": 6154195, + "bandwidth": "4.15GB/s", + "input_bw": "58.70MB/s", + "reconnects": 245136, + "status_2xx": 6154892, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-4096.json b/site/data/limited-conn-4096.json index a57240cb..5fe5a232 100644 --- a/site/data/limited-conn-4096.json +++ b/site/data/limited-conn-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1651361, + "rps": 1648504, "avg_latency": "2.47ms", - "p99_latency": "37.20ms", - "cpu": "6415.3%", - "memory": "582MiB", + "p99_latency": "38.90ms", + "cpu": "6203.8%", + "memory": "764MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "141.70MB/s", - "input_bw": "127.56MB/s", - "reconnects": 825666, - "status_2xx": 8256809, + "bandwidth": "141.46MB/s", + "input_bw": "127.34MB/s", + "reconnects": 823901, + "status_2xx": 8242522, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-512.json b/site/data/limited-conn-512.json index c5f5b4f8..2ffd3d09 100644 --- a/site/data/limited-conn-512.json +++ b/site/data/limited-conn-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1753785, - "avg_latency": "281us", - "p99_latency": "4.33ms", - "cpu": "6571.2%", - "memory": "348MiB", + "rps": 1681203, + "avg_latency": "294us", + "p99_latency": "4.84ms", + "cpu": "6610.2%", + "memory": "335MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "150.49MB/s", - "input_bw": "135.48MB/s", - "reconnects": 876893, - "status_2xx": 8768927, + "bandwidth": "144.26MB/s", + "input_bw": "129.87MB/s", + "reconnects": 840604, + "status_2xx": 8406018, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-4096.json b/site/data/pipelined-4096.json index 00e4b9ad..7e769fdc 100644 --- a/site/data/pipelined-4096.json +++ b/site/data/pipelined-4096.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 44235824, - "avg_latency": "202us", - "p99_latency": "751us", - "cpu": "6512.0%", - "memory": "382MiB", + "rps": 43620739, + "avg_latency": "291us", + "p99_latency": "1.08ms", + "cpu": "6406.6%", + "memory": "392MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.71GB/s", + "bandwidth": "3.65GB/s", "reconnects": 0, - "status_2xx": 221179120, + "status_2xx": 218103696, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-512.json b/site/data/pipelined-512.json index abd7bfe8..02674210 100644 --- a/site/data/pipelined-512.json +++ b/site/data/pipelined-512.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 46047789, - "avg_latency": "166us", - "p99_latency": "718us", - "cpu": "6588.7%", + "rps": 45551606, + "avg_latency": "156us", + "p99_latency": "714us", + "cpu": "6505.4%", "memory": "181MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.86GB/s", + "bandwidth": "3.82GB/s", "reconnects": 0, - "status_2xx": 230238946, + "status_2xx": 227758032, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-1024.json b/site/data/static-1024.json index 1ed41074..1ae4ac09 100644 --- a/site/data/static-1024.json +++ b/site/data/static-1024.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1130632, - "avg_latency": "22.15ms", - "p99_latency": "22.15ms", - "cpu": "6445.7%", - "memory": "221MiB", + "rps": 1123420, + "avg_latency": "23.41ms", + "p99_latency": "23.41ms", + "cpu": "6481.3%", + "memory": "225MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.25GB", + "bandwidth": "17.14GB", "reconnects": 0, - "status_2xx": 5750445, + "status_2xx": 5729516, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-4096.json b/site/data/static-4096.json index 7267753a..798cb06a 100644 --- a/site/data/static-4096.json +++ b/site/data/static-4096.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1120826, - "avg_latency": "59.49ms", - "p99_latency": "59.49ms", - "cpu": "6419.3%", - "memory": "493MiB", + "rps": 1133709, + "avg_latency": "44.73ms", + "p99_latency": "44.73ms", + "cpu": "6262.2%", + "memory": "310MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.10GB", + "bandwidth": "17.30GB", "reconnects": 0, - "status_2xx": 5716203, + "status_2xx": 5782403, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-6800.json b/site/data/static-6800.json index 0a4d4fc6..d9fd1916 100644 --- a/site/data/static-6800.json +++ b/site/data/static-6800.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1124081, - "avg_latency": "17.85ms", - "p99_latency": "17.85ms", - "cpu": "6117.1%", - "memory": "456MiB", + "rps": 1138511, + "avg_latency": "18.11ms", + "p99_latency": "18.11ms", + "cpu": "6115.8%", + "memory": "447MiB", "connections": 6800, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.15GB", + "bandwidth": "17.37GB", "reconnects": 0, - "status_2xx": 5733479, + "status_2xx": 5807456, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-256.json b/site/data/upload-256.json index e649689e..0c309d28 100644 --- a/site/data/upload-256.json +++ b/site/data/upload-256.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3057, - "avg_latency": "77.33ms", - "p99_latency": "257.00ms", - "cpu": "3898.3%", - "memory": "267MiB", + "rps": 3055, + "avg_latency": "76.86ms", + "p99_latency": "260.20ms", + "cpu": "3782.9%", + "memory": "262MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "284.33KB/s", - "input_bw": "24.25GB/s", - "reconnects": 3039, - "status_2xx": 15378, + "bandwidth": "284.13KB/s", + "input_bw": "24.23GB/s", + "reconnects": 3038, + "status_2xx": 15369, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-32.json b/site/data/upload-32.json index 34e4b9bc..bdceba40 100644 --- a/site/data/upload-32.json +++ b/site/data/upload-32.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3153, - "avg_latency": "10.09ms", - "p99_latency": "28.50ms", - "cpu": "1718.5%", - "memory": "189MiB", + "rps": 3142, + "avg_latency": "10.15ms", + "p99_latency": "28.90ms", + "cpu": "1615.8%", + "memory": "182MiB", "connections": 32, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "293.59KB/s", - "input_bw": "25.01GB/s", - "reconnects": 3155, - "status_2xx": 15800, + "bandwidth": "292.13KB/s", + "input_bw": "24.92GB/s", + "reconnects": 3143, + "status_2xx": 15714, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 From bf29b5cc7c725d55414261eb28b115a20f83b87a Mon Sep 17 00:00:00 2001 From: praisethemoon Date: Sun, 24 May 2026 17:43:56 +0200 Subject: [PATCH 16/21] 2 shards experiment --- .../typev/bundle/benchmark-code/src/main.tc | 2 +- frameworks/typev/bundle/output.tvbc | Bin 24275 -> 24275 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/typev/bundle/benchmark-code/src/main.tc b/frameworks/typev/bundle/benchmark-code/src/main.tc index caa013cd..240eb0ac 100644 --- a/frameworks/typev/bundle/benchmark-code/src/main.tc +++ b/frameworks/typev/bundle/benchmark-code/src/main.tc @@ -280,7 +280,7 @@ fn main() -> uint { println("typev HttpArena server listening on :8080") let keepalive = spawn accept_loop() - foreach i in 0, 15, 1 { + foreach i in 0, 1, 1 { spawn accept_loop() } let (_r, _s) = keepalive.await() diff --git a/frameworks/typev/bundle/output.tvbc b/frameworks/typev/bundle/output.tvbc index ece3a5fe67f93d69964784cdfe371623e2125046..578f88006ac2c3e68cca07405ad810c51bbe2e9e 100644 GIT binary patch delta 16 Xcmcb-m+|sm#tl)PjEtM3Ju5^3KPd)W delta 16 Xcmcb-m+|sm#tl)PjQpFUJu5^3KYa#j From 27f438e16e9df94911d820ef48823ac4621d8b43 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 15:58:28 +0000 Subject: [PATCH 17/21] Benchmark results: typev --- site/data/baseline-4096.json | 16 ++++++++-------- site/data/baseline-512.json | 16 ++++++++-------- site/data/echo-ws-16384.json | 14 +++++++------- site/data/echo-ws-4096.json | 14 +++++++------- site/data/echo-ws-512.json | 12 ++++++------ site/data/echo-ws-pipeline-16384.json | 14 +++++++------- site/data/echo-ws-pipeline-4096.json | 12 ++++++------ site/data/echo-ws-pipeline-512.json | 14 +++++++------- site/data/json-4096.json | 18 +++++++++--------- site/data/limited-conn-4096.json | 18 +++++++++--------- site/data/limited-conn-512.json | 18 +++++++++--------- site/data/pipelined-4096.json | 14 +++++++------- site/data/pipelined-512.json | 14 +++++++------- site/data/static-1024.json | 14 +++++++------- site/data/static-4096.json | 14 +++++++------- site/data/static-6800.json | 14 +++++++------- site/data/upload-256.json | 18 +++++++++--------- site/data/upload-32.json | 18 +++++++++--------- 18 files changed, 136 insertions(+), 136 deletions(-) diff --git a/site/data/baseline-4096.json b/site/data/baseline-4096.json index 90084b14..ce5146f0 100644 --- a/site/data/baseline-4096.json +++ b/site/data/baseline-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2183539, - "avg_latency": "164us", - "p99_latency": "578us", - "cpu": "6393.0%", - "memory": "466MiB", + "rps": 2174790, + "avg_latency": "180us", + "p99_latency": "774us", + "cpu": "6607.9%", + "memory": "400MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "187.36MB/s", - "input_bw": "168.67MB/s", + "bandwidth": "186.62MB/s", + "input_bw": "168.00MB/s", "reconnects": 0, - "status_2xx": 10917697, + "status_2xx": 10873951, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/baseline-512.json b/site/data/baseline-512.json index 4663385a..0fbef475 100644 --- a/site/data/baseline-512.json +++ b/site/data/baseline-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2213212, - "avg_latency": "106us", - "p99_latency": "571us", - "cpu": "6646.6%", - "memory": "178MiB", + "rps": 2175063, + "avg_latency": "114us", + "p99_latency": "680us", + "cpu": "6491.5%", + "memory": "179MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "189.92MB/s", - "input_bw": "170.97MB/s", + "bandwidth": "186.75MB/s", + "input_bw": "168.02MB/s", "reconnects": 0, - "status_2xx": 11066062, + "status_2xx": 10875316, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-16384.json b/site/data/echo-ws-16384.json index 4b73e90b..1f79ed2b 100644 --- a/site/data/echo-ws-16384.json +++ b/site/data/echo-ws-16384.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2728496, - "avg_latency": "308us", - "p99_latency": "3.05ms", - "cpu": "6325.8%", - "memory": "854MiB", + "rps": 2730145, + "avg_latency": "348us", + "p99_latency": "1.28ms", + "cpu": "6295.3%", + "memory": "712MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.28MB/s", + "bandwidth": "18.29MB/s", "reconnects": 0, - "status_2xx": 13642481, + "status_2xx": 13650728, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-4096.json b/site/data/echo-ws-4096.json index dd2383cd..d6c44ad3 100644 --- a/site/data/echo-ws-4096.json +++ b/site/data/echo-ws-4096.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2716205, - "avg_latency": "111us", - "p99_latency": "557us", - "cpu": "6452.9%", - "memory": "466MiB", + "rps": 2739974, + "avg_latency": "145us", + "p99_latency": "723us", + "cpu": "6580.1%", + "memory": "408MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.14MB/s", + "bandwidth": "18.29MB/s", "reconnects": 0, - "status_2xx": 13581027, + "status_2xx": 13699873, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-512.json b/site/data/echo-ws-512.json index 5880cf11..16ca2411 100644 --- a/site/data/echo-ws-512.json +++ b/site/data/echo-ws-512.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2811249, - "avg_latency": "92us", - "p99_latency": "582us", - "cpu": "6801.4%", + "rps": 2724822, + "avg_latency": "96us", + "p99_latency": "443us", + "cpu": "6640.1%", "memory": "178MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.76MB/s", + "bandwidth": "18.19MB/s", "reconnects": 0, - "status_2xx": 14056248, + "status_2xx": 13624110, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-16384.json b/site/data/echo-ws-pipeline-16384.json index 84549c61..4f7c515d 100644 --- a/site/data/echo-ws-pipeline-16384.json +++ b/site/data/echo-ws-pipeline-16384.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18646784, - "avg_latency": "643us", - "p99_latency": "3.07ms", - "cpu": "6485.9%", - "memory": "802MiB", + "rps": 18167692, + "avg_latency": "561us", + "p99_latency": "712us", + "cpu": "6482.6%", + "memory": "706MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "124.53MB/s", + "bandwidth": "121.31MB/s", "reconnects": 0, - "status_2xx": 93233920, + "status_2xx": 90838464, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-4096.json b/site/data/echo-ws-pipeline-4096.json index c020ccc8..1cbdca20 100644 --- a/site/data/echo-ws-pipeline-4096.json +++ b/site/data/echo-ws-pipeline-4096.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18520640, - "avg_latency": "175us", + "rps": 18173520, + "avg_latency": "226us", "p99_latency": "508us", - "cpu": "6527.8%", - "memory": "382MiB", + "cpu": "6321.1%", + "memory": "436MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "123.60MB/s", + "bandwidth": "121.28MB/s", "reconnects": 0, - "status_2xx": 92603200, + "status_2xx": 90867600, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-512.json b/site/data/echo-ws-pipeline-512.json index 90f767b6..7349a292 100644 --- a/site/data/echo-ws-pipeline-512.json +++ b/site/data/echo-ws-pipeline-512.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18166908, - "avg_latency": "155us", - "p99_latency": "135us", - "cpu": "6445.7%", - "memory": "152MiB", + "rps": 18430252, + "avg_latency": "140us", + "p99_latency": "134us", + "cpu": "6510.9%", + "memory": "173MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "121.24MB/s", + "bandwidth": "123.01MB/s", "reconnects": 0, - "status_2xx": 90834544, + "status_2xx": 92151264, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/json-4096.json b/site/data/json-4096.json index 780ca96f..d998d9e4 100644 --- a/site/data/json-4096.json +++ b/site/data/json-4096.json @@ -1036,19 +1036,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1230978, - "avg_latency": "2.98ms", - "p99_latency": "100.20ms", - "cpu": "6368.1%", - "memory": "856MiB", + "rps": 1212745, + "avg_latency": "3.02ms", + "p99_latency": "84.40ms", + "cpu": "6372.2%", + "memory": "649MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.15GB/s", - "input_bw": "58.70MB/s", - "reconnects": 245136, - "status_2xx": 6154892, + "bandwidth": "4.09GB/s", + "input_bw": "57.83MB/s", + "reconnects": 242108, + "status_2xx": 6063726, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-4096.json b/site/data/limited-conn-4096.json index 5fe5a232..a5ff13a8 100644 --- a/site/data/limited-conn-4096.json +++ b/site/data/limited-conn-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1648504, - "avg_latency": "2.47ms", - "p99_latency": "38.90ms", - "cpu": "6203.8%", - "memory": "764MiB", + "rps": 1606253, + "avg_latency": "2.54ms", + "p99_latency": "34.80ms", + "cpu": "6573.4%", + "memory": "316MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "141.46MB/s", - "input_bw": "127.34MB/s", - "reconnects": 823901, - "status_2xx": 8242522, + "bandwidth": "137.83MB/s", + "input_bw": "124.08MB/s", + "reconnects": 803148, + "status_2xx": 8031269, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-512.json b/site/data/limited-conn-512.json index 2ffd3d09..968fa852 100644 --- a/site/data/limited-conn-512.json +++ b/site/data/limited-conn-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1681203, - "avg_latency": "294us", - "p99_latency": "4.84ms", - "cpu": "6610.2%", - "memory": "335MiB", + "rps": 1567342, + "avg_latency": "317us", + "p99_latency": "4.48ms", + "cpu": "6305.4%", + "memory": "191MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "144.26MB/s", - "input_bw": "129.87MB/s", - "reconnects": 840604, - "status_2xx": 8406018, + "bandwidth": "134.49MB/s", + "input_bw": "121.07MB/s", + "reconnects": 783656, + "status_2xx": 7836713, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-4096.json b/site/data/pipelined-4096.json index 7e769fdc..c522d8e0 100644 --- a/site/data/pipelined-4096.json +++ b/site/data/pipelined-4096.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 43620739, - "avg_latency": "291us", - "p99_latency": "1.08ms", - "cpu": "6406.6%", - "memory": "392MiB", + "rps": 45331702, + "avg_latency": "200us", + "p99_latency": "1.12ms", + "cpu": "6250.5%", + "memory": "232MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.65GB/s", + "bandwidth": "3.80GB/s", "reconnects": 0, - "status_2xx": 218103696, + "status_2xx": 226658512, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-512.json b/site/data/pipelined-512.json index 02674210..b1296e28 100644 --- a/site/data/pipelined-512.json +++ b/site/data/pipelined-512.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 45551606, - "avg_latency": "156us", - "p99_latency": "714us", - "cpu": "6505.4%", - "memory": "181MiB", + "rps": 44709405, + "avg_latency": "165us", + "p99_latency": "677us", + "cpu": "6549.1%", + "memory": "180MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.82GB/s", + "bandwidth": "3.75GB/s", "reconnects": 0, - "status_2xx": 227758032, + "status_2xx": 223547025, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-1024.json b/site/data/static-1024.json index 1ae4ac09..9b4ec7ce 100644 --- a/site/data/static-1024.json +++ b/site/data/static-1024.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1123420, - "avg_latency": "23.41ms", - "p99_latency": "23.41ms", - "cpu": "6481.3%", - "memory": "225MiB", + "rps": 1124919, + "avg_latency": "19.13ms", + "p99_latency": "19.13ms", + "cpu": "6392.4%", + "memory": "226MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.14GB", + "bandwidth": "17.16GB", "reconnects": 0, - "status_2xx": 5729516, + "status_2xx": 5716843, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-4096.json b/site/data/static-4096.json index 798cb06a..b09f682a 100644 --- a/site/data/static-4096.json +++ b/site/data/static-4096.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1133709, - "avg_latency": "44.73ms", - "p99_latency": "44.73ms", - "cpu": "6262.2%", - "memory": "310MiB", + "rps": 1125885, + "avg_latency": "90.13ms", + "p99_latency": "90.13ms", + "cpu": "6313.9%", + "memory": "505MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.30GB", + "bandwidth": "17.18GB", "reconnects": 0, - "status_2xx": 5782403, + "status_2xx": 5741582, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-6800.json b/site/data/static-6800.json index d9fd1916..c1fe31f7 100644 --- a/site/data/static-6800.json +++ b/site/data/static-6800.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1138511, - "avg_latency": "18.11ms", - "p99_latency": "18.11ms", - "cpu": "6115.8%", - "memory": "447MiB", + "rps": 1121830, + "avg_latency": "14.44ms", + "p99_latency": "14.44ms", + "cpu": "6182.1%", + "memory": "461MiB", "connections": 6800, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.37GB", + "bandwidth": "17.11GB", "reconnects": 0, - "status_2xx": 5807456, + "status_2xx": 5721736, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-256.json b/site/data/upload-256.json index 0c309d28..8c10e468 100644 --- a/site/data/upload-256.json +++ b/site/data/upload-256.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3055, - "avg_latency": "76.86ms", - "p99_latency": "260.20ms", - "cpu": "3782.9%", - "memory": "262MiB", + "rps": 3046, + "avg_latency": "76.84ms", + "p99_latency": "236.30ms", + "cpu": "4053.8%", + "memory": "294MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "284.13KB/s", - "input_bw": "24.23GB/s", - "reconnects": 3038, - "status_2xx": 15369, + "bandwidth": "283.16KB/s", + "input_bw": "24.16GB/s", + "reconnects": 3018, + "status_2xx": 15323, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-32.json b/site/data/upload-32.json index bdceba40..f806d0cf 100644 --- a/site/data/upload-32.json +++ b/site/data/upload-32.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3142, - "avg_latency": "10.15ms", - "p99_latency": "28.90ms", - "cpu": "1615.8%", - "memory": "182MiB", + "rps": 3169, + "avg_latency": "10.07ms", + "p99_latency": "27.80ms", + "cpu": "1648.3%", + "memory": "193MiB", "connections": 32, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "292.13KB/s", - "input_bw": "24.92GB/s", - "reconnects": 3143, - "status_2xx": 15714, + "bandwidth": "294.57KB/s", + "input_bw": "25.14GB/s", + "reconnects": 3168, + "status_2xx": 15847, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 From 4c8e71d7b3d45c9beeeb1b942bdbfa494a96aa91 Mon Sep 17 00:00:00 2001 From: praisethemoon Date: Sun, 24 May 2026 18:07:00 +0200 Subject: [PATCH 18/21] stick to 3 shards & vm update --- frameworks/typev/Dockerfile | 2 +- .../typev/bundle/benchmark-code/src/main.tc | 2 +- frameworks/typev/bundle/output.tvbc | Bin 24275 -> 24275 bytes 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/typev/Dockerfile b/frameworks/typev/Dockerfile index fb3d4e8a..2dbbad38 100644 --- a/frameworks/typev/Dockerfile +++ b/frameworks/typev/Dockerfile @@ -12,7 +12,7 @@ WORKDIR /app # typev VM — binary + FFI plugins (json, stdcore, stdsocket, ...). Pre-built # (-O3 -march=x86-64-v3, static liburing) and fetched from object storage RUN wget -q -O /tmp/typev.zip \ - https://typev.s3.fr-par.scw.cloud/typev-23-05-2026-v2.zip && \ + https://typev.s3.fr-par.scw.cloud/typev-24-05-2026.zip && \ unzip -q /tmp/typev.zip -d /app && \ rm /tmp/typev.zip diff --git a/frameworks/typev/bundle/benchmark-code/src/main.tc b/frameworks/typev/bundle/benchmark-code/src/main.tc index 240eb0ac..5f702c19 100644 --- a/frameworks/typev/bundle/benchmark-code/src/main.tc +++ b/frameworks/typev/bundle/benchmark-code/src/main.tc @@ -280,7 +280,7 @@ fn main() -> uint { println("typev HttpArena server listening on :8080") let keepalive = spawn accept_loop() - foreach i in 0, 1, 1 { + foreach i in 0, 2, 1 { spawn accept_loop() } let (_r, _s) = keepalive.await() diff --git a/frameworks/typev/bundle/output.tvbc b/frameworks/typev/bundle/output.tvbc index 578f88006ac2c3e68cca07405ad810c51bbe2e9e..bf63e6adfebfc9d3ee5f2570001ecc966491c66d 100644 GIT binary patch delta 16 Xcmcb-m+|sm#tl)Pj7*!OJu5^3KQ9Jd delta 16 Xcmcb-m+|sm#tl)PjEtM3Ju5^3KPd)W From 40906c1e93ecce82426d6622d1b55f2b03402e3c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 16:28:02 +0000 Subject: [PATCH 19/21] Benchmark results: typev --- site/data/baseline-4096.json | 16 ++++++++-------- site/data/baseline-512.json | 16 ++++++++-------- site/data/echo-ws-16384.json | 14 +++++++------- site/data/echo-ws-4096.json | 14 +++++++------- site/data/echo-ws-512.json | 14 +++++++------- site/data/echo-ws-pipeline-16384.json | 14 +++++++------- site/data/echo-ws-pipeline-4096.json | 14 +++++++------- site/data/echo-ws-pipeline-512.json | 14 +++++++------- site/data/json-4096.json | 18 +++++++++--------- site/data/limited-conn-4096.json | 18 +++++++++--------- site/data/limited-conn-512.json | 18 +++++++++--------- site/data/pipelined-4096.json | 14 +++++++------- site/data/pipelined-512.json | 12 ++++++------ site/data/static-1024.json | 14 +++++++------- site/data/static-4096.json | 14 +++++++------- site/data/static-6800.json | 14 +++++++------- site/data/upload-256.json | 18 +++++++++--------- site/data/upload-32.json | 18 +++++++++--------- 18 files changed, 137 insertions(+), 137 deletions(-) diff --git a/site/data/baseline-4096.json b/site/data/baseline-4096.json index ce5146f0..c2509475 100644 --- a/site/data/baseline-4096.json +++ b/site/data/baseline-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2174790, - "avg_latency": "180us", - "p99_latency": "774us", - "cpu": "6607.9%", - "memory": "400MiB", + "rps": 2152602, + "avg_latency": "160us", + "p99_latency": "629us", + "cpu": "6622.6%", + "memory": "401MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "186.62MB/s", - "input_bw": "168.00MB/s", + "bandwidth": "184.71MB/s", + "input_bw": "166.28MB/s", "reconnects": 0, - "status_2xx": 10873951, + "status_2xx": 10763014, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/baseline-512.json b/site/data/baseline-512.json index 0fbef475..180f4b6a 100644 --- a/site/data/baseline-512.json +++ b/site/data/baseline-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2175063, - "avg_latency": "114us", - "p99_latency": "680us", - "cpu": "6491.5%", - "memory": "179MiB", + "rps": 2177969, + "avg_latency": "105us", + "p99_latency": "729us", + "cpu": "6248.4%", + "memory": "153MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "186.75MB/s", - "input_bw": "168.02MB/s", + "bandwidth": "186.88MB/s", + "input_bw": "168.24MB/s", "reconnects": 0, - "status_2xx": 10875316, + "status_2xx": 10889847, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-16384.json b/site/data/echo-ws-16384.json index 1f79ed2b..9122ad92 100644 --- a/site/data/echo-ws-16384.json +++ b/site/data/echo-ws-16384.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2730145, - "avg_latency": "348us", - "p99_latency": "1.28ms", - "cpu": "6295.3%", - "memory": "712MiB", + "rps": 2854317, + "avg_latency": "164us", + "p99_latency": "1.47ms", + "cpu": "6258.8%", + "memory": "820MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.29MB/s", + "bandwidth": "19.13MB/s", "reconnects": 0, - "status_2xx": 13650728, + "status_2xx": 14271589, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-4096.json b/site/data/echo-ws-4096.json index d6c44ad3..dfeff63c 100644 --- a/site/data/echo-ws-4096.json +++ b/site/data/echo-ws-4096.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2739974, - "avg_latency": "145us", - "p99_latency": "723us", - "cpu": "6580.1%", - "memory": "408MiB", + "rps": 2769614, + "avg_latency": "149us", + "p99_latency": "593us", + "cpu": "6227.6%", + "memory": "463MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.29MB/s", + "bandwidth": "18.49MB/s", "reconnects": 0, - "status_2xx": 13699873, + "status_2xx": 13848070, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-512.json b/site/data/echo-ws-512.json index 16ca2411..86caf209 100644 --- a/site/data/echo-ws-512.json +++ b/site/data/echo-ws-512.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2724822, - "avg_latency": "96us", - "p99_latency": "443us", - "cpu": "6640.1%", - "memory": "178MiB", + "rps": 2823013, + "avg_latency": "97us", + "p99_latency": "494us", + "cpu": "6629.8%", + "memory": "182MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.19MB/s", + "bandwidth": "18.85MB/s", "reconnects": 0, - "status_2xx": 13624110, + "status_2xx": 14115068, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-16384.json b/site/data/echo-ws-pipeline-16384.json index 4f7c515d..54fb1cff 100644 --- a/site/data/echo-ws-pipeline-16384.json +++ b/site/data/echo-ws-pipeline-16384.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18167692, - "avg_latency": "561us", - "p99_latency": "712us", - "cpu": "6482.6%", - "memory": "706MiB", + "rps": 17992361, + "avg_latency": "326us", + "p99_latency": "869us", + "cpu": "6096.8%", + "memory": "741MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "121.31MB/s", + "bandwidth": "120.18MB/s", "reconnects": 0, - "status_2xx": 90838464, + "status_2xx": 89961808, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-4096.json b/site/data/echo-ws-pipeline-4096.json index 1cbdca20..3b4e604e 100644 --- a/site/data/echo-ws-pipeline-4096.json +++ b/site/data/echo-ws-pipeline-4096.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18173520, - "avg_latency": "226us", - "p99_latency": "508us", - "cpu": "6321.1%", - "memory": "436MiB", + "rps": 18323142, + "avg_latency": "192us", + "p99_latency": "363us", + "cpu": "6525.0%", + "memory": "405MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "121.28MB/s", + "bandwidth": "122.27MB/s", "reconnects": 0, - "status_2xx": 90867600, + "status_2xx": 91615712, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-512.json b/site/data/echo-ws-pipeline-512.json index 7349a292..8c721c81 100644 --- a/site/data/echo-ws-pipeline-512.json +++ b/site/data/echo-ws-pipeline-512.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18430252, - "avg_latency": "140us", - "p99_latency": "134us", - "cpu": "6510.9%", - "memory": "173MiB", + "rps": 18431324, + "avg_latency": "143us", + "p99_latency": "133us", + "cpu": "6377.6%", + "memory": "149MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "123.01MB/s", + "bandwidth": "122.85MB/s", "reconnects": 0, - "status_2xx": 92151264, + "status_2xx": 92156624, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/json-4096.json b/site/data/json-4096.json index d998d9e4..cb41d343 100644 --- a/site/data/json-4096.json +++ b/site/data/json-4096.json @@ -1036,19 +1036,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1212745, - "avg_latency": "3.02ms", - "p99_latency": "84.40ms", - "cpu": "6372.2%", - "memory": "649MiB", + "rps": 1231014, + "avg_latency": "2.93ms", + "p99_latency": "80.60ms", + "cpu": "6322.3%", + "memory": "479MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.09GB/s", - "input_bw": "57.83MB/s", - "reconnects": 242108, - "status_2xx": 6063726, + "bandwidth": "4.15GB/s", + "input_bw": "58.70MB/s", + "reconnects": 245644, + "status_2xx": 6155071, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-4096.json b/site/data/limited-conn-4096.json index a5ff13a8..1bd3e506 100644 --- a/site/data/limited-conn-4096.json +++ b/site/data/limited-conn-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1606253, - "avg_latency": "2.54ms", - "p99_latency": "34.80ms", - "cpu": "6573.4%", - "memory": "316MiB", + "rps": 1663464, + "avg_latency": "2.45ms", + "p99_latency": "32.00ms", + "cpu": "6371.3%", + "memory": "560MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "137.83MB/s", - "input_bw": "124.08MB/s", - "reconnects": 803148, - "status_2xx": 8031269, + "bandwidth": "142.74MB/s", + "input_bw": "128.50MB/s", + "reconnects": 831673, + "status_2xx": 8317323, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-512.json b/site/data/limited-conn-512.json index 968fa852..a49301ea 100644 --- a/site/data/limited-conn-512.json +++ b/site/data/limited-conn-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1567342, - "avg_latency": "317us", - "p99_latency": "4.48ms", - "cpu": "6305.4%", - "memory": "191MiB", + "rps": 1724801, + "avg_latency": "286us", + "p99_latency": "4.21ms", + "cpu": "6547.8%", + "memory": "322MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "134.49MB/s", - "input_bw": "121.07MB/s", - "reconnects": 783656, - "status_2xx": 7836713, + "bandwidth": "148.00MB/s", + "input_bw": "133.24MB/s", + "reconnects": 862396, + "status_2xx": 8624009, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-4096.json b/site/data/pipelined-4096.json index c522d8e0..0d898c5e 100644 --- a/site/data/pipelined-4096.json +++ b/site/data/pipelined-4096.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 45331702, - "avg_latency": "200us", - "p99_latency": "1.12ms", - "cpu": "6250.5%", - "memory": "232MiB", + "rps": 44612102, + "avg_latency": "201us", + "p99_latency": "1.03ms", + "cpu": "6219.4%", + "memory": "462MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.80GB/s", + "bandwidth": "3.74GB/s", "reconnects": 0, - "status_2xx": 226658512, + "status_2xx": 223060512, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-512.json b/site/data/pipelined-512.json index b1296e28..60d39a22 100644 --- a/site/data/pipelined-512.json +++ b/site/data/pipelined-512.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 44709405, - "avg_latency": "165us", - "p99_latency": "677us", - "cpu": "6549.1%", + "rps": 45950051, + "avg_latency": "155us", + "p99_latency": "688us", + "cpu": "6576.5%", "memory": "180MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.75GB/s", + "bandwidth": "3.85GB/s", "reconnects": 0, - "status_2xx": 223547025, + "status_2xx": 229750256, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-1024.json b/site/data/static-1024.json index 9b4ec7ce..bb2116f4 100644 --- a/site/data/static-1024.json +++ b/site/data/static-1024.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1124919, - "avg_latency": "19.13ms", - "p99_latency": "19.13ms", - "cpu": "6392.4%", - "memory": "226MiB", + "rps": 1136498, + "avg_latency": "20.39ms", + "p99_latency": "20.39ms", + "cpu": "6404.0%", + "memory": "227MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.16GB", + "bandwidth": "17.34GB", "reconnects": 0, - "status_2xx": 5716843, + "status_2xx": 5783528, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-4096.json b/site/data/static-4096.json index b09f682a..12165c96 100644 --- a/site/data/static-4096.json +++ b/site/data/static-4096.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1125885, - "avg_latency": "90.13ms", - "p99_latency": "90.13ms", - "cpu": "6313.9%", - "memory": "505MiB", + "rps": 1131988, + "avg_latency": "75.08ms", + "p99_latency": "75.08ms", + "cpu": "6309.2%", + "memory": "517MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.18GB", + "bandwidth": "17.27GB", "reconnects": 0, - "status_2xx": 5741582, + "status_2xx": 5772951, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-6800.json b/site/data/static-6800.json index c1fe31f7..7fca24bf 100644 --- a/site/data/static-6800.json +++ b/site/data/static-6800.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1121830, - "avg_latency": "14.44ms", - "p99_latency": "14.44ms", - "cpu": "6182.1%", - "memory": "461MiB", + "rps": 1117376, + "avg_latency": "58.13ms", + "p99_latency": "58.13ms", + "cpu": "6417.0%", + "memory": "641MiB", "connections": 6800, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.11GB", + "bandwidth": "17.05GB", "reconnects": 0, - "status_2xx": 5721736, + "status_2xx": 5698762, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-256.json b/site/data/upload-256.json index 8c10e468..9b3ed830 100644 --- a/site/data/upload-256.json +++ b/site/data/upload-256.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3046, - "avg_latency": "76.84ms", - "p99_latency": "236.30ms", - "cpu": "4053.8%", - "memory": "294MiB", + "rps": 3084, + "avg_latency": "76.27ms", + "p99_latency": "248.50ms", + "cpu": "4309.1%", + "memory": "299MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "283.16KB/s", - "input_bw": "24.16GB/s", - "reconnects": 3018, - "status_2xx": 15323, + "bandwidth": "286.97KB/s", + "input_bw": "24.46GB/s", + "reconnects": 3060, + "status_2xx": 15514, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-32.json b/site/data/upload-32.json index f806d0cf..0c601bd3 100644 --- a/site/data/upload-32.json +++ b/site/data/upload-32.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3169, - "avg_latency": "10.07ms", - "p99_latency": "27.80ms", - "cpu": "1648.3%", - "memory": "193MiB", + "rps": 3158, + "avg_latency": "10.09ms", + "p99_latency": "28.50ms", + "cpu": "1684.5%", + "memory": "186MiB", "connections": 32, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "294.57KB/s", - "input_bw": "25.14GB/s", - "reconnects": 3168, - "status_2xx": 15847, + "bandwidth": "293.95KB/s", + "input_bw": "25.05GB/s", + "reconnects": 3158, + "status_2xx": 15824, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 From 18b3864f24c6a6aea4f42c51a745b6867709f323 Mon Sep 17 00:00:00 2001 From: praisethemoon Date: Sun, 24 May 2026 18:37:11 +0200 Subject: [PATCH 20/21] new vm failed. revert --- frameworks/typev/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/typev/Dockerfile b/frameworks/typev/Dockerfile index 2dbbad38..fb3d4e8a 100644 --- a/frameworks/typev/Dockerfile +++ b/frameworks/typev/Dockerfile @@ -12,7 +12,7 @@ WORKDIR /app # typev VM — binary + FFI plugins (json, stdcore, stdsocket, ...). Pre-built # (-O3 -march=x86-64-v3, static liburing) and fetched from object storage RUN wget -q -O /tmp/typev.zip \ - https://typev.s3.fr-par.scw.cloud/typev-24-05-2026.zip && \ + https://typev.s3.fr-par.scw.cloud/typev-23-05-2026-v2.zip && \ unzip -q /tmp/typev.zip -d /app && \ rm /tmp/typev.zip From 9052d1519ae0b4d07e3b06dbbde0a3c2927df78f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 24 May 2026 16:48:58 +0000 Subject: [PATCH 21/21] Benchmark results: typev --- site/data/baseline-4096.json | 16 ++++++++-------- site/data/baseline-512.json | 16 ++++++++-------- site/data/echo-ws-16384.json | 14 +++++++------- site/data/echo-ws-4096.json | 14 +++++++------- site/data/echo-ws-512.json | 14 +++++++------- site/data/echo-ws-pipeline-16384.json | 14 +++++++------- site/data/echo-ws-pipeline-4096.json | 14 +++++++------- site/data/echo-ws-pipeline-512.json | 14 +++++++------- site/data/json-4096.json | 18 +++++++++--------- site/data/limited-conn-4096.json | 18 +++++++++--------- site/data/limited-conn-512.json | 18 +++++++++--------- site/data/pipelined-4096.json | 14 +++++++------- site/data/pipelined-512.json | 14 +++++++------- site/data/static-1024.json | 14 +++++++------- site/data/static-4096.json | 14 +++++++------- site/data/static-6800.json | 14 +++++++------- site/data/upload-256.json | 18 +++++++++--------- site/data/upload-32.json | 18 +++++++++--------- 18 files changed, 138 insertions(+), 138 deletions(-) diff --git a/site/data/baseline-4096.json b/site/data/baseline-4096.json index c2509475..92980ce7 100644 --- a/site/data/baseline-4096.json +++ b/site/data/baseline-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2152602, - "avg_latency": "160us", - "p99_latency": "629us", - "cpu": "6622.6%", - "memory": "401MiB", + "rps": 2159262, + "avg_latency": "150us", + "p99_latency": "729us", + "cpu": "6556.8%", + "memory": "396MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "184.71MB/s", - "input_bw": "166.28MB/s", + "bandwidth": "185.27MB/s", + "input_bw": "166.80MB/s", "reconnects": 0, - "status_2xx": 10763014, + "status_2xx": 10796310, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/baseline-512.json b/site/data/baseline-512.json index 180f4b6a..69c638a1 100644 --- a/site/data/baseline-512.json +++ b/site/data/baseline-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 2177969, - "avg_latency": "105us", - "p99_latency": "729us", - "cpu": "6248.4%", - "memory": "153MiB", + "rps": 2232140, + "avg_latency": "107us", + "p99_latency": "636us", + "cpu": "6380.0%", + "memory": "156MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "186.88MB/s", - "input_bw": "168.24MB/s", + "bandwidth": "191.53MB/s", + "input_bw": "172.43MB/s", "reconnects": 0, - "status_2xx": 10889847, + "status_2xx": 11160704, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-16384.json b/site/data/echo-ws-16384.json index 9122ad92..5e0740ad 100644 --- a/site/data/echo-ws-16384.json +++ b/site/data/echo-ws-16384.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2854317, - "avg_latency": "164us", - "p99_latency": "1.47ms", - "cpu": "6258.8%", - "memory": "820MiB", + "rps": 2681888, + "avg_latency": "160us", + "p99_latency": "1.02ms", + "cpu": "6185.7%", + "memory": "818MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "19.13MB/s", + "bandwidth": "18.01MB/s", "reconnects": 0, - "status_2xx": 14271589, + "status_2xx": 13409442, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-4096.json b/site/data/echo-ws-4096.json index dfeff63c..257b35e0 100644 --- a/site/data/echo-ws-4096.json +++ b/site/data/echo-ws-4096.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2769614, - "avg_latency": "149us", - "p99_latency": "593us", - "cpu": "6227.6%", - "memory": "463MiB", + "rps": 2738284, + "avg_latency": "140us", + "p99_latency": "639us", + "cpu": "6294.2%", + "memory": "464MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.49MB/s", + "bandwidth": "18.28MB/s", "reconnects": 0, - "status_2xx": 13848070, + "status_2xx": 13691422, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-512.json b/site/data/echo-ws-512.json index 86caf209..afceea16 100644 --- a/site/data/echo-ws-512.json +++ b/site/data/echo-ws-512.json @@ -369,18 +369,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 2823013, - "avg_latency": "97us", - "p99_latency": "494us", - "cpu": "6629.8%", - "memory": "182MiB", + "rps": 2839865, + "avg_latency": "93us", + "p99_latency": "474us", + "cpu": "6717.4%", + "memory": "177MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "18.85MB/s", + "bandwidth": "18.95MB/s", "reconnects": 0, - "status_2xx": 14115068, + "status_2xx": 14199326, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-16384.json b/site/data/echo-ws-pipeline-16384.json index 54fb1cff..308ad403 100644 --- a/site/data/echo-ws-pipeline-16384.json +++ b/site/data/echo-ws-pipeline-16384.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 17992361, - "avg_latency": "326us", - "p99_latency": "869us", - "cpu": "6096.8%", - "memory": "741MiB", + "rps": 18274678, + "avg_latency": "386us", + "p99_latency": "2.74ms", + "cpu": "6083.0%", + "memory": "362MiB", "connections": 16384, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "120.18MB/s", + "bandwidth": "121.96MB/s", "reconnects": 0, - "status_2xx": 89961808, + "status_2xx": 91373392, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-4096.json b/site/data/echo-ws-pipeline-4096.json index 3b4e604e..8ec70085 100644 --- a/site/data/echo-ws-pipeline-4096.json +++ b/site/data/echo-ws-pipeline-4096.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18323142, - "avg_latency": "192us", - "p99_latency": "363us", - "cpu": "6525.0%", - "memory": "405MiB", + "rps": 18343548, + "avg_latency": "219us", + "p99_latency": "458us", + "cpu": "6309.3%", + "memory": "458MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "122.27MB/s", + "bandwidth": "122.41MB/s", "reconnects": 0, - "status_2xx": 91615712, + "status_2xx": 91717744, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/echo-ws-pipeline-512.json b/site/data/echo-ws-pipeline-512.json index 8c721c81..759f3426 100644 --- a/site/data/echo-ws-pipeline-512.json +++ b/site/data/echo-ws-pipeline-512.json @@ -230,18 +230,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 18431324, - "avg_latency": "143us", - "p99_latency": "133us", - "cpu": "6377.6%", - "memory": "149MiB", + "rps": 18372604, + "avg_latency": "146us", + "p99_latency": "135us", + "cpu": "6378.4%", + "memory": "182MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "122.85MB/s", + "bandwidth": "122.61MB/s", "reconnects": 0, - "status_2xx": 92156624, + "status_2xx": 91863023, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/json-4096.json b/site/data/json-4096.json index cb41d343..64bc6da6 100644 --- a/site/data/json-4096.json +++ b/site/data/json-4096.json @@ -1036,19 +1036,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1231014, - "avg_latency": "2.93ms", - "p99_latency": "80.60ms", - "cpu": "6322.3%", - "memory": "479MiB", + "rps": 1227325, + "avg_latency": "2.96ms", + "p99_latency": "82.00ms", + "cpu": "6396.4%", + "memory": "720MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "4.15GB/s", - "input_bw": "58.70MB/s", - "reconnects": 245644, - "status_2xx": 6155071, + "bandwidth": "4.13GB/s", + "input_bw": "58.52MB/s", + "reconnects": 244966, + "status_2xx": 6136626, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-4096.json b/site/data/limited-conn-4096.json index 1bd3e506..7fcabf92 100644 --- a/site/data/limited-conn-4096.json +++ b/site/data/limited-conn-4096.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1663464, - "avg_latency": "2.45ms", - "p99_latency": "32.00ms", - "cpu": "6371.3%", - "memory": "560MiB", + "rps": 1674965, + "avg_latency": "2.43ms", + "p99_latency": "34.40ms", + "cpu": "6595.2%", + "memory": "472MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "142.74MB/s", - "input_bw": "128.50MB/s", - "reconnects": 831673, - "status_2xx": 8317323, + "bandwidth": "143.72MB/s", + "input_bw": "129.39MB/s", + "reconnects": 837480, + "status_2xx": 8374829, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/limited-conn-512.json b/site/data/limited-conn-512.json index a49301ea..a0411e93 100644 --- a/site/data/limited-conn-512.json +++ b/site/data/limited-conn-512.json @@ -1308,19 +1308,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 1724801, - "avg_latency": "286us", - "p99_latency": "4.21ms", - "cpu": "6547.8%", - "memory": "322MiB", + "rps": 1708478, + "avg_latency": "289us", + "p99_latency": "4.52ms", + "cpu": "6541.8%", + "memory": "314MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "148.00MB/s", - "input_bw": "133.24MB/s", - "reconnects": 862396, - "status_2xx": 8624009, + "bandwidth": "146.60MB/s", + "input_bw": "131.98MB/s", + "reconnects": 854230, + "status_2xx": 8542394, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-4096.json b/site/data/pipelined-4096.json index 0d898c5e..6825ca16 100644 --- a/site/data/pipelined-4096.json +++ b/site/data/pipelined-4096.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 44612102, - "avg_latency": "201us", - "p99_latency": "1.03ms", - "cpu": "6219.4%", - "memory": "462MiB", + "rps": 46159084, + "avg_latency": "189us", + "p99_latency": "731us", + "cpu": "6258.8%", + "memory": "451MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.74GB/s", + "bandwidth": "3.87GB/s", "reconnects": 0, - "status_2xx": 223060512, + "status_2xx": 230795424, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/pipelined-512.json b/site/data/pipelined-512.json index 60d39a22..f455025d 100644 --- a/site/data/pipelined-512.json +++ b/site/data/pipelined-512.json @@ -1239,18 +1239,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 45950051, - "avg_latency": "155us", - "p99_latency": "688us", - "cpu": "6576.5%", - "memory": "180MiB", + "rps": 44170000, + "avg_latency": "153us", + "p99_latency": "608us", + "cpu": "6624.6%", + "memory": "181MiB", "connections": 512, "threads": 64, "duration": "5s", "pipeline": 16, - "bandwidth": "3.85GB/s", + "bandwidth": "3.70GB/s", "reconnects": 0, - "status_2xx": 229750256, + "status_2xx": 220850000, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-1024.json b/site/data/static-1024.json index bb2116f4..90a57c1b 100644 --- a/site/data/static-1024.json +++ b/site/data/static-1024.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1136498, - "avg_latency": "20.39ms", - "p99_latency": "20.39ms", - "cpu": "6404.0%", - "memory": "227MiB", + "rps": 1123368, + "avg_latency": "25.78ms", + "p99_latency": "25.78ms", + "cpu": "6447.9%", + "memory": "221MiB", "connections": 1024, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.34GB", + "bandwidth": "17.14GB", "reconnects": 0, - "status_2xx": 5783528, + "status_2xx": 5728879, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-4096.json b/site/data/static-4096.json index 12165c96..26bcfc87 100644 --- a/site/data/static-4096.json +++ b/site/data/static-4096.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1131988, - "avg_latency": "75.08ms", - "p99_latency": "75.08ms", - "cpu": "6309.2%", - "memory": "517MiB", + "rps": 1130947, + "avg_latency": "68.91ms", + "p99_latency": "68.91ms", + "cpu": "6226.6%", + "memory": "335MiB", "connections": 4096, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.27GB", + "bandwidth": "17.25GB", "reconnects": 0, - "status_2xx": 5772951, + "status_2xx": 5767207, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/static-6800.json b/site/data/static-6800.json index 7fca24bf..bb9f9f31 100644 --- a/site/data/static-6800.json +++ b/site/data/static-6800.json @@ -1062,18 +1062,18 @@ { "framework": "typev", "language": "Type-C", - "rps": 1117376, - "avg_latency": "58.13ms", - "p99_latency": "58.13ms", - "cpu": "6417.0%", - "memory": "641MiB", + "rps": 1123290, + "avg_latency": "31.44ms", + "p99_latency": "31.44ms", + "cpu": "6319.4%", + "memory": "647MiB", "connections": 6800, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "17.05GB", + "bandwidth": "17.14GB", "reconnects": 0, - "status_2xx": 5698762, + "status_2xx": 5728593, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-256.json b/site/data/upload-256.json index 9b3ed830..3e7ccbf0 100644 --- a/site/data/upload-256.json +++ b/site/data/upload-256.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3084, - "avg_latency": "76.27ms", - "p99_latency": "248.50ms", - "cpu": "4309.1%", - "memory": "299MiB", + "rps": 3053, + "avg_latency": "77.28ms", + "p99_latency": "251.20ms", + "cpu": "3797.3%", + "memory": "279MiB", "connections": 256, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "286.97KB/s", - "input_bw": "24.46GB/s", - "reconnects": 3060, - "status_2xx": 15514, + "bandwidth": "283.98KB/s", + "input_bw": "24.22GB/s", + "reconnects": 3030, + "status_2xx": 15331, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0 diff --git a/site/data/upload-32.json b/site/data/upload-32.json index 0c601bd3..cefd8649 100644 --- a/site/data/upload-32.json +++ b/site/data/upload-32.json @@ -981,19 +981,19 @@ { "framework": "typev", "language": "Type-C", - "rps": 3158, - "avg_latency": "10.09ms", - "p99_latency": "28.50ms", - "cpu": "1684.5%", - "memory": "186MiB", + "rps": 3152, + "avg_latency": "10.10ms", + "p99_latency": "27.70ms", + "cpu": "1662.5%", + "memory": "187MiB", "connections": 32, "threads": 64, "duration": "5s", "pipeline": 1, - "bandwidth": "293.95KB/s", - "input_bw": "25.05GB/s", - "reconnects": 3158, - "status_2xx": 15824, + "bandwidth": "293.41KB/s", + "input_bw": "25.00GB/s", + "reconnects": 3153, + "status_2xx": 15796, "status_3xx": 0, "status_4xx": 0, "status_5xx": 0