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

performance of unix socket #571

Open
xiaowen581 opened this issue Feb 21, 2025 · 0 comments
Open

performance of unix socket #571

xiaowen581 opened this issue Feb 21, 2025 · 0 comments

Comments

@xiaowen581
Copy link

Is the performance of Unix sockets seemingly inferior to TCP an expected outcome, or could it be due to incorrect usage?
In the following example of sending data from the server to the client, unix_socket.py takes an average of 0.2 seconds, while tcp_socket.py takes an average of 0.0006 seconds. Based on my understanding, the cost of unix sockets should be lower, shouldn't it?

socket.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant