On Tue, Jun 10, 2003 at 06:07:31PM +0000, Jonathan Sillito wrote:
> I am not satisfied with the time taken to make a call. I did some rough
> benchmarking and the parrot implementation makes us slower than python
> 2.2.1. The most expensive part of our call is the saveall/restoreall that
> wraps the invokecc. In some cases the caller can be more selective about
> what is saved, if no saveall/restoreall are used parrot calls are faster
> than python's. The PASM and python code I used to benchmark along with the
> times are below.
[...]

The python interpreter seems rather slow.  I get these numbers with the
Ocaml bytecode interpreter.

    mistral-jerome:/tmp > time python test.py
    python test.py  2,59s user 0,00s system 100% cpu 2,582 total
    mistral-jerome:/tmp > ocamlc -o tst test.ml; time ./tst
    ./tst  0,14s user 0,00s system 106% cpu 0,131 total
    mistral-jerome:/tmp > cat test.ml
    let foo () = () in
    for i = 1 to 1000000 do foo () done

-- Jerome

Reply via email to