Wed, 22 Sep 1999 14:26:03 +0400 (MSD), S.D.Mechveliani <[EMAIL PROTECTED]> pisze:
> So far, no clear progrm example appeared in this list to demonstrate
> Haskell's in-efficiency in comparison to other languages.
I have not done benchmarking myself yet, but in
<http://www.brookes.ac.uk/~p0071749/papers/bridging.ps.gz>
they describe an algorithm for text formatting.
| lines | chars | size(KB) | time(s) | memory(KB) |
----------+-------+-------+----------+---------+------------+
Haskell | 163 | 4640 | 410 | 45.2 | 4505 |
Modula-2 | 551 | 10005 | 74 | 18.6 | 356 |
C++ | 389 | 5832 | 328 | 3.9 | 368 |
It is not quite fair because in Modula-2 and C++ all data structures
were of fixed size, but...
--
__("< Marcin Kowalczyk * [EMAIL PROTECTED] http://kki.net.pl/qrczak/
\__/ GCS/M d- s+:-- a22 C+++>+++$ UL++>++++$ P+++ L++>++++$ E-
^^ W++ N+++ o? K? w(---) O? M- V? PS-- PE++ Y? PGP->+ t
QRCZAK 5? X- R tv-- b+>++ DI D- G+ e>++++ h! r--%>++ y-