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

fix: Simplify neqo_common::log and enforce clippy format checks #2291

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

larseggert
Copy link
Collaborator

@larseggert larseggert commented Dec 18, 2024

Also move variables into format strings where possible and make some other minor improvements.

Offshoot off #1963.

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 79.36508% with 104 lines in your changes missing coverage. Please review.

Project coverage is 93.01%. Comparing base (5c36c79) to head (24d13cc).

Files with missing lines Patch % Lines
neqo-transport/src/connection/mod.rs 78.26% 17 Missing and 3 partials ⚠️
neqo-transport/src/server.rs 10.52% 11 Missing and 6 partials ⚠️
neqo-transport/src/send_stream.rs 61.53% 10 Missing ⚠️
neqo-transport/src/crypto.rs 78.12% 7 Missing ⚠️
neqo-http3/src/connection_client.rs 82.75% 5 Missing ⚠️
neqo-qpack/src/encoder_instructions.rs 50.00% 5 Missing ⚠️
neqo-http3/src/push_controller.rs 78.57% 3 Missing ⚠️
neqo-http3/src/recv_message.rs 70.00% 3 Missing ⚠️
neqo-transport/src/addr_valid.rs 25.00% 0 Missing and 3 partials ⚠️
neqo-common/src/qlog.rs 0.00% 2 Missing ⚠️
... and 22 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2291      +/-   ##
==========================================
- Coverage   93.33%   93.01%   -0.33%     
==========================================
  Files         114      114              
  Lines       36897    36842      -55     
  Branches    36897    36842      -55     
==========================================
- Hits        34439    34268     -171     
- Misses       1675     1789     +114     
- Partials      783      785       +2     

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

Copy link

github-actions bot commented Dec 18, 2024

Failed Interop Tests

QUIC Interop Runner, client vs. server, differences relative to 17129d4.

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

@larseggert larseggert changed the title fix: Replace neqo_common::log with log crate fix: Replace neqo_common::log with log crate Dec 18, 2024
@larseggert larseggert changed the title fix: Replace neqo_common::log with log crate fix: Simplify neqo_common::log and enforce clippy format checks Dec 18, 2024
@larseggert larseggert linked an issue Jan 7, 2025 that may be closed by this pull request
Copy link

github-actions bot commented Jan 7, 2025

Benchmark results

Performance differences relative to 5c36c79.

decode 4096 bytes, mask ff: No change in performance detected.
       time:   [11.163 µs 11.201 µs 11.245 µs]
       change: [-0.5439% -0.1661% +0.2089%] (p = 0.40 > 0.05)

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

decode 1048576 bytes, mask ff: Change within noise threshold.
       time:   [2.9220 ms 2.9316 ms 2.9427 ms]
       change: [+0.6009% +1.1171% +1.6278%] (p = 0.00 < 0.05)

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

decode 4096 bytes, mask 7f: No change in performance detected.
       time:   [19.534 µs 19.585 µs 19.643 µs]
       change: [-0.2792% +0.1245% +0.5585%] (p = 0.56 > 0.05)

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

decode 1048576 bytes, mask 7f: No change in performance detected.
       time:   [5.0505 ms 5.0631 ms 5.0763 ms]
       change: [-0.4835% -0.1467% +0.1790%] (p = 0.39 > 0.05)

Found 15 outliers among 100 measurements (15.00%)
15 (15.00%) high severe

decode 4096 bytes, mask 3f: No change in performance detected.
       time:   [5.5248 µs 5.5441 µs 5.5706 µs]
       change: [-3.6013% -1.0380% +0.5758%] (p = 0.54 > 0.05)

Found 10 outliers among 100 measurements (10.00%)
3 (3.00%) low mild
1 (1.00%) high mild
6 (6.00%) high severe

decode 1048576 bytes, mask 3f: Change within noise threshold.
       time:   [1.4124 ms 1.4125 ms 1.4126 ms]
       change: [-0.9771% -0.5007% -0.1121%] (p = 0.01 < 0.05)

Found 12 outliers among 100 measurements (12.00%)
4 (4.00%) low mild
7 (7.00%) high mild
1 (1.00%) high severe

coalesce_acked_from_zero 1+1 entries: Change within noise threshold.
       time:   [99.434 ns 99.729 ns 100.03 ns]
       change: [+0.5217% +0.8786% +1.2377%] (p = 0.00 < 0.05)

Found 12 outliers among 100 measurements (12.00%)
8 (8.00%) high mild
4 (4.00%) high severe

coalesce_acked_from_zero 3+1 entries: Change within noise threshold.
       time:   [118.22 ns 118.53 ns 118.92 ns]
       change: [+0.4018% +1.1194% +1.7086%] (p = 0.00 < 0.05)

Found 16 outliers among 100 measurements (16.00%)
1 (1.00%) low severe
3 (3.00%) low mild
1 (1.00%) high mild
11 (11.00%) high severe

coalesce_acked_from_zero 10+1 entries: Change within noise threshold.
       time:   [118.17 ns 118.72 ns 119.36 ns]
       change: [+0.9839% +1.9148% +3.1238%] (p = 0.00 < 0.05)

Found 16 outliers among 100 measurements (16.00%)
5 (5.00%) low severe
1 (1.00%) low mild
10 (10.00%) high severe

coalesce_acked_from_zero 1000+1 entries: No change in performance detected.
       time:   [98.186 ns 98.323 ns 98.485 ns]
       change: [-0.1645% +0.8891% +1.9597%] (p = 0.10 > 0.05)

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

RxStreamOrderer::inbound_frame(): 💚 Performance has improved.
       time:   [110.81 ms 110.87 ms 110.92 ms]
       change: [-1.1435% -1.0794% -1.0159%] (p = 0.00 < 0.05)

Found 20 outliers among 100 measurements (20.00%)
10 (10.00%) low mild
10 (10.00%) high mild

SentPackets::take_ranges: Change within noise threshold.
       time:   [5.4996 µs 5.6775 µs 5.8701 µs]
       change: [+0.2334% +2.7084% +5.4015%] (p = 0.04 < 0.05)

Found 10 outliers among 100 measurements (10.00%)
7 (7.00%) high mild
3 (3.00%) high severe

transfer/pacing-false/varying-seeds: Change within noise threshold.
       time:   [42.313 ms 42.399 ms 42.486 ms]
       change: [+0.3382% +0.6049% +0.8750%] (p = 0.00 < 0.05)
transfer/pacing-true/varying-seeds: Change within noise threshold.
       time:   [42.671 ms 42.748 ms 42.826 ms]
       change: [+0.6710% +0.9324% +1.1922%] (p = 0.00 < 0.05)

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

transfer/pacing-false/same-seed: Change within noise threshold.
       time:   [42.476 ms 42.531 ms 42.588 ms]
       change: [+0.4537% +0.6547% +0.8410%] (p = 0.00 < 0.05)
transfer/pacing-true/same-seed: Change within noise threshold.
       time:   [42.364 ms 42.426 ms 42.486 ms]
       change: [+0.7093% +0.9305% +1.1270%] (p = 0.00 < 0.05)

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

1-conn/1-100mb-resp/mtu-1504 (aka. Download)/client: 💚 Performance has improved.
       time:   [864.74 ms 873.15 ms 881.82 ms]
       thrpt:  [113.40 MiB/s 114.53 MiB/s 115.64 MiB/s]
change:
       time:   [-3.6780% -2.3514% -1.0336%] (p = 0.00 < 0.05)
       thrpt:  [+1.0444% +2.4080% +3.8184%]

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

1-conn/10_000-parallel-1b-resp/mtu-1504 (aka. RPS)/client: 💔 Performance has regressed.
       time:   [316.28 ms 318.45 ms 320.67 ms]
       thrpt:  [31.184 Kelem/s 31.402 Kelem/s 31.618 Kelem/s]
change:
       time:   [+3.9751% +5.0865% +6.2172%] (p = 0.00 < 0.05)
       thrpt:  [-5.8533% -4.8403% -3.8231%]
1-conn/1-1b-resp/mtu-1504 (aka. HPS)/client: No change in performance detected.
       time:   [34.399 ms 34.585 ms 34.788 ms]
       thrpt:  [28.745  elem/s 28.914  elem/s 29.070  elem/s]
change:
       time:   [-0.0465% +0.7458% +1.5559%] (p = 0.07 > 0.05)
       thrpt:  [-1.5321% -0.7402% +0.0465%]

Found 7 outliers among 100 measurements (7.00%)
1 (1.00%) low mild
2 (2.00%) high mild
4 (4.00%) high severe

1-conn/1-100mb-resp/mtu-1504 (aka. Upload)/client: 💔 Performance has regressed.
       time:   [1.7325 s 1.7516 s 1.7708 s]
       thrpt:  [56.471 MiB/s 57.090 MiB/s 57.720 MiB/s]
change:
       time:   [+4.6788% +6.2100% +7.6367%] (p = 0.00 < 0.05)
       thrpt:  [-7.0949% -5.8469% -4.4696%]

Client/server transfer results

Transfer of 33554432 bytes over loopback.

Client Server CC Pacing MTU Mean [ms] Min [ms] Max [ms]
gquiche gquiche 1504 514.9 ± 21.0 494.8 570.1
neqo gquiche reno on 1504 747.2 ± 8.2 732.6 757.0
neqo gquiche reno 1504 744.5 ± 33.1 701.7 821.3
neqo gquiche cubic on 1504 735.4 ± 19.5 709.1 769.3
neqo gquiche cubic 1504 734.1 ± 17.9 703.1 754.8
msquic msquic 1504 142.1 ± 92.6 92.3 438.0
neqo msquic reno on 1504 244.5 ± 65.6 198.6 430.5
neqo msquic reno 1504 246.5 ± 64.9 207.4 402.6
neqo msquic cubic on 1504 233.1 ± 61.3 202.0 397.8
neqo msquic cubic 1504 246.2 ± 82.5 198.7 442.2
gquiche neqo reno on 1504 687.4 ± 107.4 558.1 884.8
gquiche neqo reno 1504 733.0 ± 156.9 552.4 979.1
gquiche neqo cubic on 1504 667.3 ± 91.4 549.4 834.9
gquiche neqo cubic 1504 722.6 ± 140.7 566.0 953.6
msquic neqo reno on 1504 497.2 ± 35.3 467.1 590.6
msquic neqo reno 1504 498.0 ± 18.4 485.1 548.6
msquic neqo cubic on 1504 472.3 ± 10.7 459.0 488.3
msquic neqo cubic 1504 488.9 ± 38.8 469.4 595.6
neqo neqo reno on 1504 469.6 ± 37.0 448.0 546.1
neqo neqo reno 1504 465.8 ± 60.2 427.0 634.5
neqo neqo cubic on 1504 451.5 ± 24.2 432.6 517.5
neqo neqo cubic 1504 509.3 ± 51.0 456.6 608.7

⬇️ Download logs

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.

Replace neqo_common::log with log crate
2 participants