Skip to content

bench: drop transfer variants whose seed has no effect - #4408

Open
larseggert wants to merge 1 commit into
mainfrom
bench-transfer-drop-varying-seeds
Open

larseggert wants to merge 1 commit into
mainfrom
bench-transfer-drop-varying-seeds

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

No node in this topology draws from the simulator's RNG, so the seed does not change the transfer.

@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 (10332b4).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4408   +/-   ##
=======================================
  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.13% <ø> (+10.34%) ⬆️
linux 96.77% <ø> (-0.01%) ⬇️
macos 94.50% <ø> (-0.01%) ⬇️
windows 94.56% <ø> (+<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 were identified for the QUIC benchmark simplification.

No open issues 🎉

What changed in this PR

Simplifies the QUIC transfer benchmarks by removing seed variants that do not affect this simulator topology.

Changes:

  • Removes the varying-seed cases and SIMULATION_SEED override.
  • Uses a fixed seed while retaining both pacing modes and existing same-seed benchmark names.
File Description
neqo-transport/​benches/​transfer_common.rs Simplifies simulator setup and removes redundant seed-based benchmark variants.

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

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.1 ± 0.3 79.4 – 81.0 80.1 ± 0.3 399.6 ± 1.7 💔 +0.8 (+1.1%)
neqo-neqo-cubic-nopacing 23.6 ± 0.1 23.3 – 24.1 23.6 ± 0.1 1354.9 ± 6.7 💚 -0.4 (-1.7%)

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 156.1 ± 0.5 154.9 – 157.4 156.0 ± 0.5 205.0 ± 0.7
google-neqo-cubic 80.1 ± 0.3 79.4 – 81.0 80.1 ± 0.3 399.6 ± 1.7 💔 +0.8 (+1.1%)
neqo-google-cubic 255.8 ± 38.3 196.8 – 328.8 259.9 ± 51.2 125.1 ± 18.7 +14.2 (+5.8%)
neqo-neqo-cubic 24.0 ± 0.2 23.7 – 24.3 23.9 ± 0.2 1335.3 ± 8.4 -0.1 (-0.6%)
neqo-neqo-cubic-nopacing 23.6 ± 0.1 23.3 – 24.1 23.6 ± 0.1 1354.9 ± 6.7 💚 -0.4 (-1.7%)
neqo-neqo-newreno 24.2 ± 0.2 23.8 – 24.8 24.1 ± 0.2 1324.3 ± 9.7 +0.2 (+1.0%)
neqo-neqo-newreno-nopacing 23.3 ± 0.1 23.0 – 23.7 23.3 ± 0.2 1372.0 ± 8.6 -0.1 (-0.3%)
neqo-quiche-cubic 35.4 ± 0.3 35.0 – 36.3 35.3 ± 0.3 903.5 ± 7.2 -0.1 (-0.1%)
neqo-s2n-cubic 45.8 ± 0.2 45.4 – 46.3 45.7 ± 0.2 699.4 ± 3.1 -0.0 (-0.1%)
quiche-neqo-cubic 36.5 ± 0.5 35.1 – 37.6 36.4 ± 0.4 877.8 ± 12.1 -0.1 (-0.3%)
quiche-quiche 43.1 ± 0.3 42.4 – 43.8 43.1 ± 0.4 742.6 ± 5.5
s2n-neqo-cubic 126.7 ± 0.6 124.9 – 128.4 126.6 ± 0.4 252.7 ± 1.2 +0.1 (+0.1%)
s2n-s2n ⚠️ 176.8 ± 25.0 147.5 – 270.7 171.4 ± 1.4 181.0 ± 25.6

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 c46d346.

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: baseline result missing
neqo-pr vs. linuxquic: ⚠️CM
neqo-pr vs. lsquic: L1 C1
neqo-pr vs. msquic: run cancelled after 20 min
neqo-pr vs. mvfst: baseline result missing
neqo-pr vs. neqo: run cancelled after 20 min
neqo-pr vs. nginx: BP BA
neqo-pr vs. ngtcp2: run cancelled after 20 min
neqo-pr vs. picoquic: A BP ⚠️BA
neqo-pr vs. quic-go: baseline result missing
neqo-pr vs. quiche: run cancelled after 20 min
neqo-pr vs. quinn: run cancelled after 20 min
neqo-pr vs. rama: run cancelled after 20 min
neqo-pr vs. s2n-quic: run cancelled after 20 min
neqo-pr vs. tquic: S BP BA
neqo-pr vs. xquic: Z A L1 🚀C1
aioquic vs. neqo-pr: A
chrome vs. neqo-pr: baseline result missing
go-x-net vs. neqo-pr: CM
kwik vs. neqo-pr: CM
linuxquic vs. neqo-pr: ⚠️C1
lsquic vs. neqo-pr: run cancelled after 20 min
msquic vs. neqo-pr: 🚀C1 CM
mvfst vs. neqo-pr: run cancelled after 20 min
neqo vs. neqo-pr: A
ngtcp2 vs. neqo-pr: run cancelled after 20 min
openssl vs. neqo-pr: run cancelled after 20 min
quic-go vs. neqo-pr: run cancelled after 20 min
quic-zig vs. neqo-pr: CM
quiche vs. neqo-pr: ⚠️C1 CM
quinn vs. neqo-pr: ⚠️L1 C1 V2 CM
rama vs. neqo-pr: run cancelled after 20 min
s2n-quic vs. neqo-pr: run cancelled after 20 min
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

@codspeed

codspeed Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 1.92%

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

⚡ 1 improved benchmark
❌ 2 regressed benchmarks
✅ 92 untouched benchmarks
⏩ 6 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Walltime quiche-neqo 47 ms 49.9 ms -5.83%
❌ Walltime walltime/pacing-false/same-seed 3.4 ms 3.5 ms -3.71%
⚡ CPU Simulation simulated/pacing-false/same-seed 82.4 ms 79.2 ms +4.06%

Tip

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


Comparing bench-transfer-drop-varying-seeds (10332b4) with main (c46d346)

Open in CodSpeed

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@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:   [62.013 ms 62.063 ms 62.116 ms]
       thrpt:  [1.5722 GiB/s 1.5735 GiB/s 1.5748 GiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500
       time:   [61.599 ms 61.644 ms 61.691 ms]
       thrpt:  [1.5830 GiB/s 1.5842 GiB/s 1.5854 GiB/s]
Found 5 outliers among 100 measurements (5.00%)
5 (5.00%) high mild
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500
       time:   [3.8054 ms 3.8064 ms 3.8073 ms]
       thrpt:  [262.66   B/s 262.72   B/s 262.79   B/s]
Found 5 outliers among 100 measurements (5.00%)
4 (4.00%) high mild
1 (1.00%) high severe
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500
       time:   [87.676 ms 87.856 ms 88.035 ms]
       thrpt:  [113.59 Kelem/s 113.82 Kelem/s 114.06 Kelem/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
streams-flow-controlled/walltime/1-streams/each-4194304-bytes
       time:   [13.082 ms 13.090 ms 13.097 ms]
       thrpt:  [305.42 MiB/s 305.58 MiB/s 305.76 MiB/s]
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) low severe
1 (1.00%) low mild
streams-flow-controlled/walltime/10-streams/each-1048576-bytes
       time:   [35.815 ms 35.877 ms 35.938 ms]
       thrpt:  [278.26 MiB/s 278.73 MiB/s 279.22 MiB/s]
streams/walltime/1-streams/each-1000-bytes
       time:   [162.22 µs 162.90 µs 163.76 µs]
       thrpt:  [5.8237 MiB/s 5.8544 MiB/s 5.8791 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
streams/walltime/1000-streams/each-1-bytes
       time:   [4.7456 ms 4.7485 ms 4.7514 ms]
       thrpt:  [205.53 KiB/s 205.66 KiB/s 205.78 KiB/s]
streams/walltime/1000-streams/each-1000-bytes
       time:   [15.420 ms 15.429 ms 15.439 ms]
       thrpt:  [61.772 MiB/s 61.809 MiB/s 61.845 MiB/s]
Found 7 outliers among 100 measurements (7.00%)
3 (3.00%) low mild
3 (3.00%) high mild
1 (1.00%) high severe
transfer/walltime/pacing-false/same-seed
       time:   [3.3825 ms 3.3838 ms 3.3853 ms]
       thrpt:  [1.1539 GiB/s 1.1544 GiB/s 1.1548 GiB/s]
transfer/walltime/pacing-true/same-seed
       time:   [3.8344 ms 3.8368 ms 3.8397 ms]
       thrpt:  [1.0173 GiB/s 1.0181 GiB/s 1.0187 GiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild

Instructions per cycle

Criterion reported no significant timing changes.

All benchmarks
Benchmark IPC before IPC after ΔIPC
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 3.09 3.06 -1.0%
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.96 2.98 +0.9%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 3.11 3.14 +0.9%
transfer/walltime/pacing-false/same-seed 2.87 2.89 +0.7%
streams/walltime/1000-streams/each-1000-bytes 2.94 2.92 -0.6%
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 3.22 3.20 -0.5%
transfer/walltime/pacing-true/same-seed 2.87 2.88 +0.4%
streams/walltime/1-streams/each-1000-bytes 2.59 2.58 -0.3%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 2.25 2.24 -0.3%
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 3.10 3.11 +0.2%
streams/walltime/1000-streams/each-1-bytes 3.28 3.28 +0.0%
Profiles for profiler.firefox.com (60)

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