Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Enable the unused_trait_names lint #2334

Merged
merged 5 commits into from
Jan 9, 2025

Conversation

larseggert
Copy link
Collaborator

And fix all the warnings it generates.

And fix all the warnings it generates.
Copy link

github-actions bot commented Jan 9, 2025

Failed Interop Tests

QUIC Interop Runner, client vs. server, differences relative to ef9e4dc.

neqo-latest as client

neqo-latest as server

All results

Succeeded Interop Tests

QUIC Interop Runner, client vs. server

neqo-latest as client

neqo-latest as server

Unsupported Interop Tests

QUIC Interop Runner, client vs. server

neqo-latest as client

neqo-latest as server

Copy link
Collaborator

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Wasn't aware this existed. Nice.

@mxinden
Copy link
Collaborator

mxinden commented Jan 9, 2025

@larseggert can you resolve the clippy failure?

  error: importing trait that is only used anonymously
    --> neqo-common/src/fuzz.rs:10:12
     |
  10 |     hash::{Hash, Hasher},
     |            ^^^^ help: use: `Hash as _`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_trait_names
     = note: `-D clippy::unused-trait-names` implied by `-D warnings`
     = help: to override `-D warnings` add `#[allow(clippy::unused_trait_names)]`
  
  error: importing trait that is only used anonymously
    --> neqo-common/src/fuzz.rs:10:18
     |
  10 |     hash::{Hash, Hasher},
     |                  ^^^^^^ help: use: `Hasher as _`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_trait_names

@larseggert larseggert enabled auto-merge January 9, 2025 16:00
@larseggert larseggert added this pull request to the merge queue Jan 9, 2025
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.34%. Comparing base (17c4103) to head (9319c23).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2334   +/-   ##
=======================================
  Coverage   93.34%   93.34%           
=======================================
  Files         114      114           
  Lines       36895    36908   +13     
  Branches    36895    36908   +13     
=======================================
+ Hits        34438    34451   +13     
  Misses       1675     1675           
  Partials      782      782           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jan 9, 2025
@larseggert larseggert enabled auto-merge January 9, 2025 17:53
@larseggert larseggert added this pull request to the merge queue Jan 9, 2025
Copy link

github-actions bot commented Jan 9, 2025

Benchmark results

Performance differences relative to ef9e4dc.

decode 4096 bytes, mask ff: No change in performance detected.
       time:   [11.155 µs 11.187 µs 11.226 µs]
       change: [-0.4707% +0.0707% +0.7138%] (p = 0.83 > 0.05)

Found 16 outliers among 100 measurements (16.00%)
3 (3.00%) low severe
2 (2.00%) low mild
1 (1.00%) high mild
10 (10.00%) high severe

decode 1048576 bytes, mask ff: 💔 Performance has regressed.
       time:   [3.0154 ms 3.0246 ms 3.0355 ms]
       change: [+3.9184% +4.4503% +4.9378%] (p = 0.00 < 0.05)

Found 8 outliers among 100 measurements (8.00%)
8 (8.00%) high severe

decode 4096 bytes, mask 7f: No change in performance detected.
       time:   [19.506 µs 19.547 µs 19.595 µs]
       change: [-0.3559% +0.0144% +0.4845%] (p = 0.95 > 0.05)

Found 18 outliers among 100 measurements (18.00%)
1 (1.00%) low severe
3 (3.00%) low mild
1 (1.00%) high mild
13 (13.00%) high severe

decode 1048576 bytes, mask 7f: 💔 Performance has regressed.
       time:   [5.1596 ms 5.1708 ms 5.1837 ms]
       change: [+1.2501% +1.6508% +2.0126%] (p = 0.00 < 0.05)

Found 13 outliers among 100 measurements (13.00%)
13 (13.00%) high severe

decode 4096 bytes, mask 3f: No change in performance detected.
       time:   [5.5259 µs 5.5398 µs 5.5591 µs]
       change: [-0.8887% -0.1889% +0.4780%] (p = 0.60 > 0.05)

