[MacRuby-devel] Macruby in a Benchmark

Laurent Sansonetti lsansonetti at apple.com
Sat Sep 25 14:20:41 PDT 2010

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.


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 at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100925/8b1d47b8/attachment.html>

More information about the MacRuby-devel mailing list