I forgot one more thing: you might want to try AOT compilation too, for even better results.
$ macrubyc test.rb -o test $ ./test Laurent On Sep 25, 2010, at 2:20 PM, Laurent Sansonetti wrote: > Bonjour Louis-Philippe :) > > That's a cool micro-benchmark. I'm not sure if recursive arithmetic > algorithms really represent the real world, but it's cool anyways. > > If you remove the startup times from the final number you should see better > results for MacRuby. But I agree that the current MacRuby startup time, which > is about 0.1s, is bad, and should be fixed (if you file a ticket that would > be great). > > I recommend to give it a try with MacRuby trunk (you can grab a nightly > build) and set up the VM_OPT_LEVEL environment variable to 3. > > $ VM_OPT_LEVEL=3 macruby test.rb > > You should get good results this way. This will enable optimized codegen and > primitives inlining. > > Laurent > > On Sep 24, 2010, at 5:06 AM, Louis-Philippe wrote: > >> Hi All, >> >> I had fun building this benchmark which involves MacRuby: >> http://www.untilnil.com/2010/09/recursivefibbench/ >> >> I think there might be some points of interest to MacRuby developers in >> there. >> >> L-P >> _______________________________________________ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel