Repository navigation
bench: don't time simulator teardown - #4411
larseggert wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4411 +/- ##
=======================================
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
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the benchmark-timing changes.
No open issues 🎉
What changed in this PR
This PR excludes simulator teardown from QUIC and HTTP/3 benchmark timing so measurements focus on simulation execution.
Changes:
- Change
ReadySimulator::runto borrow the simulator mutably rather than consume it. - Use
iter_batched_refin both benchmark suites, moving simulator destruction outside the timed region.
| File | Description |
|---|---|
test-fixture/src/sim/mod.rs |
Make run take &mut self, preserving the simulator after execution. |
neqo-transport/benches/transfer_common.rs |
Exclude simulator teardown from transport benchmark timing. |
neqo-http3/benches/common.rs |
Exclude simulator teardown from HTTP/3 benchmark timing. |
Review effort: Balanced
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. Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.
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 7 benchmarks1 warning
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing |
ReadySimulator::runtakes&mut self, soiter_batched_refdrops the simulator outside the timed region.