Browse thread
Correct way of programming a CGI script
[
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: | David Teller <David.Teller@e...> |
| Subject: | Re: [Caml-list] Correct way of programming a CGI script |
Here, the obligatory reference to the Shootout: The two string manipulation benchmarks are http://shootout.alioth.debian.org/gp4/benchmark.php?test=regexdna&lang=all (Not quite as much string manipulation as Regexps, OCaml is among the best here, but Python is about 2x faster -- I've tried improving it with PCRE but the final result is not as fast as with Str) http://shootout.alioth.debian.org/gp4/benchmark.php?test=fasta&lang=all (Not quite as much string manipulation as outputting strings, OCaml is still among the best here, and Python is about 25x slower) Fwiw. Cheers, David On Tue, 2007-10-09 at 09:05 +1000, skaller wrote: > On Tue, 2007-10-09 at 08:21 +1000, Erik de Castro Lopo wrote: > > skaller wrote: > > > While I agree that yes, it is possible to write slow code in Ocaml > > (or any other language), I suspect that idiomatic Ocaml string handling > > compiled to a binary is just as fast if not faster than Java/Perl/Python/ > > Ruby/PHP/whatever. > > Fraid not. Python eats Ocaml alive. Python: