Oh no, another Euphoria vs. C comparison

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

--------------68FB5D9928E3F5517EC00273

Hello everyone,

I'm sorry for being late about this; I only read last week's messages
today. Anyway, after reading a message saying Euphoria is over 200 times
slower than C, I decided to compare their speeds using something closer
to real world programming than empty loops or any such thing.

I found an Euphoria implementation of a simple (?) algorithm somewhere
in my HD, modified it a bit and wrote a similar C program, which was
compiled with the Borland C++ compiler (version 5.2), using the
"Optimize for speed" option. The programs were run in my Pentium II-233,
running Win98.

So here are my results. The comparison does not consider many aspects of
the languages, but may give an idea of their relative speeds. I am not a
C expert, so maybe the C version could be made somewhat faster, but I
think it will not be a big difference.

The result: on average, the C version was about 6 times faster than the
Euphoria one.

I have included both versions, along with the program I used to
benchmark them. If you want to get better results, try to optimize both
the C and Euphoria versions, run them on different platforms, test
different C compilers (I tried using DJGPP and it was 5.3 times faster
then Euphoria) ...

Rob, would it be possible for you to compile the Euphoria version and
tell us how it compares to the others? I am curious!

Regards,
Davi Figueiredo
davitf at usa.net
--------------68FB5D9928E3F5517EC00273
 name="bench.zip"

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

Search



Quick Links

User menu

Not signed in.

Misc Menu