Repository navigation
bench: build the decoder buffer once - #4413
larseggert wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The decoder benchmark’s input-buffer reuse change has no active review issues.
No open issues 🎉
What changed in this PR
Updates the neqo-common decoder benchmark to reuse its read-only input buffer instead of rebuilding it for each iteration.
Changes:
- Builds the buffer once before registering the benchmark.
- Replaces batched iteration with
b.iter, creating a fresh decoder each time and passing the input throughblack_box.
| File | Description |
|---|---|
neqo-common/benches/decoder.rs |
Reuses the input buffer and simplifies the decoder benchmark loop. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4413 +/- ##
==========================================
- Coverage 96.61% 96.60% -0.02%
==========================================
Files 118 118
Lines 43894 43894
Branches 43894 43894
==========================================
- Hits 42410 42405 -5
- Misses 1463 1468 +5
Partials 21 21
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Failed Interop TestsQUIC Interop Runner, client vs. server, differences relative to
All resultsSucceeded Interop TestsQUIC Interop Runner, client vs. server neqo-pr as client
neqo-pr as server
Unsupported Interop TestsQUIC Interop Runner, client vs. server neqo-pr as client
neqo-pr as server
|
Client/server transfer resultsPerformance differences relative to c46d346. No significant performance differences. Table above only shows statistically significant changes. See all results below. All resultsTransfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.
Download data for |
Merging this PR will regress 4 benchmarks1 warning
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing |
Benchmark resultsNo significant performance differences relative to c46d346. All resultstransfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 time: [62.193 ms 62.233 ms 62.273 ms]
thrpt: [1.5682 GiB/s 1.5692 GiB/s 1.5702 GiB/s]
Found 4 outliers among 100 measurements (4.00%)
3 (3.00%) low mild
1 (1.00%) high mildtransfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 time: [61.432 ms 61.489 ms 61.549 ms]
thrpt: [1.5867 GiB/s 1.5882 GiB/s 1.5897 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mildtransfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 time: [3.8081 ms 3.8089 ms 3.8097 ms]
thrpt: [262.49 B/s 262.54 B/s 262.60 B/s]
Found 4 outliers among 100 measurements (4.00%)
1 (1.00%) low mild
3 (3.00%) high severetransfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 time: [87.433 ms 87.578 ms 87.723 ms]
thrpt: [114.00 Kelem/s 114.18 Kelem/s 114.37 Kelem/s]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) low mild
1 (1.00%) high mildstreams-flow-controlled/walltime/1-streams/each-4194304-bytes time: [13.045 ms 13.064 ms 13.082 ms]
thrpt: [305.77 MiB/s 306.19 MiB/s 306.63 MiB/s]
Found 23 outliers among 100 measurements (23.00%)
21 (21.00%) low severe
1 (1.00%) low mild
1 (1.00%) high mildstreams-flow-controlled/walltime/10-streams/each-1048576-bytes time: [35.952 ms 35.998 ms 36.042 ms]
thrpt: [277.45 MiB/s 277.79 MiB/s 278.15 MiB/s]
Found 17 outliers among 100 measurements (17.00%)
1 (1.00%) low severe
16 (16.00%) low mildstreams/walltime/1-streams/each-1000-bytes time: [161.66 µs 162.32 µs 163.15 µs]
thrpt: [5.8453 MiB/s 5.8754 MiB/s 5.8993 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mildstreams/walltime/1000-streams/each-1-bytes time: [4.7768 ms 4.7788 ms 4.7805 ms]
thrpt: [204.28 KiB/s 204.35 KiB/s 204.44 KiB/s]
Found 4 outliers among 100 measurements (4.00%)
3 (3.00%) low severe
1 (1.00%) low mildstreams/walltime/1000-streams/each-1000-bytes time: [15.277 ms 15.283 ms 15.288 ms]
thrpt: [62.379 MiB/s 62.402 MiB/s 62.426 MiB/s]
Found 5 outliers among 100 measurements (5.00%)
4 (4.00%) low mild
1 (1.00%) high mildtransfer/walltime/pacing-false/same-seed time: [3.3513 ms 3.3529 ms 3.3549 ms]
thrpt: [1.1643 GiB/s 1.1650 GiB/s 1.1656 GiB/s]transfer/walltime/pacing-false/varying-seeds time: [3.4384 ms 3.4394 ms 3.4407 ms]
thrpt: [1.1353 GiB/s 1.1357 GiB/s 1.1361 GiB/s]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) low mild
1 (1.00%) high mildtransfer/walltime/pacing-true/same-seed time: [3.8123 ms 3.8148 ms 3.8179 ms]
thrpt: [1.0231 GiB/s 1.0240 GiB/s 1.0246 GiB/s]
Found 9 outliers among 100 measurements (9.00%)
9 (9.00%) low mildtransfer/walltime/pacing-true/varying-seeds time: [4.0414 ms 4.0426 ms 4.0441 ms]
thrpt: [989.09 MiB/s 989.45 MiB/s 989.75 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mildInstructions per cycleCriterion reported no significant timing changes. All benchmarks
Profiles for profiler.firefox.com (64)
Download data for |
Decoding only reads the buffer, so build it once rather than per iteration.