caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Benedikt Meurer <benedikt.meurer@googlemail.com>
To: caml-list@inria.fr
Subject: [Caml-list] Re: Towards a really native toplevel… ocamlnat w/o as/ld
Date: Wed, 14 Sep 2011 13:03:56 +0200	[thread overview]
Message-ID: <790744C1-45D3-4DD2-ABD6-C259D05F9096@googlemail.com> (raw)
In-Reply-To: <FB10DF2A-B3A1-45E2-9362-A8266F429672@googlemail.com>


On Sep 3, 2011, at 18:19 , Benedikt Meurer wrote:

> I'll push the i386 version once cleaned up and integrated with the approach implemented for the amd64 version now.

The i386 version is also fully functional now, and our current prototype is available from the ocamlnat-jit branch from my "ocaml-experimental" repository at:

https://github.com/bmeurer/ocaml-experimental/tree/ocamlnat-jit

> It should be noted that there's still some room left for optimizations (i.e. use short jumps whenever possible, etc.), but the results so far are already quite promising: The new ocamlnat beats both the old ocamlnat as well as the byte code toplevel in every benchmark I've tried. I'll prepare a detailed comparison when time permits.


I did a preliminary comparison today, results are available at:

http://ps.informatik.uni-siegen.de/~meurer/tmp/ocamlnat-benchmark-20110914.pdf

The results are given as speedup compared to the OCaml 3.12.1 byte code toplevel. "OCamlNat/jit" is ours, "OCamlNat/ext" is the ocamlnat thing that silently ships with OCaml 3.12.1, and "OCamlJIT2" is my previous byte code JITter. Time was measured as combined user+system time for the toplevel process plus all child processes.

As you can see, we achieved speedups of up to 100 times faster than the byte code toplevel (which is in part related to the fact that llvm-gcc is the default compiler with OS X Lion, and thereby disables the register assignment optimizations for the byte code interpreter).

greets,
Benedikt

      parent reply	other threads:[~2011-09-14 11:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-03 16:19 [Caml-list] " Benedikt Meurer
2011-09-03 16:24 ` [Caml-list] " Benedikt Meurer
2011-09-14 11:03 ` Benedikt Meurer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=790744C1-45D3-4DD2-ABD6-C259D05F9096@googlemail.com \
    --to=benedikt.meurer@googlemail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).