2 ms·
All the benchmarks I've seen put JRuby and Rubinius within a factor of 2x or so of 1.9.2 MRI, so you can't count on them to give you a big boost. But, like you
by cageface 15y ago
All the benchmarks I've seen put JRuby and Rubinius within a factor of 2x or so of 1.9.2 MRI, so you can't count on them to give you a big boost.
But, like you say, there's nothing wrong with using a lighter-weight language to explore. Although Python with numpy/scipy and Matlab/Octave are way ahead here.
- delinquentme 15y agoPython with numpy/scipy and Matlab/Octave are way ahead here ^^ is this the case in terms of speed? or are you saying ease of exploratory programming?
- cageface 15y agoI haven't actually tried this new Ruby library but numpy/scipy and even more so Matlab are widely used in the ML/AI community. You can find tons of sample code, books, blogs etc that use these tools so it's a lot easier to get started. Numpy is also pretty fast so you may actually get away with pushing your exploratory code into production depending on your scale. Also, the graphing capabilities of Numpy or Octave can be extremely helpful in exploring your data and figuring out what your code is doing.
- mitchty 15y agoTrue on Jruby/rubinius, its highly dependent on what the code does. I've seen 2x faster runs on rubinius over 1.9.2. And on the other end of the spectrum, I've seen some of my unit tests take over an hour. They take 10 minutes on 1.8.7 on a slow day and cache. And agree on the python bit, ruby may win for a web language/system administration bits, but python definitely has the leg up with support and use in the sciences.