perl vs. Euphoria
On Thu, 31 Aug 2000 22:13:28 -0400, Robert Craig <rds at ATTCANADA.NET> wrote:
>If Euphoria were 40-60 times slower, such as Python or Perl,
>then I would understand people wanting to jam lots of stuff into
>the interpreter where it can be handled by C code.
>
>Regards,
> Rob Craig
> Rapid Deployment Software
> http://www.RapidEuphoria.com
I'm sorry, Rob. I can understand complaints about Python speed, I've seen
that elsewhere. However, it is my understanding that Perl does compile to a
highly optimized set of opcodes which are then executed. It executes from a
script without a compilation step that produces a separate executeable, but
it does run quite fast. Are there any benchmarks comparing execution speeds
between perl and Euphoria? I would be happy to do some comparisons. I have
both perl and Euphoria on both Linux and Windows. I don't usually play
around with benchmarks much. Is there a particular operation which you
believe will prove euphoria significantly faster?
It wouldn't be fair to compare features which simply show up the differences
of the languages. For instance, since Euphoria doesn't support regular
expressions, a benchmark which checks for performance of regular expression
processing would by definition be slanted in favor of perl. Similarly,
while perl can support arbitrarily complex structures, it doesn't have
sequences as a data type so benchmarks of routines which create random
sequences and then measure access times would be slanted towards Euphoria
(not to mention that it would be a lot of work to make a perl program which
could routinely handle arbitrarily nested arrays of references to arrays and
other data).
However, in areas such as file i/o, numeric calculation, perhaps direct
substring access of text strings, others? it should be possible to have some
reasonable comparisons. If you could supply some Euphoria routines which
you believe will perform better than equivilent perl code, I'd be glad to
try to write the equivilent perl code. I don't have the expertise with perl
that some people I've met have, but I do use it professionally and I think I
could put together a reasonable set of benchmark code.
I'm not trying to slam Euphoria here. I've registered for it and have been
having a lot of fun putting together some code at home using it, but I have
a hard time believing that it is 40 to 60 times faster than perl.
-J. Kenneth Riviere
|
Not Categorized, Please Help
|
|