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

perf(jetsocat,dgw): remove to_vec calls from JMUX implementation #973

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

CBenoit
Copy link
Member

@CBenoit CBenoit commented Aug 14, 2024

By removing a few to_vec() calls and reusing the Bytes buffer as-is, perfomance of JMUX proxy is increased by ~62.3%.

Performance was measured using iperf on local network.

JMUX proxy performance before this patch:

0.0000-10.0493 sec 8.21 GBytes 7.02 Gbits/sec

JMUX proxy performance after this patch:

0.0000-19.0245 sec 25.2 GBytes 11.4 Gbits/sec

This is still 78.6% slower than jetsocat regular TCP port forwarding.

By removing a few `to_vec()` calls and reusing the `Bytes` buffer as-is,
perfomance of JMUX proxy is increased by ~62.3%.

Performance was measured using `iperf` on local network.

JMUX proxy performance before this patch:

> 0.0000-10.0493 sec  8.21 GBytes  7.02 Gbits/sec

JMUX proxy performance after this patch:

> 0.0000-19.0245 sec  25.2 GBytes  11.4 Gbits/sec

This is still 78.6% slower than jetsocat regular TCP port forwarding.
@CBenoit CBenoit merged commit 32de1d5 into master Aug 14, 2024
25 checks passed
@CBenoit CBenoit deleted the perf/jmux-proxy-1 branch August 14, 2024 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants