Re: Bind vs Native
- Posted by _tom (admin) Dec 08, 2009
- 1059 views
Use /euphoria/demos/bench.ex to evaluate your program to get a true idea of the differences.
My test case
To make the Euphoria documentation I must run two programs; the first one is:
eui eudoc -a manual.af -o foo.txt
That just creates the first file I need, using the interpreter.
Use the bench.ex program to run a copy of the interpreter running your program:
eui bench eui -a manual.af -o foo.txt
This runs the interpreter and gives me an execution time.
Under Linux I got 5.14 s and under Windows I got 4.97 s.
I compiled eudoc using Linux and the time was now 3.78 s.
The creolehtml.ex program is the next step in creating documentation.
Under Linux using the interpreter it took 152.29 s while the compiled version took 152.79 s.
Under Windows the interpreter took 159.09 s.
I have thus shown that either Linux or Windows is faster. I have also shown that compiler is either faster or slower.
I did not predict correctly the results of my benchmarking!
I have also run benchmarks (the shootout benchmarks) against Python and Lua showing that Euphoria is 2 to over 10 times faster.
Until you take measurements, for specific cases, it is bad to generalize and make predictions about the performance of a program.
Your choice of interpreter, binding, compiling, may come down to which option you feel is more convenient.