Python (FastAPI) vs Go (Golang) Performance Benchmark

Python (FastAPI) vs Go (Golang) Performance Benchmark

Anton Putra

55 лет назад

29,644 Просмотров

Ссылки и html тэги не поддерживаются

10+18=


Комментарии:

@skippednote
@skippednote - 13.12.2024 11:41

I'm assuming you are computing most of the metrics using nginx ingress. If so can you please share your configurations and the dashboard queries?

Ответить
@egida6486
@egida6486 - 13.12.2024 11:57

FastAPI = fail fast

Ответить
@s1v7
@s1v7 - 13.12.2024 12:06

python must die

Ответить
@j-p-d-e-v
@j-p-d-e-v - 13.12.2024 13:04

Python hogs a lof of memory and cpu thats why Im slowly rewriting my web app to Rust.

Ответить
@ranggatohjaya5471
@ranggatohjaya5471 - 13.12.2024 13:15

RabbitMQ Stream vs Kafka vs Redis Stream vs Pulsar

Ответить
@mohagungnursalim8219
@mohagungnursalim8219 - 13.12.2024 14:22

Php swoole/frankenphp vs go

Ответить
@garveyebsmith
@garveyebsmith - 13.12.2024 14:58

Thanks Anton!

Ответить
@Yue2u
@Yue2u - 13.12.2024 15:35

In first test you create data every time in endpoint, python isn't fast working with memory operations like this, it makes app a lot slower than it could be. In second test using synchronous sqlalchemy inside async function slows fastapi a lot, it works like django in this case, executing code sequentialy. So, python is slower than go, thats obvious. However the benchmark isn't really fair.

Ответить
@carlos_rijo
@carlos_rijo - 13.12.2024 15:36

Looking at these benchmarks, I guess "Go" is top 1 right?

Ответить
@EddaFredericks
@EddaFredericks - 13.12.2024 17:33

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

Ответить
- 13.12.2024 18:10

Go will win for AI Development

Ответить
@stefanhoromnea6064
@stefanhoromnea6064 - 13.12.2024 18:11

Hi, nice comparison! What did you use to make the graphs?

Ответить
@cinos3911
@cinos3911 - 13.12.2024 19:32

C++ vs Rust, please 🙏

Ответить
@sylvereleipertz955
@sylvereleipertz955 - 13.12.2024 20:04

Python is trash as expected

Ответить
@MiguelVazquez90
@MiguelVazquez90 - 13.12.2024 20:15

My company just finished the migration from Python Django to Go/GoLang, It's night and day. My bosses used to complained all the time that our services were slow, not anymore!!!

Ответить
@ArcticPrimal
@ArcticPrimal - 13.12.2024 23:29

Please test Golang Hertz and Bun router

Ответить
@akinshipeolaoluwa761
@akinshipeolaoluwa761 - 14.12.2024 02:34

This did not test fastAPI at all. You need to use non blocking driver for the database and gunicorn server so as to be able to use more process. Please redo this video as it very important. Thanks

Ответить
@RealEngineer
@RealEngineer - 14.12.2024 04:15

Soooo what we need now is C# vs Java 😃

Ответить
@EricSouzarys
@EricSouzarys - 14.12.2024 06:50

Hey Anton! Any chances we can get a new comparison with the java quarkus reactive code?

Ответить
@AB-ms7my
@AB-ms7my - 14.12.2024 07:04

Hello again! I guess that CPython is your primary topic. Python is a language. Python has more than one implementation.

Ответить
@watermelonjones625
@watermelonjones625 - 14.12.2024 08:13

It was predictable. Python is much slower than go

Ответить
@saikirannadipilli7831
@saikirannadipilli7831 - 14.12.2024 10:18

Hi @AntonPutra can you please do benchmark for go vs c++(Poco library)

Ответить
@kamikaz1k
@kamikaz1k - 14.12.2024 11:53

DSQL vs RDS?

Ответить
@ferdynandkiepski5026
@ferdynandkiepski5026 - 14.12.2024 14:04

Now this is actually kind of surprising to me. Python libraries all call into C/C++/Rust. I'd really expect it to be better. I guess the overhead from using such a slow language to call into library functions can't be hidden.

Ответить
@iddqd2048
@iddqd2048 - 14.12.2024 15:07

Those test on AWS are nonsense. The same type instance performance can be different by 40%!!!!

Ответить
@snippletrap
@snippletrap - 14.12.2024 20:22

Try Litestar, a FastAPI competitor that claims to be 2x as fast

Ответить
@sauravagun9751
@sauravagun9751 - 14.12.2024 20:24

no wonder why i have to learn go next year, gonna be my 3rd language yayyyy! multilingual in programming it is 😎😎

Ответить
@pi3ni0
@pi3ni0 - 15.12.2024 11:55

Waiting for round 2 with PRs for FastAPI

Ответить
@pkucmus
@pkucmus - 15.12.2024 13:38

I'm here again, asking for you to teach us how to run those benchmarks :D
Could we think about a way to help you prepare the test criteria? Discord, or maybe GitHub issues for every test you are about to run? I know Python and only that and I think that you should compare Go std lib to a pure Python ASGI app (just that function - no framework) or to Starlette (depending on what are we actually comparing). Go would still win in any case but we would have more accurate results.

Ответить
@gibzrival1565
@gibzrival1565 - 15.12.2024 18:13

Go has become the standard language for benchmark comparisons

Ответить
@appsky7982
@appsky7982 - 16.12.2024 02:20

I see you have received lots of PRs for fastapi. I can't wait for the second benchmark

Ответить
@AntonPutra
@AntonPutra - 16.12.2024 12:55

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

Ответить
@bryanchoong5920
@bryanchoong5920 - 16.12.2024 16:05

Redis vs DiceDB

Ответить
@franklynd
@franklynd - 16.12.2024 16:47

Does this improve if you use the pypi JIT with FastAPI ?

Ответить
@dpdx_05h
@dpdx_05h - 16.12.2024 23:46

Спасибо, интересные видео!

Ответить
@alwaisy
@alwaisy - 17.12.2024 08:36

where's the summary.

Ответить
@hyeongseogyoo9408
@hyeongseogyoo9408 - 17.12.2024 09:44

Redis cluster vs mongodb vs aerospike :)

Ответить
@ttc0419
@ttc0419 - 18.12.2024 05:25

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

Ответить
@rafaeltab
@rafaeltab - 18.12.2024 18:38

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

Ответить
@Rajamani.H
@Rajamani.H - 19.12.2024 10:57

Br please do key db vs redis vs memcached

Ответить
@misalambasta
@misalambasta - 19.12.2024 15:30

In this, is Go stdlib used?

Ответить
@prakkumar3240
@prakkumar3240 - 20.12.2024 12:58

Actix Web(Rust) vs Drogon Framework(C++) will be a show of heavyweights

Ответить
@igor-arkhipov
@igor-arkhipov - 22.12.2024 08:08

please FastAPI (python) vs. Roda (ruby)

Ответить
@udaym4204
@udaym4204 - 05.01.2025 20:12

redids vs keydb

Ответить