7 ms·
I actually benchmarked it yesterday and I would like to point out that the async branch of Rocket will get you improved performance, as the current stable imple
by plainOldText 6y ago
I actually benchmarked it yesterday and I would like to point out that the async branch of Rocket will get you improved performance, as the current stable implementation v0.4.4 appears to be synchronous. I think Rocket v0.5 will change that.
- lordnaikon 6y agoWhat was the result of your benchmark – just a ballpark number would be great on what to expect from the async version.
- plainOldText 6y agoAbsolute numbers vary with each machine, to the point they’re irrelevant in isolation. However, in terms of relative performance the async version was 10x to 20x better. Bear in mind it was a simple hello world benchmark. I also disabled keep-alive. Reusing a connection gets you even better performance. Rocket is a well designed framework, so I’d expect it to perform similarly to other rust frameworks once the async version hits master.