Node.js vs Ruby Performance

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


▬▬▬▬▬ 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:06 Test Design
4:15 Implementation Overview
8:17 1st Test (HTTP)
12:18 2nd Test (PostgreSQL)

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

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

@AntonPutra, me again from the original Rails vs NodeJS video. This is a great improvement, thank you so much! And shoutout to Konstantin Ilchenko for the PR

ewanjones
Автор

man, your videos are such a blast. nowadays google always show AI generated stuff when you look to compare benchmarks, it's nice to have these well crafted videos with these tests so we as developers can weigh the pros and cons.

Keep the good work!

DanielFaiole
Автор

thank you for matching the chart colors with the product logo

twitchizle
Автор

I think you should have gone completely the other way about this benchmark. Instead of changing Ruby implementation to be more 'barebones' it would be more interesting to see Ruby on Rails vs NestJS/AdonisJS (some MVC framework).

WiecejNoxiego
Автор

it would be nice a C# vs Java video. Congrats to your work 👏

everson_vinicius
Автор

Quick investigation shows that Ruby uses a third-party HTTP server, 'rage-iodine, ' written in C—so it's not purely Ruby.
To keep things fair, should we compare by using a third-party HTTP server like uWS for Node.js too?
That way, it's mangoes to mangoes.

Jaood_xD
Автор

Thank you so much for making this video. I am a Polyglot programmer and Rails is my happy place. The one area I have absolutely zero experience is Kubernetes as it’s not widely used in the eco system.

I didn’t care that the last episode compared Rails to Node. It’s not a competition. I mean by definition it technically it is, but technically correct isn’t actually the best kind of correct 😅 I feel like you got more push back than you deserved from that video, but for me I was just curious what was going on with the K8 configuration.

I’m super happy to see this update. Thanks to you and whomever created the PR. I didn’t have time but it’s been bugging me since last week. One of these days I’ll have to use K8s, and I’ll look for your content :)

jhirn
Автор

I am sure this is a stupid idea, but I would like to see how does AWS k8 clustter compares to a single $1-2k custom built ('gaming' hardware or pro server component whatever) physical server, and an application (Java, Dotnet, PHP, Node, Ruby whatevre) and DB running directly on the OS (No VMs, no docker etc). Second scenario, $1 - 2k single server running k8 and the infra, vs AWS. I have computers like this Dell Latitude Laptop that's 14yo, has been used almost on a daily basis until recently, still works, and also regular consumer grade custom build PCs around same age and even older. But yeah, no horizontal (at least no auto) scaling here.

denissorn
Автор

Great video as always Anton! Would love to see Elixir next!

marcwinner
Автор

Can you please compare something that runs on BEAM ( Elixir? ) vs golang 👉👈

Robert-txjw
Автор

It might seem that ruby is faster since it uses bindings to native code, but once you start adding logic and creating objects it will start getting slow dramatically (remember the rails case)

jalalle
Автор

I really love the thorough explanation of infra and application setups. This helps a lot with understanding the results in context. I am also positively surprised by the results, especially the second one with DB. While you could give node more threads for the pool, I think the more concerning aspect is the single core. At work we learned that you must give node more than 1 core on k8s, otherwise the cluster will throttle it, and the reason being that node does have more than 1 thread running, it's not just the event loop alone there. While this then can give node a better edge in the game, you do pay the price with more resource usage again … there is no free lunch, not even for node.

asaaki
Автор

iodine is fast, but it's have deceptive performance, when you add extra layers of abstraction it's became significantly slower, for instance adding logging can cost you 2x of performance, it's still good though

codeline
Автор

thx for your hard work! this video is a fairer comparison between languages, and you have a point with the wrappers. waiting for the next one :)

Luisintosh
Автор

@AntonPutra If you've set a CPU limit to 1000m, why k8s starts to throttle a node.js instance at 40% CPU usage (presented on the chart as a usage/pod)?

szadron
Автор

seems like ruby is close to bun. good to know

Gaijin
Автор

For ruby lovers, now let’s start development without rails:)
This comprasion is meaningless for production.

Great video btw❤

PanicAtProduction
Автор

This is an awesome series! Keep up the good work. I would love to see how Java Ring and Clojure compare to Node.

dorogans
Автор

Hope to see comparison of async/concurrent programming across modern languages
- PHP: Fibers
- Python: asyncio
- Node.js: async/await
- Go: goroutines
- Rust: async/await

whchi
Автор

Please compare Loco (rails on rust) vs Rust Axum vs Bun Hono.

amaraag