Compared with other high level languages, OCaml ranks the highest. PHP, Perl and Ruby are good programming languages but don’t scale in terms of execution efficiency. OCaml and its fast prototyping ability has a double advantage: short development cycle and quick execution.
The overall OCaml development/use cycle is highly efficient. It is as fast as Java, and even in some cases as C, for execution time. What’s more, OCaml wins the battle for the shortest development cycle.
During execution, the top class GC uses less memory than Ruby, Perl or PHP. A piece of software that can do the same thing while using less memory presents obvious advantages.
Last but not least, OCaml has the ability to run in bytecode and native versions. The bytecode version typically shows the same performance and portability as Java. The native version runs directly on a specific CPU and OS. In the native case, the code runs twice as fast as any other PHP/Perl/Ruby or Java code.