Euphoria 4 to 8 times slower than C? Excellent!

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

Euphoria always has being know (by me) to be from 250
to 100 times slower than compiled, optimised VC++.

I recently wrote a benchmark called mtsbenchy.exw for
Euphoria.
I then coded the same benchmark in C, and compiled
with LCCWin.
Asside from the fact the the benchmark crashes after a
while in C, it seems that Euphoria is only 4 to 8
times slower than C in this case.

These are my results:
EXW.EXE 2.2
-*-*-*-*-*-
Integer Evaluation Benchmark
672773 evaluations per second...

Floating Point Evaluation Benchmark
506306 evaluations per second...

Integer Division Benchmark
485902 Divisions per second...

Floating Point Division Benchmark
383571 Divisions per second...


LCCWin32
-*-*-*-*-
Integer Evaluation Benchmark
3406797 evaluations per second...

Floating Point Evaluation Benchmark
2195680 evaluations per second...

Integer Division Benchmark
3410563 Divisions per second...

Floating Point Division Benchmark
1572064 Divisions per second...



Allthough I am not satisfied untill Euphoria is only
1.5 times slower than C! :P

Mike The Spike
PS. I wrote the C version so that all code is executed
and not stripped by the optimizer. LCCWin does not do
that in the first place.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu