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-08 13:52:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed!wn13feed!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc01.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Is ther any sense in *= and matrices? References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc01 1055105568 12.234.13.56 (Sun, 08 Jun 2003 20:52:48 GMT) NNTP-Posting-Date: Sun, 08 Jun 2003 20:52:48 GMT Organization: AT&T Broadband Date: Sun, 08 Jun 2003 20:52:48 GMT Xref: archiver1.google.com comp.lang.ada:38837 Date: 2003-06-08T20:52:48+00:00 List-Id: >Oh, really? I just did a test in C++ with 3x3 matrices. I added them >together 10,000,000 times using "+", then "+=". The "+=" version took >about 19 seconds, and the "+" version took about 55 seconds. That's Would you be so kind as to post your code, and what C++ compiler and what hardware you used? Your results seem quite different from other people's. My old 900MHz Windows 2K machine using MSVC++ 5.0 took 4.38 and 3.28 seconds, a factor of 1.33, and using Gnat 3.15p on the same machine took 1.38 and 0.85 seconds, a ratio of 1.6 Clearly, there's something substantially different between our compilers/hardware/code.