[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Julian Assange <proff@i...> |
| Subject: | ocaml draws with C in trivial benchmark |
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%