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. |
1 reply
|
BTW the python example is using the built-in |
3 replies
|
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Since you asked, both your Zap and Go samples are doing evented async IO (
facil.iois 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.
All reactions