Python vs. Node.js (AWS Lambda) performance benchmark (2023)

  Рет қаралды 16,709

Anton Putra

Anton Putra

Күн бұрын

🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬
► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience)
► Located in San Francisco Bay Area, CA (US citizen)
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
► LinkedIn: / anton-putra
► Twitter/X: / antonvputra
► GitHub: github.com/antonputra
► Email: me@antonputra.com
▬▬▬▬▬▬ Related videos 👨‍🏫 ▬▬▬▬▬▬
👉 [Playlist] Kubernetes Tutorials: • Kubernetes Tutorials
👉 [Playlist] Terraform Tutorials: • Terraform Tutorials fo...
👉 [Playlist] Network Tutorials: • Network Tutorials
👉 [Playlist] Apache Kafka Tutorials: • Apache Kafka Tutorials
👉 [Playlist] Performance Benchmarks: • Performance Benchmarks
👉 [Playlist] Database Tutorials: • Database Tutorials
=========
⏱️TIMESTAMPS⏱️
0:00 Intro
0:37 Create Python Lambda Function
1:20 Create Node.js Lambda Function
1:40 Terraform Code to Reproduce
2:07 Performance Benchmark
=========
Source Code
📚 - Tutorial: antonputra.com/python/python-...
#AWS #Lambda #DevOps

