From: Charles Oliver Nutter Date: 2008-11-02T10:19:12+09:00 Subject: Re: [ANN] FFI 0.1.1 (Foreign Function Interface) for Ruby 1.8.6/7 and 1.9 Luc Heinrich wrote: > user system total real > ext 1.050000 0.320000 1.370000 ( 1.373800) > ffi 2.160000 0.660000 2.820000 ( 2.818966) > dl 3.500000 1.060000 4.560000 ( 4.552789) > > All this using MacPorts MRI 1.8.7-p72 under OS X 10.5.5. The observed > overhead is slightly over 2x for ffi, probably not a big deal unless ffi > calls are used in tight loops I guess. Seems like that pretty well seals the deal for ffi over dl, at the very least. I'm also glad to see FFI wasn't even that bad, especially considering it hasn't received any optimization. - Charlie