Skip to content

ntex: enable CON-1M and CON-1M-TLS benchmarks - #1854

Open
fafhrd91 wants to merge 8 commits into
MDA2AV:mainfrom
fafhrd91:ntex5
Open

fafhrd91 wants to merge 8 commits into
MDA2AV:mainfrom
fafhrd91:ntex5

Conversation

@fafhrd91

Copy link
Copy Markdown
Contributor
  • enable connections-1m (CON-1M) and connections-1m-tls (CON-1M-TLS)
  • fix autobahn-test spec

@fafhrd91

Copy link
Copy Markdown
Contributor Author

/benchmark-multiple --save

@github-actions

Copy link
Copy Markdown
Contributor

👋 Benchmark request received. A collaborator will review and approve the run.

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark Results

Frameworks: 4 | Test: all tests

✅ ntex

Test Conn RPS Rate CPU/req p99 p99.9 CPU Mem Δ RPS Δ Mem
baseline 4096 3,312,312 — — — — 6591.0% 356MiB +0.6% -25.1%
pipelined 4096 23,097,126 — — — — 6618.8% 347MiB +10.2% -24.9%
limited-conn 4096 2,624,060 — — — — 6390.7% 412MiB +1.6% -17.3%
json-comp 4096 797,372 — — — — 6361.3% 472MiB +11.9% -33.9%
json-comp 16384 774,917 — — — — 6736.7% 776MiB +10.7% -31.1%
json-tls 4096 1,635,798 — — — — 6468.9% 504MiB +17.9% -15.7%
8gbit 512 49,057 0.9811 51.49us 127.0us 2391.0us 234.5% 321MiB -0.3% -30.5%
static-tls 1024 402,385 — — — — 6617.8% 2.4GiB -1.3% -76.0%
async-db 1024 319,495 — — — — 3169.6% 263MiB +4.8% -23.5%
fortunes 1024 184,364 — — — — 3243.3% 277MiB +3.5% -15.0%
latency-1m 1024 997,706 0.9977 27.46us 180.0us 4998.0us 2986.2% 317MiB ~0% -20.6%
latency-10k 1024 9,977 0.9977 34.63us 120.0us 323.0us 33.5% 313MiB ~0% -18.1%
async 32000 2,177,052 — — — — 5545.4% 929MiB +7.1% -24.4%
connections-1m-tls 1000000 245,717 0.9829 88.88us 1237300.0us 1378200.0us 1742.5% 42.9GiB NEW NEW
connections-1m 1000000 166,642 0.6666 ⚠️ 112.94us 24632.0us 34224.0us 901.3% 6.5GiB NEW NEW

Composite score, main against this run, in the board's default view:

Family main this run Δ
HTTP/1.1 6549.0 (9 of 112) 7443.9 (7 of 112) +894.9
HTTP/2 3023.1 (2 of 41) 3302.6 (2 of 41) +279.5
gRPC 2000.0 (1 of 14) 2000.0 (1 of 14) +0.0
WebSocket 2784.3 (4 of 39) 2821.1 (3 of 39) +36.7
Database 1659.4 (5 of 6) 1728.5 (5 of 6) +69.1

The results on main were measured in another session, so a few points up or down can be the machine and not the change.

Compliance

Suite Tool Score Failed
H/1.1 (h1) http11probe d50d818 152 / 159 7
H/1.1: 7 failed
Test Expected Got
COMP-HOST-WITH-USERINFO Host header with userinfo (user@host) must be rejected (RFC 9112 §3.2, MUST) 400 or close 200, connection left open
COMP-HOST-WITH-PATH Host header with path component must be rejected (RFC 9112 §3.2, MUST) 400 or close 200, connection left open
COMP-OPTIONS-STAR OPTIONS * is the only valid asterisk-form request (RFC 9112 §3.2.4, MUST) 2xx or 405; close/timeout = warn 404, connection left open
COMP-METHOD-CONNECT CONNECT to an origin server must be rejected (RFC 9110 §9.3.6, SHOULD) 400/405/501 or close 404, connection closed
SMUG-MULTIPLE-HOST-COMMA Host header with comma-separated values must be rejected (RFC 9110 §7.2, MUST) 400 or close 200, connection left open
MAL-INCOMPLETE-REQUEST Partial HTTP request — request-line and headers but no final CRLF (NOTAPPLICABLE) 400/close/timeout 408, connection closed
MAL-EMPTY-REQUEST Zero bytes — TCP connection established without sending any data (NOTAPPLICABLE) 400/close/timeout 408, connection closed

✅ ntex-grpc

Test Conn RPS CPU Mem Δ RPS Δ Mem
unary-grpc 256 6,838,170 2363.8% 343MiB -1.4% -4.2%
unary-grpc 1024 6,816,798 2463.1% 388MiB -1.5% -20.2%
unary-grpc-tls 256 6,755,079 2323.1% 367MiB -0.8% -3.9%
unary-grpc-tls 1024 6,668,122 2537.1% 422MiB ~0% -1.4%

Composite score, main against this run, in the board's default view:

Family main this run Δ
HTTP/1.1 6549.0 (9 of 112) 7443.9 (7 of 112) +894.9
HTTP/2 3023.1 (2 of 41) 3302.6 (2 of 41) +279.5
gRPC 2000.0 (1 of 14) 2000.0 (1 of 14) +0.0
WebSocket 2784.3 (4 of 39) 2821.1 (3 of 39) +36.7
Database 1659.4 (5 of 6) 1728.5 (5 of 6) +69.1

The results on main were measured in another session, so a few points up or down can be the machine and not the change.

✅ ntex-h2

Test Conn RPS CPU Mem Δ RPS Δ Mem
baseline-h2 256 12,637,932 4310.2% 318MiB +12.1% -15.2%
baseline-h2 1024 12,274,082 4585.3% 349MiB +3.3% -9.4%
static-h2 256 397,550 6458.5% 6.4GiB -8.2% -7.2%
static-h2 1024 363,602 6510.2% 8.0GiB -4.5% -2.4%
baseline-h2c 256 12,510,357 4498.2% 303MiB +10.4% -14.4%
baseline-h2c 1024 12,620,474 4589.8% 316MiB +7.3% -18.6%
baseline-h2c 4096 12,329,371 4218.2% 410MiB +9.7% -13.5%
json-h2c 1024 3,494,071 6534.1% 521MiB +43.1% -10.8%
json-h2c 4096 3,244,560 6321.2% 1.1GiB +36.0% -15.4%

Composite score, main against this run, in the board's default view:

Family main this run Δ
HTTP/1.1 6549.0 (9 of 112) 7443.9 (7 of 112) +894.9
HTTP/2 3023.1 (2 of 41) 3302.6 (2 of 41) +279.5
gRPC 2000.0 (1 of 14) 2000.0 (1 of 14) +0.0
WebSocket 2784.3 (4 of 39) 2821.1 (3 of 39) +36.7
Database 1659.4 (5 of 6) 1728.5 (5 of 6) +69.1

The results on main were measured in another session, so a few points up or down can be the machine and not the change.

Compliance

Suite Tool Score Failed
H/2 (h2) h2spec 2.6.0 146 / 146 (tls 146/146, h2c 146/146) 0

✅ ntex-ws

Test Conn RPS CPU Mem Δ RPS Δ Mem
echo-ws 512 3,789,311 6323.3% 302MiB -0.5% -10.1%
echo-ws 4096 3,959,028 6125.1% 341MiB ~0% -24.7%
echo-ws 16384 3,597,361 5996.6% 658MiB -0.5% -13.3%
echo-ws-pipeline 512 51,944,352 6497.8% 300MiB +4.9% -7.7%
echo-ws-pipeline 4096 53,083,952 6373.8% 344MiB +3.7% -24.7%
echo-ws-pipeline 16384 48,861,648 6035.6% 659MiB +3.0% -11.8%
echo-ws-limited 512 2,215,834 5871.7% 311MiB +1.0% -14.6%
echo-ws-limited 4096 2,501,273 6311.3% 400MiB ~0% -17.9%

Composite score, main against this run, in the board's default view:

Family main this run Δ
HTTP/1.1 6549.0 (9 of 112) 7443.9 (7 of 112) +894.9
HTTP/2 3023.1 (2 of 41) 3302.6 (2 of 41) +279.5
gRPC 2000.0 (1 of 14) 2000.0 (1 of 14) +0.0
WebSocket 2784.3 (4 of 39) 2821.1 (3 of 39) +36.7
Database 1659.4 (5 of 6) 1728.5 (5 of 6) +69.1

The results on main were measured in another session, so a few points up or down can be the machine and not the change.

Compliance

Suite Tool Score Failed
WebSocket (ws) autobahn-testsuite 25.10.1 244 / 244 0

@MDA2AV

MDA2AV commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Can you set again serde_json instead of sonic-rs?

@fafhrd91

Copy link
Copy Markdown
Contributor Author

is there problem with sonic-rs? i use it production in high profile service, works fine.

@fafhrd91

Copy link
Copy Markdown
Contributor Author

/benchmark-multiple --save

@github-actions

Copy link
Copy Markdown
Contributor

👋 Benchmark request received. A collaborator will review and approve the run.

@MDA2AV

MDA2AV commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

It is just a matter of apples to apples comparisons, serde_json was chosen as standard option for rust because it is vastly more used. Every language has only one option for json library in standard tier.

We can consider sonic-rs as the rust option for standard and update every entry, but I know what will happen, tomorrow zig folks will claim that some random json library should be accepted because we did with sonic-rs.. I've been on that spiral before, there is always the next faster library with more unsafe and SIMD.

Nevertheless, maybe you are right and sonic-rs can be considered production grade for standard, if that happens I will update and rerun all rust entries.

@fafhrd91

Copy link
Copy Markdown
Contributor Author

ok, switched to serde

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This run's results were not saved: the branch moved to 9b9ce51c4 while this run was measuring 8b1f18cd1, so the numbers are for code the branch no longer has. Nothing was committed, and the board keeps the numbers it has. Save them with a new run.

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark Results

Frameworks: 4 | Test: all tests

✅ ntex

Test Conn RPS Rate CPU/req p99 p99.9 CPU Mem Δ RPS Δ Mem
baseline 4096 3,342,312 — — — — 6370.5% 354MiB +1.5% -25.5%
pipelined 4096 23,298,019 — — — — 6583.1% 346MiB +11.1% -25.1%
limited-conn 4096 2,623,099 — — — — 6400.9% 399MiB +1.5% -19.9%
json-comp 4096 823,706 — — — — 6381.0% 459MiB +15.6% -35.7%
json-comp 16384 799,113 — — — — 6732.4% 782MiB +14.2% -30.6%
json-tls 4096 1,687,279 — — — — 6150.8% 495MiB +21.6% -17.2%
8gbit 512 49,322 0.9864 51.82us 132.0us 2841.0us 255.4% 324MiB +0.3% -29.9%
static-tls 1024 403,969 — — — — 6629.9% 2.3GiB -0.9% -77.0%
async-db 1024 326,286 — — — — 3155.8% 256MiB +7.0% -25.6%
fortunes 1024 178,650 — — — — 3235.0% 282MiB +0.3% -13.5%
latency-1m 1024 998,470 0.9985 27.61us 179.0us 459.0us 3012.8% 318MiB ~0% -20.3%
latency-10k 1024 9,980 0.9980 36.31us 118.0us 221.0us 35.1% 313MiB ~0% -18.1%
async 32000 2,457,180 — — — — 6295.6% 872MiB +20.9% -29.0%
connections-1m-tls 1000000 244,792 0.9792 ⚠️ 87.52us 1152500.0us 1290900.0us 1711.3% 42.7GiB NEW NEW
connections-1m 1000000 166,681 0.6667 ⚠️ 113.14us 26632.0us 35248.0us 898.4% 6.4GiB NEW NEW

