Re: Eu Interpreted
- Posted by Robert Craig <rds at RapidEuphoria.com> Aug 14, 2001
- 430 views
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