3 ms·
I ran a benchmark on a library i'm working on (fuzzy auto complete), and rubinius was the fastest (I didn't test 1.9). The code is pure ruby, it creates a dece
by jshen 16y ago
I ran a benchmark on a library i'm working on (fuzzy auto complete), and rubinius was the fastest (I didn't test 1.9).
The code is pure ruby, it creates a decent sized trie then walks it once to set data in each node (a sequential forward index, etc).
I'll release the code once my library is ready for public consumption, but the numbers were (in seconds):
rubinius
~ 4.85
jruby 1.5
~ 5.45
mri 1.8.7
~ 9.35
ree 1.8.7
~ 9.35
and Yes, I did a warm up.
- headius 16y agoI'd love to see your benchmark to understand why JRuby wasn't faster than that. I assume you ran with the --server flag to JRuby as well.