caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Marcin 'Qrczak' Kowalczyk" <qrczak@knm.org.pl>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Benchmark: ref update vs argument passing
Date: Tue, 20 Nov 2001 15:37:03 +0000 (UTC)	[thread overview]
Message-ID: <slrn9vku4v.qjj.qrczak@qrnik.zagroda> (raw)
In-Reply-To: <9tdsbg$qjc$1@qrnik.zagroda>

Tue, 20 Nov 2001 16:11:27 +0100, Stefano Zacchiroli <zack@cs.unibo.it> pisze:

> Are these tests realistic or I am missing something?

IMHO they are too small to draw generic conclusions.

You can compile with 'ocamlopt -S' and see the assembler output.
This one looks yet better than use_arg (on Intel at least):

let use_refs' time =
  let rif = ref 0 in
  for i = 0 to time - 1 do rif := !rif + 1 done;
  !rif

-- 
 __("<  Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^
QRCZAK

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


       reply	other threads:[~2001-11-20 15:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9tdsbg$qjc$1@qrnik.zagroda>
2001-11-20 15:37 ` Marcin 'Qrczak' Kowalczyk [this message]
2001-11-20 22:35   ` malc
     [not found] <9teme6$bn2$1@qrnik.zagroda>
2001-11-20 23:42 ` Marcin 'Qrczak' Kowalczyk
2001-11-21  0:20   ` malc
2001-11-20 15:11 Stefano Zacchiroli

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=slrn9vku4v.qjj.qrczak@qrnik.zagroda \
    --to=qrczak@knm.org.pl \
    --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).