Skip to content

refactor(transport): Scale sent ACK Delay by the local ack_delay_exponent - #4392

Closed
larseggert wants to merge 1 commit into
mozilla:mainfrom
larseggert:refactor-ack-delay-exponent
Closed

larseggert wants to merge 1 commit into
mozilla:mainfrom
larseggert:refactor-ack-delay-exponent

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

The ACK Delay field is encoded with our own transport parameter instead of assuming the default.

…nent

The ACK Delay field is encoded with our own transport parameter instead of assuming the default.
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.70130% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 96.62%. Comparing base (e166635) to head (26cda15).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4392      +/-   ##
==========================================
- Coverage   96.73%   96.62%   -0.12%     
==========================================
  Files         113      118       +5     
  Lines       43491    43895     +404     
  Branches    43491    43895     +404     
==========================================
+ Hits        42073    42413     +340     
- Misses       1406     1461      +55     
- Partials       12       21       +9     
Flag Coverage Δ
freebsd 94.13% <98.70%> (-0.10%) ⬇️
linux 96.75% <98.70%> (-0.02%) ⬇️
macos 94.51% <98.70%> (-0.01%) ⬇️
windows 94.58% <98.70%> (+0.01%) ⬆️

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

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

@codspeed

codspeed Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 0.26%

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚡ 6 improved benchmarks
❌ 4 regressed benchmarks
✅ 91 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Walltime walltime/pacing-false/same-seed 3.4 ms 3.7 ms -7.97%
❌ Walltime walltime/pacing-true/same-seed 4 ms 4.2 ms -5.11%
❌ Walltime walltime/pacing-true/varying-seeds 4 ms 4.1 ms -3.41%
❌ Walltime quiche-neqo 46.4 ms 47.4 ms -2.08%
⚡ Walltime 1-conn/1-100mb-resp (aka. Download) 61.7 ms 59.6 ms +3.62%
⚡ Walltime neqo-neqo-cubic 26.9 ms 26.1 ms +3.1%
⚡ Walltime 1-conn/1-100mb-req (aka. Upload) 62.1 ms 60.3 ms +3.02%
⚡ Walltime neqo-quiche 43.1 ms 42 ms +2.53%
⚡ Walltime walltime/1-streams/each-4194304-bytes 13.4 ms 13.1 ms +2.34%
⚡ Walltime 1-conn/10_000-parallel-1b-resp (aka. RPS) 87 ms 85.1 ms +2.18%

Tip

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


Comparing larseggert:refactor-ack-delay-exponent (26cda15) with main (e166635)

Open in CodSpeed

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark results

No significant performance differences relative to e166635.

All results
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500
       time:   [61.497 ms 61.542 ms 61.587 ms]
       thrpt:  [1.5857 GiB/s 1.5868 GiB/s 1.5880 GiB/s]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) low mild
