From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,539c04254abf1b37 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-27 18:19:29 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: andreatta@mail.chem.sc.edu (Dan Andreatta) Newsgroups: comp.lang.ada Subject: Re: compiler benchmark comparisons (was: naval systems) Date: 27 Feb 2002 18:19:28 -0800 Organization: http://groups.google.com/ Message-ID: <338040f8.0202271819.373f733a@posting.google.com> References: <3C74E519.3F5349C4@baesystems.com> <3C7D37FD.F67F7067@despammed.com> <17247c3d.0202271553.68aaf78d@posting.google.com> NNTP-Posting-Host: 129.252.151.109 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1014862769 22938 127.0.0.1 (28 Feb 2002 02:19:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 28 Feb 2002 02:19:29 GMT Xref: archiver1.google.com comp.lang.ada:20544 Date: 2002-02-28T02:19:29+00:00 List-Id: OK, just to be into this benchmarck craze, I did a few tests w/ gcc and family. These are the results, using GCC 2.95 (mingw) and gnat 3.13p on a PII 666MHz w/ NT 4.0: GNAT 11.0 sec g77 4.0 gcc 1.4 g++ 3.3 obj-c 2.6 (writing a "cout" class) gcc 2.8 1.0 (gnat gcc) gpc 2.8 1.1 The programs are 1000 loops like: for i in 1..100 loop ada.text_io.put_line( Integer'Image(i) ); end loop; for i in 1..100 loop ada.text_io.put_line( Integer'Image(i) ); end loop; .... or for (int i=0; i<100; ++i) cout << i << endl; and so on... OK, GNAT is slower... and so? Anybody cares? Daniele Andreatta