* ocaml draws with C in trivial benchmark
@ 2000-08-02 23:35 Julian Assange
2000-08-03 15:35 ` Alan Schmitt
0 siblings, 1 reply; 2+ messages in thread
From: Julian Assange @ 2000-08-02 23:35 UTC (permalink / raw)
To: caml-list; +Cc: proff
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%
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ocaml draws with C in trivial benchmark
2000-08-02 23:35 ocaml draws with C in trivial benchmark Julian Assange
@ 2000-08-03 15:35 ` Alan Schmitt
0 siblings, 0 replies; 2+ messages in thread
From: Alan Schmitt @ 2000-08-03 15:35 UTC (permalink / raw)
To: caml-list
Is it me, or is there something weird in this data:
> Total Run Time Percentage (slowest
> taken as 100%)
> Ocaml, native compiler 4.803 0.91%
> C solution (egcs) 4.855 0.9%
It takes less time, yet it's slower ...
Alan Schmitt
--
The hacker: someone who figured things out and made something cool happen.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-08-04 17:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-02 23:35 ocaml draws with C in trivial benchmark Julian Assange
2000-08-03 15:35 ` Alan Schmitt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox