From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 263B9BC88 for ; Wed, 9 Feb 2005 16:55:19 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j19FtIui031798 for ; Wed, 9 Feb 2005 16:55:18 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA05740 for ; Wed, 9 Feb 2005 16:55:18 +0100 (MET) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j19FtG8o031789 for ; Wed, 9 Feb 2005 16:55:17 +0100 Received: from [192.168.1.200] (ppp212-197.lns2.syd3.internode.on.net [203.122.212.197]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id j19Ft2jQ041524; Thu, 10 Feb 2005 02:25:14 +1030 (CST) Subject: Re: [Caml-list] ackermann test From: skaller Reply-To: skaller@users.sourceforge.net To: "Marcin 'Qrczak' Kowalczyk" Cc: caml-list In-Reply-To: <87vf91kf4h.fsf@qrnik.zagroda> References: <1107921472.5022.410.camel@pelican.wigram> <877e9a170502082009591db0b4@mail.gmail.com> <1107922403.5022.426.camel@pelican.wigram> <87vf92qe28.fsf@qrnik.zagroda> <20050209111730.GB449@first.in-berlin.de> <1107956075.5022.593.camel@pelican.wigram> <87vf91kf4h.fsf@qrnik.zagroda> Content-Type: text/plain Message-Id: <1107964501.5022.624.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 10 Feb 2005 02:55:02 +1100 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 420A3266.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 420A3264.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ackermann:01 sourceforge:01 wrote:01 sourceforge:01 hacked:01 ocamlopt:01 speedup:01 ocamlopt:01 glebe:01 ...:98 061:98 writes:01 nsw:01 ack:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Thu, 2005-02-10 at 01:00, Marcin 'Qrczak' Kowalczyk wrote: > skaller writes: > > new C w/o old C new Felix old Felix HACKED Ocamlopt Ocamlb > > y=10 0.5 0.8 1.8 2.9 7 10 0.4 12 > > y=11 7.4 12.5 16 28 55 75 2 50 > > y=12 64 98 113 180 290 370 9 220 > > A further speedup in C: > > __attribute__((regparm(2))) > int ack(int x, int y) { > ... > } You are certainly not kidding! With that change: C Felix Ocamlopt Y=10 0.5 0.8 0.4 Y=11 2.1 9.3 2 Y=12 21.5 87 9 -- 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