Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAm i missing some thing or is there is a bug ? #1701
Comments
This comment has been minimized.
This comment has been minimized.
goriunov
commented
Nov 6, 2018
|
Video is available on reddit https://www.reddit.com/r/rust/comments/9ulbj3/weird_rust_hyper_async_behaviour_why/ |
This comment has been minimized.
This comment has been minimized.
goriunov
commented
Nov 6, 2018
|
Repo with simplified code: https://github.com/goriunov/rust-test |
goriunov
changed the title
Am i missing some thing or is there a bug ?
Am i missing some thing or is there is a bug ?
Nov 8, 2018
This comment has been minimized.
This comment has been minimized.
|
There is no bug, but as was mentioned in the Reddit thread, it could be synchronizing on the stdout lock helps with something else, like the |
seanmonstar
closed this
Nov 12, 2018
This comment has been minimized.
This comment has been minimized.
goriunov
commented
Nov 13, 2018
|
@seanmonstar Thank you for your suggestion. I have removed that code long time ago and it still has the same problem could you please check this code. I am not sure what can be wrong (can not solve that problem for a while and no one really explains properly what is going on) |
goriunov commentedNov 6, 2018
•
edited
I have simple Hyper server with r2d2 db pool running on arch linux, if i run benchmark
wrkwith below code i will get around 34k per 10s, but if i comment one likeprintln!("GOt in here");inPutPost futurei am geting around 22k per 10s, Am i missing something ?Code: