-
Notifications
You must be signed in to change notification settings - Fork 470
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
Websocket performance degradation after v0.11.0 #430
Comments
Timing each individual request with:
shows requests normally finish in sub-millisecond range for both old and new version, however with |
A fix for the naive test above is to set This send small messages immediately without waiting, and I think it should be the default, since is quite necessary for the real-time purposes here - many times the process will wait for web3 response, since execution depends on the results. Unfortunately, even with this fix, we still observe a large performance drop in our production workloads moving from |
This is not correct, I made a mistake. I am happy to report that Should I make a pull request or is the fix obvious enough? |
@mdben1247 great to hear you indentified the culprit. Please make a PR, happy to review and merge. |
We are experiencing quite a large, about an order of magnitude performance degradation in Websocket performance in various applications going from
v0.11.0
tov0.12.0
. It can be observed comparing the run times of a simple test:or for
v0.11.0
:All versions after
v0.11.0
are affected, tried testing withv0.12.0
,v0.13.0
andmaster
. Looking at changes, it seems the backend has been changed fromwebsocket
tosocketto
at the time.The text was updated successfully, but these errors were encountered: