macruby 0.6 is kinda slow :-(
So I have this ruby script that reads in a bunch of csv files and creates objects of different classs using configuration info extracted from the first couple of lines in each csv file.
My results showed ruby 1.9.1 to be 2.425 times faster than macruby. When I used Cocoa classes such as NSDate in place of ruby’s Parsedate, macruby improved a bit and I ended up with a ratio of 2.212. I was pleasantly surprised by the performance of jruby though. Spinning up the JVM didn’t seem to have much of a negative impact.
I’ll have to profile the script to determine where macruby is choking.
- ruby19 => 47 secs
- jruby => 50 secs
- ruby18 => 80 secs
- macruby 0.6 w/ NS classes => 104 secs
- macruby 0.6 => 114 secs
Leave a comment
| Trackback

