Re: Eu Interpreted

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

On Tuesday 14 August 2001 15:52, Derek Parnell wrote:
>
> Irv,
> just an idea, but why don't you see what difference this makes ...
>
> Use ...
>   else text &= line
>
> instead of ...
>   else text = append(text,line)

If is, indeed faster: 0.17 seconds, compared to Lua's 0.02.

I picked this comparison just at random, because it seemed 
simple to code. Some other benchmarks I have tried give Euphoria 
the edge. For example:

Factorial:1,000 repetitions of integers from 1 to 100:
Euphoria:  1.49 seconds
Lua:          4.10 seconds

However, all this proves is that Lua seems to be much more suited 
to text manipulation, while Euphoria is better at math. 

Another trial:
To read a 10,500 line text file (390,780 bytes) and write it to 5 new files, 
repeated 10 times, takes:
Euphoria:   49.20 seconds
Lua:            0.53 seconds ! 
(yes, I tested it several times. The files are there)

Looks like Lua is a better deal if you're heavily into file processing.
These tests were performed on Linux, DOS mileage may vary.
Lua, by the way, supposedly runs on DOS, Windows, Linux, OSX, Mac, 
OS-9, OS/2, BeOS,  PalmOS, and - ahem... Playstation II.

Regards,
Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu