caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ackermann test
@ 2005-02-09  3:57 skaller
  2005-02-09  4:09 ` [Caml-list] " Michael Walter
  0 siblings, 1 reply; 9+ messages in thread
From: skaller @ 2005-02-09  3:57 UTC (permalink / raw)
  To: caml-list

Entirely for amusement, current timings for 
ackermanns function, ack(3,y):

     Felix Ocaml bytecode  Felix/opt     C -O3  Ocaml native code
---------------------------------------------------------
y=10 113        12             7          1.8          0.4
y=11  ?         50            55         16            2
y=12  ?        220           290        113            9

Times in seconds on 700MHz PIII. 

For y=12, my disk light went on occasionally 
(i.e the process was hitting VM), looks like the size of 
stack frames begins to dominate as y increases?

Be interesting to see comparison with ocaml bytecode/JIT.

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-02-09 16:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-09  3:57 ackermann test skaller
2005-02-09  4:09 ` [Caml-list] " Michael Walter
2005-02-09  4:13   ` skaller
2005-02-09  9:26     ` Marcin 'Qrczak' Kowalczyk
2005-02-09 11:17       ` Oliver Bandel
2005-02-09 13:34         ` skaller
2005-02-09 14:00           ` Marcin 'Qrczak' Kowalczyk
2005-02-09 15:55             ` skaller
2005-02-09 16:51               ` Jon Harrop

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).