Composite score, main against this run, in the board's default view:

Family main this run Δ
HTTP/1.1 6549.0 (9 of 112) 7607.4 (6 of 112) +1058.3
HTTP/2 3023.1 (2 of 41) 3302.7 (2 of 41) +279.6
gRPC 2000.0 (1 of 14) 2000.0 (1 of 14) +0.0
WebSocket 2784.3 (4 of 39) 2815.1 (3 of 39) +30.8
Database 1659.4 (5 of 6) 1722.0 (5 of 6) +62.6

The results on main were measured in another session, so a few points up or down can be the machine and not the change.

Compliance

Suite Tool Score Failed
H/1.1 (h1) http11probe d50d818 152 / 159 7
H/1.1: 7 failed
Test Expected Got
COMP-HOST-WITH-USERINFO Host header with userinfo (user@host) must be rejected (RFC 9112 §3.2, MUST) 400 or close 200, connection left open
COMP-HOST-WITH-PATH Host header with path component must be rejected (RFC 9112 §3.2, MUST) 400 or close 200, connection left open
COMP-OPTIONS-STAR OPTIONS * is the only valid asterisk-form request (RFC 9112 §3.2.4, MUST) 2xx or 405; close/timeout = warn 404, connection left open
COMP-METHOD-CONNECT CONNECT to an origin server must be rejected (RFC 9110 §9.3.6, SHOULD) 400/405/501 or close 404, connection closed
SMUG-MULTIPLE-HOST-COMMA Host header with comma-separated values must be rejected (RFC 9110 §7.2, MUST) 400 or close 200, connection left open
MAL-INCOMPLETE-REQUEST Partial HTTP request — request-line and headers but no final CRLF (NOTAPPLICABLE) 400/close/timeout 408, connection closed
MAL-EMPTY-REQUEST Zero bytes — TCP connection established without sending any data (NOTAPPLICABLE) 400/close/timeout 408, connection closed

✅ ntex-grpc

Test Conn RPS CPU Mem Δ RPS Δ Mem
unary-grpc 256 6,906,230 2349.3% 404MiB -0.4% +12.8%
unary-grpc 1024 6,904,891 2493.5% 478MiB -0.3% -1.6%
unary-grpc-tls 256 6,802,589 2416.6% 386MiB ~0% +1.0%
unary-grpc-tls 1024 6,765,494 2562.6% 447MiB +1.5% +4.4%

Composite score, main against this run, in the board's default view:

Family main this run Δ
HTTP/1.1 6549.0 (9 of 112) 7607.4 (6 of 112) +1058.3
HTTP/2 3023.1 (2 of 41) 3302.7 (2 of 41) +279.6
gRPC 2000.0 (1 of 14) 2000.0 (1 of 14) +0.0
WebSocket 2784.3 (4 of 39) 2815.1 (3 of 39) +30.8
Database 1659.4 (5 of 6) 1722.0 (5 of 6) +62.6

The results on main were measured in another session, so a few points up or down can be the machine and not the change.

✅ ntex-h2

Test Conn RPS CPU Mem Δ RPS Δ Mem
baseline-h2 256 12,429,423 4298.2% 319MiB +10.3% -14.9%
baseline-h2 1024 12,264,407 4618.1% 360MiB +3.3% -6.5%
static-h2 256 389,400 6516.3% 6.3GiB -10.1% -8.7%
static-h2 1024 363,297 6514.2% 8.3GiB -4.5% +1.2%
baseline-h2c 256 12,599,760 4309.4% 301MiB +11.2% -15.0%
baseline-h2c 1024 13,026,284 4240.6% 311MiB +10.7% -19.8%
baseline-h2c 4096 12,348,101 4159.9% 425MiB +9.9% -10.3%
json-h2c 1024 3,478,076 6409.8% 508MiB +42.4% -13.0%
json-h2c 4096 3,271,177 6320.1% 1.1GiB +37.1% -15.4%

