Subject:
Re: [ruby-ffi] benchmarks?
From:
Wayne Meissner
Date:
12/11/09 3:58 PM
To:
ruby-ffi@googlegroups.com

A couple of the benchmarks included in ruby-ffi compare ruby-ffi
against DL and a pure ruby method call.

e.g. in the ruby-ffi tree, run:

rake bench:IrV   # single int arg
rake bench:IIIrV # three int args

you can change how many iterations are run by setting the ITER environment var
e.g.
ITER=5000000 rake bench:IrV   # run each test 5 million times


2009/12/12 rogerdpack <rogerpack2005@gmail.com>:
> Anybody have some ffi benchmarks [compared to normal ruby c code] they
> can point me to?
> Thanks.
> -r
>