Found 14 outliers among 100 measurements (14.00%)
6 (6.00%) low mild
4 (4.00%) high mild
4 (4.00%) high severe

decode 1048576 bytes, mask 3f: 💔 Performance has regressed.
       time:   [1.7875 ms 1.8002 ms 1.8142 ms]
       change: [+25.787% +26.820% +27.917%] (p = 0.00 < 0.05)
coalesce_acked_from_zero 1+1 entries: No change in performance detected.
       time:   [98.619 ns 98.865 ns 99.122 ns]
       change: [-0.4936% -0.1041% +0.2772%] (p = 0.61 > 0.05)

Found 9 outliers among 100 measurements (9.00%)
1 (1.00%) low mild
8 (8.00%) high severe

coalesce_acked_from_zero 3+1 entries: No change in performance detected.
       time:   [116.75 ns 117.10 ns 117.48 ns]
       change: [-0.2119% +0.1281% +0.4587%] (p = 0.47 > 0.05)

Found 18 outliers among 100 measurements (18.00%)
1 (1.00%) low mild
4 (4.00%) high mild
13 (13.00%) high severe

coalesce_acked_from_zero 10+1 entries: No change in performance detected.
       time:   [116.47 ns 116.99 ns 117.58 ns]
       change: [-0.6390% +0.1402% +0.8084%] (p = 0.72 > 0.05)

Found 18 outliers among 100 measurements (18.00%)
3 (3.00%) low severe
2 (2.00%) low mild
3 (3.00%) high mild
10 (10.00%) high severe

coalesce_acked_from_zero 1000+1 entries: Change within noise threshold.
       time:   [97.547 ns 97.688 ns 97.847 ns]
       change: [+0.0154% +1.0823% +2.2833%] (p = 0.05 < 0.05)

Found 9 outliers among 100 measurements (9.00%)
5 (5.00%) high mild
4 (4.00%) high severe

RxStreamOrderer::inbound_frame(): Change within noise threshold.
       time:   [110.82 ms 110.87 ms 110.93 ms]
       change: [-0.5388% -0.4616% -0.3840%] (p = 0.00 < 0.05)

Found 20 outliers among 100 measurements (20.00%)
8 (8.00%) low severe
1 (1.00%) low mild
6 (6.00%) high mild
5 (5.00%) high severe

SentPackets::take_ranges: No change in performance detected.
       time:   [5.4953 µs 5.6419 µs 5.7882 µs]
       change: [-14.802% +0.6726% +17.997%] (p = 0.94 > 0.05)

Found 4 outliers among 100 measurements (4.00%)
2 (2.00%) high mild
2 (2.00%) high severe

transfer/pacing-false/varying-seeds: 💚 Performance has improved.
       time:   [41.534 ms 41.618 ms 41.705 ms]
       change: [-3.5990% -3.3386% -3.0650%] (p = 0.00 < 0.05)

Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild

transfer/pacing-true/varying-seeds: Change within noise threshold.
       time:   [42.004 ms 42.075 ms 42.147 ms]
       change: [-3.0270% -2.8017% -2.5750%] (p = 0.00 < 0.05)

Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild

transfer/pacing-false/same-seed: 💚 Performance has improved.
       time:   [41.363 ms 41.424 ms 41.486 ms]
       change: [-3.4358% -3.2357% -3.0384%] (p = 0.00 < 0.05)

Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild

transfer/pacing-true/same-seed: 💚 Performance has improved.
       time:   [41.185 ms 41.240 ms 41.295 ms]
       change: [-5.2847% -5.1025% -4.9095%] (p = 0.00 < 0.05)
1-conn/1-100mb-resp/mtu-1504 (aka. Download)/client: Change within noise threshold.
       time:   [892.88 ms 903.51 ms 914.26 ms]
       thrpt:  [109.38 MiB/s 110.68 MiB/s 112.00 MiB/s]
change:
       time:   [+0.1534% +1.7308% +3.3612%] (p = 0.04 < 0.05)
       thrpt:  [-3.2519% -1.7013% -0.1531%]
1-conn/10_000-parallel-1b-resp/mtu-1504 (aka. RPS)/client: No change in performance detected.
       time:   [303.17 ms 305.48 ms 307.85 ms]
       thrpt:  [32.483 Kelem/s 32.736 Kelem/s 32.984 Kelem/s]
change:
       time:   [-0.0293% +0.9437% +1.9760%] (p = 0.07 > 0.05)
       thrpt:  [-1.9377% -0.9349% +0.0294%]

Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild

1-conn/1-1b-resp/mtu-1504 (aka. HPS)/client: Change within noise threshold.
       time:   [34.101 ms 34.254 ms 34.424 ms]
       thrpt:  [29.050  elem/s 29.194  elem/s 29.325  elem/s]
change:
       time:   [-2.1805% -1.3343% -0.4680%] (p = 0.00 < 0.05)
       thrpt:  [+0.4702% +1.3523% +2.2291%]

Found 7 outliers among 100 measurements (7.00%)
4 (4.00%) low mild
3 (3.00%) high severe

1-conn/1-100mb-resp/mtu-1504 (aka. Upload)/client: 💚 Performance has improved.
       time:   [1.5990 s 1.6137 s 1.6286 s]
       thrpt:  [61.404 MiB/s 61.969 MiB/s 62.538 MiB/s]
change:
       time:   [-5.9267% -4.7729% -3.5056%] (p = 0.00 < 0.05)
       thrpt:  [+3.6330% +5.0121% +6.3001%]

Client/server transfer results

Transfer of 33554432 bytes over loopback.

Client Server CC Pacing MTU Mean [ms] Min [ms] Max [ms]
gquiche gquiche 1504 560.2 ± 69.1 502.1 682.6
neqo gquiche reno on 1504 780.1 ± 75.3 733.9 985.7
neqo gquiche reno 1504 767.4 ± 10.8 749.8 779.2
neqo gquiche cubic on 1504 771.9 ± 57.9 719.4 932.0
neqo gquiche cubic 1504 770.7 ± 60.9 729.7 934.2
msquic msquic 1504 180.9 ± 98.4 97.4 360.3
neqo msquic reno on 1504 243.2 ± 60.3 203.7 426.7
neqo msquic reno 1504 249.9 ± 77.9 203.8 463.6
neqo msquic cubic on 1504 270.6 ± 87.6 213.2 426.6
neqo msquic cubic 1504 241.8 ± 54.1 205.9 411.0
gquiche neqo reno on 1504 702.5 ± 80.4 567.0 824.6
gquiche neqo reno 1504 753.0 ± 126.4 578.2 1030.4
gquiche neqo cubic on 1504 671.7 ± 81.7 564.9 802.0
gquiche neqo cubic 1504 703.6 ± 75.9 539.9 785.3
msquic neqo reno on 1504 483.5 ± 37.8 458.8 579.9
msquic neqo reno 1504 540.3 ± 117.5 451.8 818.2
msquic neqo cubic on 1504 504.2 ± 49.0 471.3 641.5
msquic neqo cubic 1504 509.2 ± 59.6 477.7 676.5
neqo neqo reno on 1504 527.6 ± 68.4 470.0 653.7
neqo neqo reno 1504 514.7 ± 26.1 483.1 562.2
neqo neqo cubic on 1504 591.2 ± 125.3 479.2 810.9
neqo neqo cubic 1504 540.0 ± 26.7 490.7 579.0

⬇️ Download logs

Merged via the queue into mozilla:main with commit 6013bde Jan 9, 2025
62 of 63 checks passed
@larseggert larseggert deleted the chore-unused_trait_names branch January 9, 2025 21:24
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