Python (FastAPI) vs Go (Golang) Performance Benchmark

preview_player
Показать описание
FastAPI vs Go Performance Benchmark.

▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬
► I’m a Senior Software Engineer at Juniper Networks (13+ years of experience)
► Located in San Francisco Bay Area, CA (US citizen)

▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬

▬▬▬▬▬▬▬ Timestamps ⏰ ▬▬▬▬▬▬▬
0:00 Intro
2:15 1st Test
5:29 2nd Test (Postgres + Memcache)

▬▬▬▬▬▬▬ Source Code 📚 ▬▬▬▬▬▬▬

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

this is like coughing baby vs atomic bomb

vamshiaruru
Автор

Updated my checklist: 'Use non-blocking async libraries when possible.' 😊

AntonPutra
Автор

One of the fastest tortoise vs cheetah.

AlokSingh-rjgt
Автор

Can we have a spring boot performance benchmark? I'm curious how it will perform in comparison with other tools/languages and with virtual threads and without it

pedro_alonso
Автор

Thank you all who helped to improve the Python application. I'll release round 2 in a few days.

AntonPutra
Автор

I understand not everyone knows every language/framework well enough to make a decent app but cmon you could've done some more research.
1. Why are you using a synchronous pg driver with an async endpoint? this blocks the event loop till each query finishes. If you absolutely want to use the sync driver, use plain def routes without async.
2. Why aren't you using asyncpg with async endpoints? the whole point of FastAPI is to make completely async REST APIs which use async packages. If you cannot find an async package or method, use run_in_threadpool with the sync method.

SAsquirtle
Автор

So the conclusion is use go for any backend service if you dont have any spesific requirements that force you to use another language

fluxcaruso
Автор

enterprise-ai AI fixes this. Python vs Go benchmark comparison.

EddaFredericks
Автор

FINALLY!, what I've waiting for so long, thank you Anton!

ridhotamma
Автор

Just what I’ve been waiting for! Thanks for doing these benchmarks.

mickhuby
Автор

Based on this and other videos, I didn't realize how efficient Go was! Thanks for sharing

pini
Автор

The Switch from C# to Golang was a right one. Golang has the best simplicty / speed ratio. Using rust or c++ is more performant than golang. The costs are complexity in the codebase. Not to mention golang gives you one binary to deploy. This compared with c# dll hell...

homosuperior
Автор

Could you please make a mysql compatible database benchmarks for oceanbase and tidb?

ttc
Автор

Go is always a good pick for api server. good dev ux and decent performance.
if you want top tier performance but with a longer time to write pick rust.

obamna
Автор

Please consider doing vs golang(fiber/echo/stdlib)

inithinx
Автор

Python and speed can never go in the same paragraph.

SnazzieTV
Автор

Top video! Thanks.
Please make OpenSwoole/Swoole (PHP) comparison vs Go.

andreyvershkov
Автор

It would be great to have a long video setting up all of this and learning how to perform these benchmarks. That way, we could better understand the process and contribute more effectively to this code.
Really good job!

jorgetovar
Автор

Thanks for giving me a video I can use to show people why I don't use python.

rafaeltab
Автор

Why in on 7:28 Connection Pool Size of Go increased and after that more than Python?

VladimirS-ho