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): limit number of syscalls in JMUX sender task #976

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

CBenoit
Copy link
Member

@CBenoit CBenoit commented Aug 14, 2024

Number of syscalls is reduced by using a BufWriter and waiting for write operations to stop before calling flush().

Performance is increased by ~28.4%.

Before this patch:

0.0000-17.1307 sec 28.8 GBytes 14.4 Gbits/sec

After this patch:

0.0000-13.8483 sec 29.9 GBytes 18.5 Gbits/sec

Number of syscalls is reduced by using a `BufWriter` and waiting for
write operations to stop before calling `flush()`.

Performance is increased by ~28.4%.

Before this patch:

> 0.0000-17.1307 sec 28.8 GBytes 14.4 Gbits/sec

After this patch:

> 0.0000-13.8483 sec  29.9 GBytes  18.5 Gbits/sec
@CBenoit CBenoit enabled auto-merge (squash) August 14, 2024 17:43
@CBenoit CBenoit merged commit 11efaa5 into master Aug 14, 2024
25 checks passed
@CBenoit CBenoit deleted the perf/jmux-proxy-4 branch August 14, 2024 17:58
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