Re: Eu Interpreted

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek Parnell writes:
> So it looks like Lua's file operations are 4-5 times faster than Euphoria's.

Thanks Irv and Derek.
I think your latest I/O benchmark is much more reasonable
than Irv's previous one.

> Did you note that Euphoria's 'read' was 5 times longer than the 'write',
> whereas Lua is about the same.

Both Euphoria and Lua write out the file with one
call to a built-in function. Lua uses a call to a 
C routine to read in a whole file,
whereas get_bytes() executes 2 interpreted 
Euphoria statements *per byte* that's read in.
This explains why Euphoria's read is slower than 
its write and helps to explain why Euphoria was slower overall.

Once again we see that Lua can only win
on simple benchmarks where 99% of the time is
spent inside one or two of its built-in C routines.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu