Skip to content

bench: handle the session ticket in streams setup - #4412

Open
larseggert wants to merge 1 commit into
mainfrom
bench-streams-ticket-setup
Open

larseggert wants to merge 1 commit into
mainfrom
bench-streams-ticket-setup

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

The default HTTP/3 client's setup also waits for the session ticket, so processing it is not timed.

@larseggert
larseggert marked this pull request as ready for review November 23, 2026 15:20
Copilot AI balanced review requested due to automatic review settings November 23, 2026 15:20
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.62%. Comparing base (6ae0599) to head (f1b2a3d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4412   +/-   ##
=======================================
  Coverage   96.61%   96.62%           
=======================================
  Files         118      118           
  Lines       43894    43894           
  Branches    43894    43894           
=======================================
+ Hits        42410    42412    +2     
+ Misses       1463     1461    -2     
  Partials       21       21           
Flag Coverage Δ
freebsd 94.12% <ø> (+10.33%) ⬆️
linux 96.76% <ø> (-0.02%) ⬇️
macos 94.51% <ø> (+<0.01%) ⬆️
windows 94.57% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
neqo-common 99.33% <ø> (+0.04%) ⬆️
neqo-http3 96.00% <ø> (ø)
neqo-qpack 96.55% <ø> (ø)
neqo-transport 97.13% <ø> (ø)
neqo-udp 87.63% <ø> (ø)
mtu 91.31% <ø> (ø)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the change moving session-ticket processing into HTTP/3 client setup.

No open issues 🎉

What changed in this PR

This PR moves session-ticket processing into the simulated HTTP/3 client’s setup phase, keeping that work outside timed stream benchmarks.

Changes:

  • Require both connection establishment and receipt of a resumption token before setup completes.
  • Add a ReceiveResumptionToken goal that completes on the client’s resumption-token event.
File Description
test-fixture/​src/​sim/​http3_connection.rs Adds the resumption-token goal and includes it in default client setup.

Review effort: Balanced

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No findings.

@github-actions

Copy link
Copy Markdown
Contributor

Failed Interop Tests

QUIC Interop Runner, client vs. server, differences relative to main at c46d346.

neqo-pr as clientneqo-pr as server
neqo-pr vs. aioquic: run cancelled after 20 min
neqo-pr vs. go-x-net: run cancelled after 20 min
neqo-pr vs. haproxy: BP BA
neqo-pr vs. kwik: run cancelled after 20 min
neqo-pr vs. linuxquic: run cancelled after 20 min
neqo-pr vs. lsquic: L1 C1
neqo-pr vs. msquic: A L1 C1
neqo-pr vs. mvfst: baseline result missing
neqo-pr vs. neqo: A
neqo-pr vs. nginx: BP BA
neqo-pr vs. ngtcp2: baseline result missing
neqo-pr vs. picoquic: baseline result missing
neqo-pr vs. quic-go: baseline result missing
neqo-pr vs. quic-zig: baseline result missing
neqo-pr vs. quiche: BP BA
neqo-pr vs. rama: run cancelled after 20 min
neqo-pr vs. s2n-quic: baseline result missing
neqo-pr vs. tquic: run cancelled after 20 min
neqo-pr vs. xquic: baseline result missing
aioquic vs. neqo-pr: A
chrome vs. neqo-pr: baseline result missing
go-x-net vs. neqo-pr: CM
kwik vs. neqo-pr: baseline result missing
linuxquic vs. neqo-pr: baseline result missing
msquic vs. neqo-pr: CM
mvfst vs. neqo-pr: H DC LR C20 M S R Z 3 B U E A L1 L2 C1 C2 6 V2 BP BA CM
neqo vs. neqo-pr: run cancelled after 20 min
ngtcp2 vs. neqo-pr: baseline result missing
openssl vs. neqo-pr: LR M A CM
picoquic vs. neqo-pr: run cancelled after 20 min
quic-go vs. neqo-pr: CM
quic-zig vs. neqo-pr: baseline result missing
quiche vs. neqo-pr: CM
quinn vs. neqo-pr: baseline result missing
rama vs. neqo-pr: baseline result missing
s2n-quic vs. neqo-pr: baseline result missing
tquic vs. neqo-pr: baseline result missing
xquic vs. neqo-pr: baseline result missing
All results

Succeeded Interop Tests

QUIC Interop Runner, client vs. server

neqo-pr as client

neqo-pr as server

Unsupported Interop Tests

QUIC Interop Runner, client vs. server

neqo-pr as client

neqo-pr as server

@github-actions

Copy link
Copy Markdown
Contributor

Client/server transfer results

Performance differences relative to c46d346.

Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.

Client vs. server Mean±σ Min–Max Median±MAD MiB/s±σ ΔMedian
google-neqo-cubic 80.6 ± 0.4 79.6 – 81.6 80.6 ± 0.4 397.1 ± 2.2 💔 +1.0 (+1.2%)

Table above only shows statistically significant changes. See all results below.

All results

Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.

Client vs. server Mean±σ Min–Max Median±MAD MiB/s±σ ΔMedian
google-google 157.6 ± 0.6 156.5 – 159.2 157.5 ± 0.5 203.1 ± 0.8
google-neqo-cubic 80.6 ± 0.4 79.6 – 81.6 80.6 ± 0.4 397.1 ± 2.2 💔 +1.0 (+1.2%)
neqo-google-cubic 249.4 ± 40.3 195.9 – 325.9 245.8 ± 57.6 128.3 ± 20.8 -4.1 (-1.6%)
neqo-neqo-cubic 24.0 ± 0.2 23.6 – 24.4 23.9 ± 0.2 1335.8 ± 9.9 -0.1 (-0.3%)
neqo-neqo-cubic-nopacing 23.7 ± 0.1 23.5 – 24.1 23.7 ± 0.1 1348.7 ± 5.9 +0.1 (+0.2%)
neqo-neqo-newreno 23.8 ± 0.2 23.3 – 24.2 23.7 ± 0.2 1345.0 ± 9.2 -0.1 (-0.4%)
neqo-neqo-newreno-nopacing 23.4 ± 0.1 23.1 – 23.8 23.4 ± 0.1 1368.6 ± 8.7 +0.0 (+0.1%)
neqo-quiche-cubic 35.1 ± 0.3 34.5 – 36.2 35.0 ± 0.3 912.7 ± 8.0 +0.1 (+0.3%)
neqo-s2n-cubic 45.5 ± 0.3 45.0 – 46.2 45.5 ± 0.2 702.9 ± 3.9 +0.0 (+0.1%)
quiche-neqo-cubic 36.4 ± 0.5 35.2 – 37.9 36.4 ± 0.4 877.9 ± 12.2 -0.0 (-0.0%)
quiche-quiche 42.7 ± 0.3 42.1 – 43.6 42.7 ± 0.3 749.8 ± 5.1
s2n-neqo-cubic 128.8 ± 0.6 127.6 – 130.4 128.7 ± 0.7 248.5 ± 1.2 +0.6 (+0.5%)
s2n-s2n ⚠️ 173.2 ± 20.8 147.5 – 269.8 171.3 ± 1.3 184.8 ± 22.2

Download data for profiler.firefox.com or download performance comparison data.

@codspeed

codspeed Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will regress 3 benchmarks

⚡ 10 improved benchmarks
❌ 3 regressed benchmarks
✅ 88 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Walltime walltime/pacing-true/varying-seeds 3.8 ms 4 ms -5.35%
❌ Walltime walltime/pacing-false/varying-seeds 3.3 ms 3.4 ms -2.23%
❌ Walltime 1-conn/1-100mb-resp (aka. Download) 59.1 ms 60.3 ms -2.01%
⚡ Walltime walltime/1-streams/each-1000-bytes 161.7 µs 33.2 µs ×4.9
⚡ Memory simulated/1-streams/each-1000-bytes 24.5 KB 6.9 KB ×3.6
⚡ CPU Simulation simulated/1-streams/each-1000-bytes 2,086.6 µs 772.4 µs ×2.7
⚡ Memory simulated/10-streams/each-1048576-bytes 10.9 MB 10.2 MB +7.16%
⚡ Walltime walltime/1000-streams/each-1-bytes 4.8 ms 4.5 ms +5.72%
⚡ Walltime walltime/pacing-false/same-seed 3.4 ms 3.3 ms +4.73%
⚡ Walltime walltime/pacing-true/same-seed 4 ms 3.9 ms +2.89%
⚡ CPU Simulation simulated/10-streams/each-1048576-bytes 528.8 ms 514.4 ms +2.79%
⚡ CPU Simulation simulated/1000-streams/each-1-bytes 63 ms 61.4 ms +2.66%
⚡ Walltime walltime/10-streams/each-1048576-bytes 36.2 ms 35.3 ms +2.54%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing bench-streams-ticket-setup (f1b2a3d) with main (c46d346)

Open in CodSpeed

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark results

No significant performance differences relative to c46d346.

All results
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500
       time:   [61.873 ms 61.929 ms 61.980 ms]
       thrpt:  [1.5756 GiB/s 1.5769 GiB/s 1.5783 GiB/s]
Found 7 outliers among 100 measurements (7.00%)
4 (4.00%) low severe
2 (2.00%) low mild
1 (1.00%) high severe
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500
       time:   [61.590 ms 61.642 ms 61.700 ms]
       thrpt:  [1.5828 GiB/s 1.5843 GiB/s 1.5856 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500
       time:   [3.8000 ms 3.8006 ms 3.8011 ms]
       thrpt:  [263.08   B/s 263.12   B/s 263.16   B/s]
Found 8 outliers among 100 measurements (8.00%)
5 (5.00%) low mild
3 (3.00%) high mild
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500
       time:   [88.192 ms 88.349 ms 88.503 ms]
       thrpt:  [112.99 Kelem/s 113.19 Kelem/s 113.39 Kelem/s]
streams-flow-controlled/walltime/1-streams/each-4194304-bytes
       time:   [12.872 ms 12.876 ms 12.881 ms]
       thrpt:  [310.54 MiB/s 310.64 MiB/s 310.75 MiB/s]
streams-flow-controlled/walltime/10-streams/each-1048576-bytes
       time:   [34.664 ms 34.673 ms 34.683 ms]
       thrpt:  [288.33 MiB/s 288.41 MiB/s 288.49 MiB/s]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) low mild
2 (2.00%) high mild
streams/walltime/1-streams/each-1000-bytes
       time:   [32.579 µs 32.758 µs 32.985 µs]
       thrpt:  [28.913 MiB/s 29.113 MiB/s 29.273 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
streams/walltime/1000-streams/each-1-bytes
       time:   [4.4969 ms 4.5004 ms 4.5040 ms]
       thrpt:  [216.82 KiB/s 217.00 KiB/s 217.16 KiB/s]
streams/walltime/1000-streams/each-1000-bytes
       time:   [14.993 ms 15.005 ms 15.017 ms]
       thrpt:  [63.507 MiB/s 63.558 MiB/s 63.608 MiB/s]
transfer/walltime/pacing-false/same-seed
       time:   [3.2708 ms 3.2727 ms 3.2750 ms]
       thrpt:  [1.1928 GiB/s 1.1936 GiB/s 1.1943 GiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
transfer/walltime/pacing-false/varying-seeds
       time:   [3.3363 ms 3.3383 ms 3.3406 ms]
       thrpt:  [1.1693 GiB/s 1.1701 GiB/s 1.1708 GiB/s]
transfer/walltime/pacing-true/same-seed
       time:   [3.7913 ms 3.7981 ms 3.8062 ms]
       thrpt:  [1.0263 GiB/s 1.0285 GiB/s 1.0303 GiB/s]
Found 19 outliers among 100 measurements (19.00%)
19 (19.00%) low mild
transfer/walltime/pacing-true/varying-seeds
       time:   [3.9708 ms 3.9724 ms 3.9744 ms]
       thrpt:  [1006.4 MiB/s 1006.9 MiB/s 1007.3 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild

Instructions per cycle

Criterion reported no significant timing changes.

All benchmarks
Benchmark IPC before IPC after ΔIPC
streams/walltime/1-streams/each-1000-bytes 2.58 2.48 -3.8%
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.86 2.96 +3.5%
transfer/walltime/pacing-false/same-seed 2.86 2.83 -0.8%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 3.12 3.09 -0.8%
streams/walltime/1000-streams/each-1000-bytes 2.95 2.96 +0.5%
transfer/walltime/pacing-true/same-seed 2.88 2.89 +0.4%
transfer/walltime/pacing-false/varying-seeds 2.88 2.88 -0.2%
streams/walltime/1000-streams/each-1-bytes 3.27 3.26 -0.2%
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 3.10 3.10 -0.1%
transfer/walltime/pacing-true/varying-seeds 2.87 2.87 +0.1%
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 3.08 3.09 +0.1%
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 3.20 3.21 +0.0%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 2.25 2.25 -0.0%
Profiles for profiler.firefox.com (64)

Download data for profiler.firefox.com or download performance comparison data.

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