1 (1.00%) high mild
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500
       time:   [61.685 ms 61.732 ms 61.781 ms]
       thrpt:  [1.5807 GiB/s 1.5819 GiB/s 1.5831 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500
       time:   [3.8005 ms 3.8017 ms 3.8029 ms]
       thrpt:  [262.96   B/s 263.04   B/s 263.12   B/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500
       time:   [87.227 ms 87.394 ms 87.559 ms]
       thrpt:  [114.21 Kelem/s 114.42 Kelem/s 114.64 Kelem/s]
streams-flow-controlled/walltime/1-streams/each-4194304-bytes
       time:   [12.957 ms 12.962 ms 12.966 ms]
       thrpt:  [308.50 MiB/s 308.60 MiB/s 308.70 MiB/s]
streams-flow-controlled/walltime/10-streams/each-1048576-bytes
       time:   [35.619 ms 35.656 ms 35.694 ms]
       thrpt:  [280.16 MiB/s 280.46 MiB/s 280.75 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
streams/walltime/1-streams/each-1000-bytes
       time:   [160.84 µs 161.50 µs 162.35 µs]
       thrpt:  [5.8743 MiB/s 5.9050 MiB/s 5.9294 MiB/s]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild
streams/walltime/1000-streams/each-1-bytes
       time:   [4.7647 ms 4.7666 ms 4.7684 ms]
       thrpt:  [204.80 KiB/s 204.88 KiB/s 204.96 KiB/s]
Found 4 outliers among 100 measurements (4.00%)
3 (3.00%) low mild
1 (1.00%) high mild
streams/walltime/1000-streams/each-1000-bytes
       time:   [14.985 ms 14.995 ms 15.004 ms]
       thrpt:  [63.561 MiB/s 63.601 MiB/s 63.641 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
transfer/walltime/pacing-false/same-seed
       time:   [3.5727 ms 3.5742 ms 3.5758 ms]
       thrpt:  [1.0924 GiB/s 1.0929 GiB/s 1.0933 GiB/s]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) low severe
1 (1.00%) low mild
transfer/walltime/pacing-false/varying-seeds
       time:   [3.4875 ms 3.4886 ms 3.4900 ms]
       thrpt:  [1.1193 GiB/s 1.1197 GiB/s 1.1201 GiB/s]
transfer/walltime/pacing-true/same-seed
       time:   [3.8742 ms 3.8762 ms 3.8785 ms]
       thrpt:  [1.0072 GiB/s 1.0078 GiB/s 1.0083 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
transfer/walltime/pacing-true/varying-seeds
       time:   [4.0056 ms 4.0087 ms 4.0123 ms]
       thrpt:  [996.93 MiB/s 997.84 MiB/s 998.60 MiB/s]

Instructions per cycle

Criterion reported no significant timing changes.

All benchmarks
Benchmark IPC before IPC after ΔIPC
streams/walltime/1000-streams/each-1000-bytes 2.93 3.00 +2.3%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 3.15 3.11 -1.6%
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 3.10 3.06 -1.4%
transfer/walltime/pacing-true/varying-seeds 2.85 2.88 +1.0%
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 3.09 3.11 +0.8%
transfer/walltime/pacing-false/same-seed 2.87 2.85 -0.7%
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 3.22 3.24 +0.6%
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.98 2.99 +0.5%
streams/walltime/1000-streams/each-1-bytes 3.27 3.28 +0.3%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 2.25 2.25 +0.2%
streams/walltime/1-streams/each-1000-bytes 2.55 2.55 -0.1%
transfer/walltime/pacing-true/same-seed 2.86 2.85 -0.1%
transfer/walltime/pacing-false/varying-seeds 2.87 2.87 +0.1%
Profiles for profiler.firefox.com (64)

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

@github-actions

Copy link
Copy Markdown
Contributor

Failed Interop Tests

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

neqo-pr as clientneqo-pr as server
neqo-pr vs. go-x-net: BP BA
neqo-pr vs. haproxy: BP BA
neqo-pr vs. kwik: 🚀M Z ⚠️DC 3 L1 C1 🚀BA
neqo-pr vs. linuxquic: CM
neqo-pr vs. lsquic: L1 C1
neqo-pr vs. msquic: A L1 C1
neqo-pr vs. mvfst: H DC LR C20 M S R Z 3 B U E A L1 L2 C1 C2 6 V2 BP BA CM
neqo-pr vs. neqo: A
neqo-pr vs. nginx: BP BA
neqo-pr vs. ngtcp2: Z L1 C1 CM
neqo-pr vs. picoquic: A ⚠️BP BA
neqo-pr vs. quic-go: A
neqo-pr vs. quiche: BP BA
neqo-pr vs. s2n-quic: ⚠️L1 CM
neqo-pr vs. tquic: S BP BA
neqo-pr vs. xquic: Z A C1
go-x-net vs. neqo-pr: run cancelled after 20 min
kwik vs. neqo-pr: CM
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: A
openssl vs. neqo-pr: LR M A CM
quic-go vs. neqo-pr: CM
quic-zig vs. neqo-pr: CM
quiche vs. neqo-pr: CM
quinn vs. neqo-pr: ⚠️L1 V2 CM
s2n-quic vs. neqo-pr: CM
tquic vs. neqo-pr: CM
xquic vs. neqo-pr: M CM
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 e166635.

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.4 ± 0.4 79.3 – 81.4 80.4 ± 0.4 398.2 ± 2.1 💔 +0.9 (+1.1%)
neqo-neqo-newreno 23.7 ± 0.2 23.3 – 24.5 23.7 ± 0.3 1349.9 ± 13.8 💚 -0.3 (-1.1%)
neqo-neqo-newreno-nopacing 23.1 ± 0.2 22.8 – 24.1 23.1 ± 0.1 1382.8 ± 13.6 💚 -0.5 (-2.0%)
quiche-neqo-cubic 36.1 ± 0.5 34.9 – 37.4 36.1 ± 0.4 885.7 ± 11.2 💚 -0.4 (-1.1%)

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 161.6 ± 0.5 160.4 – 162.8 161.6 ± 0.6 198.0 ± 0.6
google-neqo-cubic 80.4 ± 0.4 79.3 – 81.4 80.4 ± 0.4 398.2 ± 2.1 💔 +0.9 (+1.1%)
neqo-google-cubic 242.9 ± 35.9 201.7 – 321.8 241.9 ± 49.4 131.8 ± 19.5 +32.6 (+15.6%)
neqo-neqo-cubic 23.8 ± 0.2 23.4 – 24.3 23.8 ± 0.2 1343.6 ± 11.4 -0.1 (-0.5%)
neqo-neqo-cubic-nopacing 23.1 ± 0.1 22.8 – 23.5 23.1 ± 0.1 1385.8 ± 8.0 -0.2 (-0.9%)
neqo-neqo-newreno 23.7 ± 0.2 23.3 – 24.5 23.7 ± 0.3 1349.9 ± 13.8 💚 -0.3 (-1.1%)
neqo-neqo-newreno-nopacing 23.1 ± 0.2 22.8 – 24.1 23.1 ± 0.1 1382.8 ± 13.6 💚 -0.5 (-2.0%)
neqo-quiche-cubic 35.2 ± 0.4 34.6 – 36.4 35.2 ± 0.4 908.7 ± 9.3 +0.0 (+0.1%)
neqo-s2n-cubic 45.3 ± 0.2 44.9 – 45.9 45.3 ± 0.3 706.1 ± 3.4 -0.1 (-0.3%)
quiche-neqo-cubic 36.1 ± 0.5 34.9 – 37.4 36.1 ± 0.4 885.7 ± 11.2 💚 -0.4 (-1.1%)
quiche-quiche 43.0 ± 0.2 42.5 – 43.8 43.0 ± 0.2 743.5 ± 4.3
s2n-neqo-cubic 126.2 ± 0.5 124.8 – 128.0 126.1 ± 0.3 253.5 ± 1.1 -0.1 (-0.1%)
s2n-s2n ⚠️ 173.2 ± 24.2 145.6 – 286.7 169.3 ± 1.0 184.7 ± 25.8

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

@larseggert larseggert closed this Nov 19, 2026
@larseggert
larseggert deleted the refactor-ack-delay-exponent branch November 19, 2026 22:40
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.

1 participant