Пікірлер: 65
@AntonPutra
@AntonPutra 9 ай бұрын
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
@TheSpeakingClub
@TheSpeakingClub Жыл бұрын
Hi Anton! Thank you for the great lessons!
@AntonPutra
@AntonPutra Жыл бұрын
My pleasure!
@jor4288
@jor4288 Жыл бұрын
Excellent! Thank you, Anton.
@AntonPutra
@AntonPutra Жыл бұрын
My pleasure!
@luis96xd
@luis96xd Жыл бұрын
Wow, amazing video!!
@Meamka
@Meamka Жыл бұрын
Seems like the test is heavily depend on s3 and dynamo performance. When you try to benchmark language maybe it is better to use only language without any external connections and dependencies.
@stxnw
@stxnw Жыл бұрын
he’s benchmarking language performance ON aws. that’s the point. python is faster on aws. plain and simple.
@bryanmonsalvatge1696
@bryanmonsalvatge1696 Жыл бұрын
Thanks for the comparisons. Would love to see a Go vs Python vs Rust comparison on Lambda since Go and Python seem most performant so far. And the Rust SDK is starting to become more mature.
@AntonPutra
@AntonPutra Жыл бұрын
will do
@luis96xd
@luis96xd Жыл бұрын
@@AntonPutra Great!! 😁
@kamurashev
@kamurashev Жыл бұрын
Thanks!
@AntonPutra
@AntonPutra Жыл бұрын
welcome =)
@AntonPutra
@AntonPutra Жыл бұрын
⚠Go (Golang) vs. Rust: (HTTP/REST API in Kubernetes) Performance Benchmark - kzbin.info/www/bejne/h4ivqnx4oKelopI ⚠AWS Lambda Go vs. Node.js performance benchmark - kzbin.info/www/bejne/oXuXmJmlmpyahrM ⚠AWS Lambda Go vs. Rust performance benchmark - kzbin.info/www/bejne/raq7enRpncuDbpo
@jackychan4640
@jackychan4640 Жыл бұрын
Hey, great test
@AntonPutra
@AntonPutra Жыл бұрын
thanks!
@spellskreenful
@spellskreenful Жыл бұрын
Looks like time to compile node JS is longer than time of interpretation of Python, if service could get compiled code, node will be way faster
@chamsseddin4449
@chamsseddin4449 Жыл бұрын
Yes, node take some time at the begining, but for long time will be faster
@AntonPutra
@AntonPutra Жыл бұрын
👉 How to Manage Secrets in Terraform - kzbin.info/www/bejne/aX-TpXqBrNt1mqM 👉 Terraform Tips & Tricks - kzbin.info/www/bejne/bYScZaKLid5lsJY 👉 ArgoCD Tutorial - kzbin.info/www/bejne/sHjRlZqafMZkisU
@erbhargavvyas
@erbhargavvyas Жыл бұрын
Awesome meterial. I think one thing can be changed for all your test (i.e. go, python, rust, node) the test tool. As I understand the test tool is of javascript. Maybe change it. A test tool written in go or C/C++ can produce different results 'cause the latency of the tool itself might have come into account. Please read this comment for all 3 videos.
@AntonPutra
@AntonPutra Жыл бұрын
Thanks Bhargav, it can definitely help to reduce overall latency, but I think the difference between languages will stay the same. I will definitely try something new next time!
@AntonPutra
@AntonPutra Жыл бұрын
❤Performance Benchmarks Playlist - kzbin.info/aero/PLiMWaCMwGJXl-h2RgOSpdO-pQaSRwlVjd
@NiklasHeer
@NiklasHeer Жыл бұрын
I was surprise to see the results of my silly project (speed-comparison) in this video. (0:22) I've worked on the repo and there were numerous improvements made, so these results shown here are out of date.
@AntonPutra
@AntonPutra Жыл бұрын
Thanks you Niklas, I'll check it out
@ambigus7
@ambigus7 Жыл бұрын
Just perfect! I love Python!!
@AntonPutra
@AntonPutra Жыл бұрын
Go vs. Node.js - kzbin.info/www/bejne/oXuXmJmlmpyahrM
@dmytrob7336
@dmytrob7336 Жыл бұрын
How about Python vs Go?
@stxnw
@stxnw Жыл бұрын
javascript devs try not to be upset about python being faster (IMPOSSIBLE)
@AntonPutra
@AntonPutra Жыл бұрын
curios at what application node can be faster?
@fiords
@fiords Жыл бұрын
Wow, unexpected results. Seems Python is run with pypy or smth faster?
@AntonPutra
@AntonPutra Жыл бұрын
Do you mean pypy vs original cpython? I've never tested them.
@fiords
@fiords Жыл бұрын
@@AntonPutra On 20 second of the video there is some benchmark, and Python3 on pypy is faster than Node.js. So I presume AWS runs Python using pypy somehow?
@agatehao
@agatehao Жыл бұрын
Hmm... the result looks very strange to me. I can't believe that python is faster than node. For my experience, node should be way faster than python... This makes me curious how lambda execute those applications.
@AntonPutra
@AntonPutra Жыл бұрын
To be honest, I was surprised as well. But I ran it multiple times..
@kamurashev
@kamurashev Жыл бұрын
Just wanted to say the same. I’m sure it’s just either the lambda engine or the AWS libraries implementation details. Python can’t be faster than js. But in contemporary world it just proves the motto - test it not guess it.
@aydow
@aydow Жыл бұрын
Python should be faster than node for serial computation. I believe Node is better at handling Async operations
@kamurashev
@kamurashev Жыл бұрын
@@aydow that’s not true. It’s slower tens of times. You can test it yourself. I did it, if interested check my 91тнu8. kamurashev, compute-task
@gshan994
@gshan994 Жыл бұрын
I use plantuml diagram fr serverless arch diagram Which one u use?
@AntonPutra
@AntonPutra Жыл бұрын
For work lucidchart
@fernandoarteaga9805
@fernandoarteaga9805 Жыл бұрын
Python vs go please
@AntonPutra
@AntonPutra Жыл бұрын
sure :)
@HariKrishna-mi6is
@HariKrishna-mi6is Жыл бұрын
Python vs node js => python wins.
@techmech1168
@techmech1168 Жыл бұрын
Well what are you trying to prove? Node js is never good for CPU intensive task. You need to create a bigger test case with multiple data intensive task and check. Also we need to refactor understand lamba cold starting time. Thanks!
@daviidon
@daviidon Жыл бұрын
This is a real world scenario, nobody is calculating fibonacci in lambda
@richarmunicosamaniego8216
@richarmunicosamaniego8216 Жыл бұрын
Go vs Python ...
@AntonPutra
@AntonPutra Жыл бұрын
will do
@vagifgafar2946
@vagifgafar2946 Жыл бұрын
What is loadtest command you use?
@AntonPutra
@AntonPutra Жыл бұрын
this one - www.npmjs.com/package/loadtest
@vaibhav4003
@vaibhav4003 Жыл бұрын
Love from India
@AntonPutra
@AntonPutra Жыл бұрын
🤗
@JakubSK
@JakubSK Жыл бұрын
So Python won. Cool
@sushantbhargav4652
@sushantbhargav4652 Жыл бұрын
This is wierd,
@AndrewTSq
@AndrewTSq Жыл бұрын
either the python library is C.. or the nodejs is the worst optimised javascript you ever seen
@AntonPutra
@AntonPutra Жыл бұрын
has nothing to do with programing languages 😜
@AndrewTSq
@AndrewTSq Жыл бұрын
@@AntonPutra aha okey, I am trying to learn about networks, but since it was 2 programming languages in the topic you get that feeling that its about programing languages.
@user-ht6tu6ks3u
@user-ht6tu6ks3u Жыл бұрын
Bad test as the tested languages do almost nothing.
@pangutovskiy1659
@pangutovskiy1659 Жыл бұрын
Диз на нод жс
@AntonPutra
@AntonPutra Жыл бұрын
?
@pangutovskiy1659
@pangutovskiy1659 Жыл бұрын
@@AntonPutra я думал уж нода должна быть тут быстрее пайтона, а оказывается... 😄 и здесь она проигрывает 😥
@AntonPutra
@AntonPutra Жыл бұрын
@@pangutovskiy1659 da ya sam ne ojidal :)
@AndreMR
@AndreMR 5 ай бұрын
@@pangutovskiy1659 "I thought Node should be faster than Python here, but it turns out... 😄 and here it also loses." (thanks, free modern translators)
@pangutovskiy1659
@pangutovskiy1659 5 ай бұрын
@@AndreMR автор росня
Go vs. Node.js (AWS Lambda) performance benchmark (2023)
3:04
Anton Putra
Рет қаралды 45 М.
Is TypeScript (NodeJS) Faster than Go?? |  A server comparison
9:54
ThePrimeagen
Рет қаралды 212 М.
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 40 МЛН
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 95 МЛН
Её Старший Брат Настоящий Джентельмен ❤️
00:18
Глеб Рандалайнен
Рет қаралды 8 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 1,4 МЛН
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 627 М.
PYTHON vs JAVASCRIPT // What I Would Choose as a Beginner…
12:48
Internet Made Coder
Рет қаралды 321 М.
Traefik vs. Nginx performance benchmark
12:38
Anton Putra
Рет қаралды 36 М.
Go vs Rust vs Bun vs Node | Prime Reacts
18:07
ThePrimeTime
Рет қаралды 160 М.
Resize Images with Node.js and AWS Lambda (and S3)
13:12
Nikita Dev
Рет қаралды 9 М.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 69 М.
Google Functions vs. AWS Lambda performance benchmark (2023)
6:11
PHP vs NodeJS vs Python vs Ruby: What Do The Statistics Say?
10:44
Kodaps Academy
Рет қаралды 40 М.
Go vs. Rust: Performance Benchmark
6:43
Anton Putra
Рет қаралды 156 М.
🔥Идеальный чехол для iPhone! 📱 #apple #iphone
0:36
Mem VPN - в Apple Store
0:30
AndroHack
Рет қаралды 106 М.
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 1,7 МЛН
MacBook Air Японский Прикол!
0:42
Sergey Delaisy
Рет қаралды 273 М.