Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Julian Assange <proff@iq.org>
To: caml-list@inria.fr
Cc: proff@iq.org
Subject: ocaml draws with C in trivial benchmark
Date: 03 Aug 2000 09:35:37 +1000	[thread overview]
Message-ID: <wxhf938cdy.fsf@suburbia.net> (raw)


http://www.qss.cz/bench/ 

         The Task of the benchmark was to find all words in the text
         file, and count how often they occur in the text.

         One big text file was used for this purpose, made by
         concatenating all Linux HOWTOs on my computer. Output of ls -l
         follows:

         ls -l /tmp/all_HOWTOS
         -rw-rw-r--  1 frido    frido    6027809 Jan 20 20:16
         /tmp/all_HOWTOS

[..]

It's worth noting that this test, rather strangly, for both C and
ocaml, used a lexer to skip white-space.


                                     Total Run Time Percentage (slowest
                                                    taken as 100%)
         Perl                        12.797         2.43%
         Ocaml, interpreted          9.684          1.84%
         Ocaml, native compiler      4.803          0.91%
         Python, module Re           4:05.22        46.5%
         Python, no Re               32.649         6.18%
         Python, preread (10 MB)     20.764         3.93%
         Python, fastest             18.906         3.58%
         Python, Jeremy Hylton       19.776         3.75%
         ISE, own split_string,      3:53.11        44.1%
         finalized
         ISE, hash table + GOBO,     4:26.32        50.5%
         finalized
         ISE, binary search tree,    4:45.26        54%
         finalized
         ISE, binary search tree,    7:49.49        88.9%
         freezed
         SE, hash table, no_check    2:20.34        26.6%
         SE, hash table, boost       34.075         6.5%
         KEDSAL Data Structures
         ISE, finalized              3:32.33        40.2%
         SE                          1:24.20        16%
         PYLON Libs
         SE, no_check                2:04.88        23.7%
         SE, boost                   27.361         5.1%
         ISE, finalized              6:31.78        74.2%
         ISE, GOBO ds, freezed       8:47.68        100%
         ISE, GOBO ds, finalized     5:30.59        62.6%
         SE, GOBO ds                 -              -
         ISE, C data structures,     1:09.64        13.2%
         finalized
         ISE, STRING not used,       30.963         5.87%
         finalized
         C solution (egcs)           4.855          0.9%
         C solution (lccd)           5.257          1%



             reply	other threads:[~2000-08-03 13:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-02 23:35 Julian Assange [this message]
2000-08-03 15:35 ` Alan Schmitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wxhf938cdy.fsf@suburbia.net \
    --to=proff@iq.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox