Replies: 4 comments 4 replies
-
Thanks! I'll definitely check that out and add those results to the README for clarification! I'm fairly confident I'll get the python code to work but I am a total rust noob. Will report back if I need more help. |
Beta Was this translation helpful? Give feedback.
-
BTW the python example is using the built-in |
Beta Was this translation helpful? Give feedback.
-
Thank you, @felipetrz ! I have added the new timings to the README. Have a look! The rust side of things looks much better, more realistic now. All the source code is there for you to check, as well. It's in the |
Beta Was this translation helpful? Give feedback.
-
Since this topic comes up again and again, I link issue #12 here for more. To me, with axum/tokio (introduced in d7946ec), the "rust looking bad" problem is addressed enough. It's a fair comparison now in terms of comparing optimized, current frameworks. |
Beta Was this translation helpful? Give feedback.
-
Since you asked, both your Zap and Go samples are doing evented async IO (
facil.io
is doing the heavy lifting for you, and Go's support for concurrent async IO is it's main feature).Both your Python and Rust comparisons are unfair, as they're just using blocking threaded IO.
For a more fair comparison, I suggest you replace your Python sample (which is likely using Flask) by the equivalent Starlette implementation, and your inefficient Rust sample by an Axum application.
Beta Was this translation helpful? Give feedback.
All reactions