fix(perf): harden interop perf for mplex teardown and yamux throughput#1337
Merged
Conversation
Batch recv release for Go-like GrowTo hysteresis, run autotune on per-read and partial window updates, and add regression tests. Co-authored-by: Cursor <cursoragent@cursor.com>
Prevent perf listener timeouts during slow ws+yamux runs and stabilize teardown for tls+mplex interop scenarios. Co-authored-by: Cursor <cursoragent@cursor.com>
Add scripts/perf/run_local_perf.py for local perf interop runs with documented PY_YAMUX_* environment tuning knobs. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Jun 5, 2026
Closed
Add bugfix and performance release notes for Python perf interop hardening tracked in issue #1344. Co-authored-by: Cursor <cursoragent@cursor.com>
Drop redundant _connect_redis_with_retry from run(); role runners already connect. Add unit tests for shutdown classification and env helpers. Document listener lifecycle and PERF_LOCAL_ADDR_FILE in interop README. Co-authored-by: Cursor <cursoragent@cursor.com>
Route [YAMUX_PERF] traces through logger.debug and shorten in-module PY_YAMUX_* documentation; full tuning guide lives in scripts/perf/README.md. Co-authored-by: Cursor <cursoragent@cursor.com>
Detect dialer via first perf stream when get_live_peers is empty on ws+mplex, extend teardown idle for that stack, and filter loopback listenaddrs plus connmgr deny_list so 1:1 perf runs stay stable. Co-authored-by: Cursor <cursoragent@cursor.com>
interop/perf/perf_test.py imports redis; tests/interop/perf loads it at collection time. Match interop/perf/pyproject.toml constraint. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1344
Summary
PY_YAMUX_*tuning.Test plan
make lint/make typecheck/ yamux hysteresis unit tests./scripts/perf/run_local_perf.py --quick(tcp+tls+mplex, ws+noise+yamux)