3 ms·
> Rails is for CPU intensive operations WHILE NodeJS is for IO intensive operations. The whole comparison they did on this link is flawed. https://thebittheori
by truth_seeker 7y ago
> Rails is for CPU intensive operations WHILE NodeJS is for IO intensive operations.
The whole comparison they did on this link is flawed.
https://thebittheories.com/rails-vs-nodejs-the-comparison-feba9081251f https://thebittheories.com/rails-vs-nodejs-the-comparison-fe...
AFAIK, from v0.12 NodeJS was always faster than Ruby runtime. Although author might be referring to some c-extension hacks which Rails framework uses.
Ruby Vs NodeJS computation benchmark:
https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/node-yarv.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
> Ruby is multi-threaded in its operations in contrast to NodeJS which makes it much better for CPU intensive operations.
>NodeJS is single threaded and was designed for heavy I/O bound applications and is great in this domain. BUT when it comes to heavy computing requirements, NodeJS is terrible.
OMG people still don't understand concurrency and parallelism and how to reap out maximum throughput out of CPU bound an IO bound tasks.