Ocaml Back to the Win32 Shootout
Back to dada's perl lab

[The Original Shootout]   [NEWS]   [FAQ]   [Methodology]   [Platform Details]   [Acknowledgements]   [Scorecard]  

About this language

For this language I have installed Microsoft Macro Assembler (MASM) version 6.11. This is not a free compiler (apparently you have to buy Visual Studio to have MASM), but since the C compiler used by Ocaml is Visual C++... :-)

Ocaml
Tested VersionThe Objective Caml compiler, version 3.06
Home Pagehttp://www.ocaml.org/
Downloadhttp://www.ocaml.org/ocaml/distrib.html
View All Source Code For Ocaml

(Ranks in Red in the table below are those which fall below the average Rank for this language over all tests.
The corresponding programs could possibly benefit from further optimization.)
Test Source Code Avg Rank: 5 Avg Rank: 11 Avg Rank: 15 Log
CPU Rank Mem Rank LOC Rank
Ackermann's Function ackermann.ocaml 0.04 1 664 12 9 5 log
Array Access ary3.ocaml 0.07 6 704 11 16 20 log
Count Lines/Words/Chars wc.ocaml 0.44 2 652 12 28 27 log
Echo Client/Server echo.ocaml * * 62 11 log
Exception Mechanisms except.ocaml 0.05 1 780 11 15 4 log
Fibonacci Numbers fibo.ocaml 0.15 1 652 15 8 10 log
Hash (Associative Array) Access hash.ocaml 0.55 2 3480 4 24 32 log
Hashes, Part II hash2.ocaml 1.64 4 1532 6 22 20 log
Heapsort heapsort.ocaml 0.15 7 1404 10 52 18 log
Hello World hello.ocaml 1.24 4 628 14 1 4 log
List Operations lists.ocaml 0.15 5 1652 8 131 30 log
Matrix Multiplication matrix.ocaml 0.12 6 680 12 37 15 log
Method Calls methcall.ocaml 0.14 12 704 13 33 5 log
Nested Loops nestedloop.ocaml 0.17 13 656 16 11 4 log
Object Instantiation objinst.ocaml 0.60 8 832 9 25 3 log
Producer/Consumer Threads prodcons.ocaml F (F) * F (F) * 31 4 log
Random Number Generator random.ocaml 0.15 7 776 16 16 17 log
Regular Expression Matching regexmatch.ocaml F (F) * F (F) * 36 14 log
Reverse a File reversefile.ocaml 0.27 1 2676 5 26 30 log
Sieve of Erathostenes sieve.ocaml 0.41 10 660 13 23 25 log
Spell Checker spellcheck.ocaml 1.08 5 2196 3 8 5 log
Statistical Moments moments.ocaml 0.72 8 4488 17 59 18 log
String Concatenation strcat.ocaml 0.02 1 1172 12 9 16 log
Sum a Column of Integers sumcol.ocaml 0.94 8 772 14 3 3 log
Word Frequency Count wordfreq.ocaml 0.97 4 1456 9 33 17 log
*Test Implemented but not measured (timeout or error).


Back to the Win32 Shootout
Back to dada's perl lab
Send comments or suggestions to dada@perl.it