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,8c8550b9f2cf7d40 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-10 12:36:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!news.powertech.no!newsfeed1.e.nsc.no!nsc.no!nextra.com!news2.e.nsc.no.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Is ther any sense in *= and matrices? References: From: Ole Kristensen Organization: Linux Private Site User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 148.122.128.188 X-Complaints-To: news-abuse@telenor.net NNTP-Posting-Date: Tue, 10 Jun 2003 21:36:12 MEST X-Trace: news2.ulv.nextra.no 1055273772 148.122.128.188 Date: 10 Jun 2003 21:37:21 +0200 Xref: archiver1.google.com comp.lang.ada:38930 Date: 2003-06-10T21:37:21+02:00 List-Id: tmoran@acm.org writes: > To summarize some of the benchmarks of A=A+B vs A+=B, 3x3 matrices, 10**7 iterations > A=A+B A+=B ratio > 55 19 2.9 Russ's special code on Sunblade, slightly faster than > an 866MHz Pentium III according to > http://www.phys.ocean.dal.ca/~kelley/linux/benchmark/benchmark_POM.html > 4.4 3.3 1.3 MSVC++5.0 simple code on Tom's 866MHz Pentium III > 1.4 0.8 1.6 Gnat 3.15p on Tom's 866MHz Pentium III > 1.1 0.7 1.6 g++.5.8 (GCC) 3.2.2 using C templates on Hyman's "Sun workstation", speed unspecified > 0.45 0.18 2.5 Ole-Hjalmar's machine ? gcc Ada or C the same? Your C++ code was compiled with g++ 3.2 under Cygwin, but I did not set any flags to tell the compiler that my CPU is a Pentium4, so it may not be optimal. The machine is a 1.8GHz Pentium 4. Ole-Hj. Kristensen