From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA01036; Tue, 9 Jul 2002 21:15:37 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA01498 for ; Tue, 9 Jul 2002 21:15:36 +0200 (MET DST) Received: from dewberry.cc.columbia.edu (dewberry.cc.columbia.edu [128.59.59.68]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g69JFZr23318 for ; Tue, 9 Jul 2002 21:15:35 +0200 (MET DST) Received: from there (tw304h3.cpmc.columbia.edu [156.111.84.180]) by dewberry.cc.columbia.edu (8.9.3/8.9.3) with SMTP id PAA19338; Tue, 9 Jul 2002 15:15:33 -0400 (EDT) Message-Id: <200207091915.PAA19338@dewberry.cc.columbia.edu> Content-Type: text/plain; charset="iso-8859-1" From: Oleg To: Shannon --jj Behrens Subject: Re: [Caml-list] productivity improvement Date: Tue, 9 Jul 2002 15:16:34 -0400 X-Mailer: KMail [version 1.3.2] Cc: caml-list@inria.fr References: <20020709182022.69599.qmail@web10706.mail.yahoo.com> In-Reply-To: <20020709182022.69599.qmail@web10706.mail.yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tuesday 09 July 2002 02:20 pm, Shannon --jj Behrens wrote: > I wrote a bunch of programs comparing several > languages using two different algorithms ("Simple" and > "Modcount") for finding primes. Eventually, I hope to > throw these up on a Web page, but here is a summary of > the results: > > Simple: > C: > Source: 76 lines > Binary: 5833 bytes > Sample Run: 1.56 seconds > Cyclone: > Source: 63 lines > Binary: 127264 bytes > Sample Run: 1.63 seconds > Ocaml: > Source: 35 lines > Binary: 138726 bytes > Sample Run: 3.57 seconds > Python: > Source: 28 lines > Binary: 1629 bytes > Sample Run: 13.6 seconds > > ModCount: > C: > Source: 95 lines > Binary: 6020 bytes > Sample Run: 1.08 seconds > Cyclone: > Source: 83 lines > Binary: 127391 bytes > Sample Run: 1.35 seconds > Ocaml: > Source: 54 lines > Binary: 139091 bytes > Sample Run: 3.66 seconds > Python: > Source: 44 lines > Binary: 4054 bytes > Sample Run: 91.8 seconds > > Line counts do not include blank lines or comments. Hi I intensionally used "program size" and not LOC, because C/C++ programmers like to use short lines and very short lines (containing a single "{" or "}"). How do the program sizes compare in terms of the number of non-blank characters, for example? [1] Thanks Oleg [1] cat source | sed "s/ //" | wc -c ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners