Am I misinterpreting your table when I think it's telling me that 85% of your time is OCaml overhead? If so, are the services that the runtime OCaml system is providing of sufficiently high value to justify that?
Is compiled OCaml known to be much, much faster than interpreted Perl? A couple years ago I tried to rig up something real quick because it was so easy in Perl, and that's when I discovered that Perl is less than a hundredth as fast as compiled C++. All that OCaml runtime stuff in your performance profile seems odd if it's really producing object code, and runtime reference tracking for GC is expensive. Taking a look at
Objective CAML Tutorial, my guess is that, yes, compiling produces object code, but most of the object code is just calls to runtime system routines. The performance claims no doubt hold up extremely well for Caml code like "let max a b = if a > b then a else b;;", but I have my doubts about anything requiring calls to the runtime system.
But it sounds like you're not really worried about performance. I guess something you said must have made me think you were, but if you're not worried about it then I'm certainly not.
--Percy