4 ms·
Ruby is generally recognized as being twice as slow as Python Am I the only one who has never heard of this? I'd definitely be curious to see some relevant be
by mrduncan 18y ago
Ruby is generally recognized as being twice as slow as Python
Am I the only one who has never heard of this? I'd definitely be curious to see some relevant benchmarks if anyone has any.
- wheels 18y agoIt varies naturally per application. When I was doing a little prototyping before deciding to write the core of our ranking algorithm in C++ I took the tightest inner loop and compared C++, Java, Python, Ruby and Perl. For floating point numerics and lots of list traversal the results were: - C++ | baseline - Java | 2.5x baseline - Perl | 4.5x baseline - Python | 6x baseline - Ruby | 14x baseline As a result, we're using C++ where it really matters, Java where it kind of matters and Ruby where it doesn't. This was more than a year ago though, so any performance gains since then naturally aren't included.
- jshen 18y agoruby 1.8 is slower than python, but ruby 1.9 should be on par with it.