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,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-11 03:23:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!ngpeer.news.aol.com!newsfeed1!bredband!uio.no!nntp.newmedia.no!news.powertech.no!dax.net!juliett.dax.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X References: From: Ole-Hjalmar Kristensen Message-ID: <7v4r2w3od3.fsf@vlinux.voxelvision.no> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 11 Jun 2003 10:22:32 GMT NNTP-Posting-Host: 193.216.12.150 X-Complaints-To: abuse@tele2.no X-Trace: juliett.dax.net 1055326952 193.216.12.150 (Wed, 11 Jun 2003 12:22:32 MET DST) NNTP-Posting-Date: Wed, 11 Jun 2003 12:22:32 MET DST Organization: Tele2 Norway AS Public Access Xref: archiver1.google.com comp.lang.ada:38965 Date: 2003-06-11T10:22:32+00:00 List-Id: tmoran@acm.org writes: > > Returning to the original point, about the relative speed of + with > a (presumed) temporary vs +=, we seem to have a range of ratios > of 1.3 .. 2.9, with 1.6 being a commonly occurring value. After increasing the limit for inlining, the program runs slightly faster, with a ratio of 1.7. I had to increase to 10**9 iterations to get repeatable results. oleh@VOLGA /cygdrive/c/div $ g++ -O3 -finline-limit=1000 -funroll-loops -o hyman hyman.cpp oleh@VOLGA /cygdrive/c/div $ time hyman + 26 += 15 real 0m41.324s user 0m40.327s sys 0m0.110s -- Ole-Hj. Kristensen ****************************************************************************** * You cannot consistently believe this sentence. ******************************************************************************