Marco Maggi <[email protected]> writes: > "Abdulaziz Ghuloum" wrote: >>>On Jan 7, 2010, at 10:04 AM, Marco Maggi wrote: >>> >>> I guess that Ikarus itself is not to blame, rather it is >>> libffi which takes time. >> >> Can you explain how you came to that conclusion? > > It is a guess made up from the following: > > 3. Both Ypsilon and Mosh are faster than Ikarus in the > single-shot program case, but in the past I have run some > simple profiling of code timing execution after program > loading and initialisation; the result was that Ikarus > can be significantly faster. I gather that when > executing code Ikarus is probably faster, while when > loading and initialising the program it is probably > slower. > I can confirm that one -- when running single-shot programs that don't do much work, but have lots of (transitive) library dependencies, Ypsilon beats Ikarus by quite a bit, for example, the output of "doro --help", takes 2.1 seconds on Ikarus, while Ypsilon runs that in 0.8s. OTOH, I have on several occassions measured longer-running programs running on Ikarus outperforming Ypsilon by a factor of at least 2.
I have however not yet experienced this (quite extreme) FFI slowness yet, maybe because sbank (my main FFI-using body of code) creates callouts "on demand". Regards, Rotty -- Andreas Rottmann -- <http://rotty.yi.org/>
