Web api benchmarking: Python (Flask) vs Rust (actix-web)

preview_player
Показать описание
#rustlang #benchmarking

Рекомендации по теме
Комментарии
Автор

ex python dev here, i think for python you should running with Gunicorn and set workers to 4 or whatever u want. for most cases Flask run is use for development only

skidipap
Автор

Do you know that in each python request you create your UsersData and you do same with Rust. Also there are much faster python rest api libs like for example fastapi

michasiwik
Автор

That's not a benchmark. It's a bloodbath. 🤣

In all seriousness, I think this is due to the synchronous nature - akin to php.
I think the Rust Rocket 0.4 (0.5 is async) would also be comparable as that uses the synchronous methods.

Fozzedout