Re:Actix: a small, pragmatic, and fast Rust web framework
by madsohm on Thursday May 31, 2018 @03:35AM
(#17194623)
Have you tried to create a more complex web page and have the web frameworks render that as well? Sometimes being the fastest at the most trivial request isn't enough, if it can't handle complex request fast as well.
Also, do you have a list of speeds for the frameworks you've tested?
Re:Actix: a small, pragmatic, and fast Rust web framework
by steveklabnik on Thursday May 31, 2018 @04:09AM
(#17194761)
A lot of Rust frameworks use sync io. The first generation does because the libraries for async didn't exist yet, and Rocket doesn't because (last I heard), the author said that he didn't feel the ergonomics were there yet, and that's one of Rocket's primary goals. So that leaves Actix, Gotham, and Shio, basically. Gotham hasn't been tuned for performance at all. I haven't seen any Shio benchmarks.
There are a lot though: https://github.com/flosse/rust-web-framework-comparison#serv...
Re:Actix: a small, pragmatic, and fast Rust web framework
by fafhrd91 on Thursday May 31, 2018 @07:06AM
(#17195437)
From repo activity Shio seems dead. And here is for gotham https://gotham.rs/blog/2018/05/31/the-state-of-gotham.html
Re:Actix: a small, pragmatic, and fast Rust web framework
by steveklabnik on Thursday May 31, 2018 @07:50AM
(#17195611)
Yeah, that Gotham news happened after I made this comment. Good to know!
The benchmark result really confused me. But you'll find that the `actix` actors are extraordinarily lightweight and highly optimized around the equally lightweight and highly optimized Futures. The design is hard to beat, from a performance standpoint.