Open hiqsociety opened 2 years ago
Because they are using fastpoll, probably.. at least I think that's why there was faster if I remember correctly. I had an alpha fastpoll branch and we were faster so maybe that's the difference.
We aren't sure when we will have support for faster sockets... it's something I want to do but haven't had time since the birth of my child. In time, we will get it done. Patches welcome!
UPD: It depends on the read pattern, for random reads performance is comparable.
I just did random file read testing of glommio vs monoio. Not only Semaphore
from glommio
appears to be significantly slower than generic async_lock::Semaphore
, monoio was 11.1x faster when reading random ~40kiB chunks across SATA SSD (Samsung SSD 860 EVO 1TB) with io concurrency set to 32.
In my code the abstraction looked like this (requires Rust Nightly):
There must be some major low-hanging fruits given such a massive difference.
Yeah def needs some performance improvements
why is glommio slower on benchmark against bytedance's monoio? https://github.com/bytedance/monoio