Browse thread
Re: [Caml-list] Benchmark: ref update vs argument passing
- Marcin 'Qrczak' Kowalczyk
[
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: | Marcin 'Qrczak' Kowalczyk <qrczak@k...> |
| Subject: | Re: [Caml-list] Benchmark: ref update vs argument passing |
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