3 ms·
Ruby is one of the slowest languages you can think of, while Javascript on V8 is only 2.3X slower than C++ (median). http://shootout.alioth.debian.org/u32/whic
by rorrr 14y ago
Ruby is one of the slowest languages you can think of, while Javascript on V8 is only 2.3X slower than C++ (median).
http://shootout.alioth.debian.org/u32/which-programs-are-fastest.php http://shootout.alioth.debian.org/u32/which-programs-are-fas...
What I'm really surprised is that they got such a huge gain. Most projects I've worked on are DB or I/O bound. Maybe they store everything in RAM.
- jamesaguilar 14y agoThey probably fixed query design issues at the same time as they moved implementations. It strikes me as hilariously unlikely that LinkedIn was CPU-bound.
- ikailan 14y agoIt was a huge gain because the original Rails servers were running on single threaded Mongrel and blocking on cross data center IO.