Composite score, main against this run, in the board's default view:

Family main this run Δ
HTTP/1.1 6549.0 (9 of 112) 7607.4 (6 of 112) +1058.3
HTTP/2 3023.1 (2 of 41) 3302.7 (2 of 41) +279.6
gRPC 2000.0 (1 of 14) 2000.0 (1 of 14) +0.0
WebSocket 2784.3 (4 of 39) 2815.1 (3 of 39) +30.8
Database 1659.4 (5 of 6) 1722.0 (5 of 6) +62.6

The results on main were measured in another session, so a few points up or down can be the machine and not the change.

Compliance

Suite Tool Score Failed
H/2 (h2) h2spec 2.6.0 146 / 146 (tls 146/146, h2c 146/146) 0

✅ ntex-ws

Test Conn RPS CPU Mem Δ RPS Δ Mem
echo-ws 512 3,785,174 6523.8% 305MiB -0.6% -9.2%
echo-ws 4096 3,939,792 6158.8% 341MiB -0.5% -24.7%
echo-ws 16384 3,590,442 5999.5% 660MiB -0.7% -13.0%
echo-ws-pipeline 512 51,749,264 6504.1% 299MiB +4.5% -8.0%
echo-ws-pipeline 4096 53,036,729 6372.8% 343MiB +3.6% -24.9%
echo-ws-pipeline 16384 48,971,555 6116.7% 659MiB +3.2% -11.8%
echo-ws-limited 512 2,205,031 5882.9% 311MiB +0.5% -14.6%
echo-ws-limited 4096 2,499,072 5994.3% 402MiB ~0% -17.5%

Composite score, main against this run, in the board's default view:

Family main this run Δ
HTTP/1.1 6549.0 (9 of 112) 7607.4 (6 of 112) +1058.3
HTTP/2 3023.1 (2 of 41) 3302.7 (2 of 41) +279.6
gRPC 2000.0 (1 of 14) 2000.0 (1 of 14) +0.0
WebSocket 2784.3 (4 of 39) 2815.1 (3 of 39) +30.8
Database 1659.4 (5 of 6) 1722.0 (5 of 6) +62.6

The results on main were measured in another session, so a few points up or down can be the machine and not the change.

Compliance

Suite Tool Score Failed
WebSocket (ws) autobahn-testsuite 25.10.1 244 / 244 0

@MDA2AV

MDA2AV commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Hmm struggling with the 1 million conn tests, taking 20-30 mins to open all connections on the tls one (gcannon load gen waits), only opening 400kish on the other because the loadgen does not wait long enough (zrk load gen doesnt wait). Latency values also abnormal.

Ill need to take a look at this

@fafhrd91

Copy link
Copy Markdown
Contributor Author

/benchmark-multiple --save

@github-actions

Copy link
Copy Markdown
Contributor

👋 Benchmark request received. A collaborator will review and approve the run.

@fafhrd91

Copy link
Copy Markdown
Contributor Author

@MDA2AV i think problem with 1m connections is because of default KeepAlive timeout in ntex. i increased it to 10 sec.

@MDA2AV

MDA2AV commented Nov 23, 2026

Copy link
Copy Markdown
Owner

I am changing the connection tests to work with a rampup on connection count, too many frameworks are collapsing with current test setup, Ill update here when it is done

@fafhrd91

Copy link
Copy Markdown
Contributor Author

/benchmark-multiple --save

@github-actions

Copy link
Copy Markdown
Contributor

👋 Benchmark request received. A collaborator will review and approve the run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants