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(transport): Remove module_name_repetitions #2311

Merged
merged 8 commits into from
Jan 8, 2025

Conversation

mansf-osk
Copy link
Collaborator

@mansf-osk mansf-osk commented Jan 7, 2025

This pull-request does two things:

  1. It removes module_name_repetitions in neqo-transport/src/ecn.rs
  2. It prepares the rest of the neqo-transport crate for refactoring by removing the crate-wide
    #![allow(clippy::module_name_repetitions)] and adding them on a module-level where necessary

One thing I'd like some feedback on is that because we are explicitly only importing the things we need from a module (e.g. use ecn::Info;) it's not always as clear where things come from as it was described in #2284 (comment). See for example in neqo-transport/src/path.rs line 203:

        let baseline = self.primary().map_or_else(
//            || EcnInfo::default().baseline(), <-- before refactor
            || Info::default().baseline(), // <-- after refactor
            |p| p.borrow().ecn_info.baseline(),
        );

Should we rather import like use ecn; or is it fine to leave like this?

Related: #2284

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 95.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 93.34%. Comparing base (b17233c) to head (c262c93).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
neqo-transport/src/frame.rs 75.00% 0 Missing and 1 partial ⚠️
neqo-transport/src/path.rs 83.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2311   +/-   ##
=======================================
  Coverage   93.34%   93.34%           
=======================================
  Files         114      114           
  Lines       36906    36908    +2     
  Branches    36906    36908    +2     
=======================================
+ Hits        34449    34451    +2     
  Misses       1675     1675           
  Partials      782      782           

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

@larseggert
Copy link
Collaborator

Should we rather import like use ecn; or is it fine to leave like this?

I would suggest to do use ecn; so we end up with ecn::Info::default() etc.

Copy link
Collaborator

@larseggert larseggert left a comment

Choose a reason for hiding this comment

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

Other than missing ecn:: in a few places outside of neqo-transport/src/ecn.rs (and its tests) LGTM.

neqo-transport/src/connection/mod.rs Outdated Show resolved Hide resolved
neqo-transport/src/frame.rs Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jan 7, 2025

Failed Interop Tests

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

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

neqo-transport/src/connection/tests/ecn.rs Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jan 8, 2025

Benchmark results

Performance differences relative to b17233c.

decode 4096 bytes, mask ff: No change in performance detected.
       time:   [11.176 µs 11.202 µs 11.234 µs]
       change: [-0.7199% -0.2629% +0.1777%] (p = 0.26 > 0.05)

Found 12 outliers among 100 measurements (12.00%)
3 (3.00%) low mild
9 (9.00%) high severe

decode 1048576 bytes, mask ff: No change in performance detected.
       time:   [2.8902 ms 2.9011 ms 2.9127 ms]
       change: [-0.2484% +0.2491% +0.7782%] (p = 0.34 > 0.05)

Found 11 outliers among 100 measurements (11.00%)
11 (11.00%) high severe

decode 4096 bytes, mask 7f: No change in performance detected.
       time:   [19.532 µs 19.584 µs 19.646 µs]
       change: [-0.2538% +0.0827% +0.4472%] (p = 0.66 > 0.05)

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

decode 1048576 bytes, mask 7f: No change in performance detected.
       time:   [5.0664 ms 5.0776 ms 5.0903 ms]
       change: [-0.4406% -0.0888% +0.2504%] (p = 0.61 > 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.5290 µs 5.5439 µs 5.5649 µs]
       change: [-0.5366% +0.0581% +0.7210%] (p = 0.86 > 0.05)

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

decode 1048576 bytes, mask 3f: No change in performance detected.
       time:   [1.4151 ms 1.4207 ms 1.4277 ms]
       change: [-0.3941% +0.1903% +0.8659%] (p = 0.54 > 0.05)

Found 11 outliers among 100 measurements (11.00%)
3 (3.00%) high mild
8 (8.00%) high severe

coalesce_acked_from_zero 1+1 entries: No change in performance detected.
       time:   [98.242 ns 98.558 ns 98.882 ns]
       change: [-0.8203% -0.3979% -0.0095%] (p = 0.06 > 0.05)

Found 7 outliers among 100 measurements (7.00%)
1 (1.00%) high mild
6 (6.00%) high severe

coalesce_acked_from_zero 3+1 entries: No change in performance detected.
       time:   [116.30 ns 116.59 ns 116.91 ns]
       change: [-1.0380% -0.4662% +0.0063%] (p = 0.08 > 0.05)

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

coalesce_acked_from_zero 10+1 entries: No change in performance detected.
       time:   [116.24 ns 116.77 ns 117.38 ns]
       change: [-1.4518% -0.4643% +0.3273%] (p = 0.35 > 0.05)

Found 17 outliers among 100 measurements (17.00%)
5 (5.00%) low severe
3 (3.00%) low mild
9 (9.00%) high severe

coalesce_acked_from_zero 1000+1 entries: No change in performance detected.
       time:   [97.189 ns 97.396 ns 97.631 ns]
       change: [-1.6000% -0.5427% +0.4168%] (p = 0.33 > 0.05)

Found 11 outliers among 100 measurements (11.00%)
6 (6.00%) high mild
5 (5.00%) high severe

RxStreamOrderer::inbound_frame(): No change in performance detected.
       time:   [111.22 ms 111.28 ms 111.35 ms]
       change: [-0.0392% +0.0398% +0.1184%] (p = 0.33 > 0.05)

Found 22 outliers among 100 measurements (22.00%)
11 (11.00%) low mild
11 (11.00%) high mild

SentPackets::take_ranges: No change in performance detected.
       time:   [5.4973 µs 5.6744 µs 5.8651 µs]
       change: [-0.8948% +1.7890% +4.5559%] (p = 0.19 > 0.05)

Found 7 outliers among 100 measurements (7.00%)
6 (6.00%) high mild
1 (1.00%) high severe

transfer/pacing-false/varying-seeds: Change within noise threshold.
       time:   [42.645 ms 42.719 ms 42.794 ms]
       change: [-2.5753% -2.3268% -2.0772%] (p = 0.00 < 0.05)

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

transfer/pacing-true/varying-seeds: Change within noise threshold.
       time:   [43.085 ms 43.163 ms 43.239 ms]
       change: [-1.9060% -1.6568% -1.4175%] (p = 0.00 < 0.05)

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

transfer/pacing-false/same-seed: Change within noise threshold.
       time:   [42.568 ms 42.629 ms 42.690 ms]
       change: [-1.9172% -1.6960% -1.4687%] (p = 0.00 < 0.05)
transfer/pacing-true/same-seed: Change within noise threshold.
       time:   [43.187 ms 43.261 ms 43.335 ms]
       change: [-1.3239% -1.0901% -0.8666%] (p = 0.00 < 0.05)

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

1-conn/1-100mb-resp/mtu-1504 (aka. Download)/client: Change within noise threshold.
       time:   [896.63 ms 906.49 ms 916.67 ms]
       thrpt:  [109.09 MiB/s 110.32 MiB/s 111.53 MiB/s]
change:
       time:   [+0.2103% +1.7004% +3.2273%] (p = 0.03 < 0.05)
       thrpt:  [-3.1264% -1.6720% -0.2099%]
1-conn/10_000-parallel-1b-resp/mtu-1504 (aka. RPS)/client: Change within noise threshold.
       time:   [300.57 ms 302.61 ms 304.65 ms]
       thrpt:  [32.825 Kelem/s 33.045 Kelem/s 33.270 Kelem/s]
change:
       time:   [+0.0684% +1.0415% +2.0540%] (p = 0.04 < 0.05)
       thrpt:  [-2.0126% -1.0307% -0.0683%]
1-conn/1-1b-resp/mtu-1504 (aka. HPS)/client: No change in performance detected.
       time:   [34.261 ms 34.435 ms 34.625 ms]
       thrpt:  [28.881  elem/s 29.040  elem/s 29.188  elem/s]
change:
       time:   [-1.0502% -0.1923% +0.6160%] (p = 0.66 > 0.05)
       thrpt:  [-0.6123% +0.1927% +1.0613%]

Found 9 outliers among 100 measurements (9.00%)
3 (3.00%) low mild
2 (2.00%) high mild
4 (4.00%) high severe

1-conn/1-100mb-resp/mtu-1504 (aka. Upload)/client: No change in performance detected.
       time:   [1.6473 s 1.6661 s 1.6852 s]
       thrpt:  [59.341 MiB/s 60.020 MiB/s 60.705 MiB/s]
change:
       time:   [-0.2615% +1.2702% +2.8625%] (p = 0.11 > 0.05)
       thrpt:  [-2.7828% -1.2543% +0.2621%]

Client/server transfer results

Transfer of 33554432 bytes over loopback.

Client Server CC Pacing MTU Mean [ms] Min [ms] Max [ms]
gquiche gquiche 1504 572.4 ± 90.6 497.9 757.1
neqo gquiche reno on 1504 806.5 ± 81.3 754.4 960.4
neqo gquiche reno 1504 824.1 ± 77.9 759.3 965.7
neqo gquiche cubic on 1504 807.5 ± 86.5 744.7 1010.3
neqo gquiche cubic 1504 838.4 ± 101.6 751.2 1004.7
msquic msquic 1504 161.5 ± 95.1 91.7 381.4
neqo msquic reno on 1504 244.4 ± 61.6 210.0 385.6
neqo msquic reno 1504 281.8 ± 84.5 211.8 401.7
neqo msquic cubic on 1504 252.1 ± 69.9 212.3 411.2
neqo msquic cubic 1504 240.5 ± 56.8 203.2 396.4
gquiche neqo reno on 1504 688.1 ± 90.6 548.2 818.2
gquiche neqo reno 1504 705.8 ± 116.4 560.4 924.1
gquiche neqo cubic on 1504 743.5 ± 134.6 565.4 1044.5
gquiche neqo cubic 1504 721.3 ± 130.9 580.3 1030.9
msquic neqo reno on 1504 482.6 ± 8.1 467.8 492.3
msquic neqo reno 1504 514.9 ± 95.4 461.1 696.4
msquic neqo cubic on 1504 503.4 ± 36.0 477.4 602.5
msquic neqo cubic 1504 491.0 ± 36.6 464.7 589.7
neqo neqo reno on 1504 513.7 ± 28.9 464.5 564.0
neqo neqo reno 1504 548.0 ± 80.2 446.7 677.5
neqo neqo cubic on 1504 514.1 ± 41.5 457.5 573.8
neqo neqo cubic 1504 549.9 ± 60.0 475.9 704.6

⬇️ Download logs

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.

Thank you!

@mxinden mxinden added this pull request to the merge queue Jan 8, 2025
Merged via the queue into mozilla:main with commit 808b018 Jan 8, 2025
62 of 63 checks passed
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.

3 participants