caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe TROESTLER <Christophe.Troestler@umh.ac.be>
To: OCaml Mailing List <caml-list@inria.fr>
Subject: How to write efficient threaded programs on OCaml
Date: Wed, 08 Feb 2006 00:15:47 +0100 (CET)	[thread overview]
Message-ID: <20060208.001547.81488614.Christophe.Troestler@umh.ac.be> (raw)

Hi,

I was wondering if some among you would like to share some hints about
how to write efficient multithreaded applications in OCaml.  Indeed,
for example, the following concurrency test shows OCaml performing
quite poorly:
http://shootout.alioth.debian.org/debian/benchmark.php?test=chameneos&lang=all
A qprof profiling reveals that OCaml is spending 63-73% of its time on
the function caml_process_pending_signals and 13-18% on
pthread_cond_signal.  Is there a way to improve the performance of
this code ?

Now maybe this is not to be considered like a good analogous of a
possible "real life" application.  Hence my question: what do people
do to get decent performance in these cases?

Cheers,
ChriS


             reply	other threads:[~2006-02-07 23:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-07 23:15 Christophe TROESTLER [this message]
2006-02-08  8:21 ` [Caml-list] " Erik de Castro Lopo
2006-02-08 14:38   ` Christophe TROESTLER
2006-02-08 15:17     ` Xavier Leroy
2006-02-08 16:58       ` Matthieu Dubuget
2006-02-08 22:13       ` Christophe TROESTLER
2006-02-09 17:39         ` Alessandro Baretta
2006-02-09 22:26           ` Matthew Hannigan
2006-02-13 10:25 ` Florian Weimer
2006-02-16 18:11   ` Christophe TROESTLER

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=20060208.001547.81488614.Christophe.Troestler@umh.ac.be \
    --to=christophe.troestler@umh.ac.be \
    --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).