From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 8350F7EE56 for ; Mon, 10 Dec 2012 01:44:16 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of berenger@riken.jp) identity=pra; client-ip=134.160.33.161; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of berenger@riken.jp designates 134.160.33.161 as permitted sender) identity=mailfrom; client-ip=134.160.33.161; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of postmaster@postman.riken.jp designates 134.160.33.161 as permitted sender) identity=helo; client-ip=134.160.33.161; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="postmaster@postman.riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AucBAD4vxVCGoCGhe2dsb2JhbABEvnMOAQEWEBYngh4BAQU4QBELGAkWDwkDAgECAUUTCAEBiA0MvnUEjD+BGoMpA4hdjSmFa41f X-IronPort-AV: E=Sophos;i="4.84,248,1355094000"; d="scan'208";a="165268450" Received: from postman1.riken.jp (HELO postman.riken.jp) ([134.160.33.161]) by mail4-smtp-sop.national.inria.fr with ESMTP; 10 Dec 2012 01:44:15 +0100 Received: from postman.riken.jp (postman1.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id 2FC262588002 for ; Mon, 10 Dec 2012 09:44:12 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id DDC6332A0047 for ; Mon, 10 Dec 2012 09:44:11 +0900 (JST) Message-ID: <50C5305B.1000507@riken.jp> Date: Mon, 10 Dec 2012 09:44:11 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: caml-list@inria.fr References: <50C15590.1010507@riken.jp> <20121207.090650.972729327013546587.Christophe.Troestler@umons.ac.be> <50C52776.2050800@riken.jp> <20121210.012739.1808775350475077852.Christophe.Troestler@umons.ac.be> In-Reply-To: <20121210.012739.1808775350475077852.Christophe.Troestler@umons.ac.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.12.10.3627 Subject: Re: [Caml-list] What is the fastest? Pattern matching or if then else On 12/10/2012 09:27 AM, Christophe TROESTLER wrote: > On Mon, 10 Dec 2012 09:06:14 +0900, Francois Berenger wrote: >> >> On 12/07/2012 05:06 PM, Christophe TROESTLER wrote: >>> On Fri, 7 Dec 2012 11:33:52 +0900, Francois Berenger wrote: >>>> >>>> Hello, >>>> >>>> I always wondered what is the fastest (at least for integers): >>> >>> In general, you can check these things yourself: >>> https://github.com/Chris00/ocaml-benchmark >> >> Christophe TROESTLER even did an OPAM package for benchmark: >> >> opam update >> opam install benchmark >> >> Thanks! > > Well, I have not done it, it seems we should rather thank Anil! Sorry!