From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=BAYES_00,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Not good for Ada endorsement Date: Thu, 8 Jul 2021 13:12:29 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 8 Jul 2021 11:12:29 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="cb2457d9224309e070dc9e984a070cbf"; logging-data="13759"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18J0kiWbKa3LX87hZC94lz/hoetxzBFXU4=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Cancel-Lock: sha1:6hxNvdCapd0GhAIzidxbU1x1jys= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:62355 List-Id: On 7/8/21 12:51 PM, Luke A. Guest wrote: > > On 08/07/2021 11:42, Jeffrey R. Carter wrote: > > Here's the playlist > https://youtube.com/playlist?list=PLF2KJ6Gy3cZ5Er-1eF9fN1Hgw_xkoD9V1 the second > video is where he sets up Python, C# and C++. > >> Compiling the original code with >> >> gnatmake prime_sieve.adb >> >> gives 408 passes in 5 seconds. >> >> Making the changes listed above (I used Interfaces.Integer_32) and compiling with >> >> gnatmake -O3 prime_sieve.adb >> >> (to ensure that no checks fail) gives 2087 passes in 5 seconds, for a factor >> of 5.1. > > He shows the C++ jumping from 4645 (https://youtu.be/D3h62rgewZM?t=1246) to > 7,436 (https://youtu.be/D3h62rgewZM?t=1306) passes going from 32 to 64 bit. > > He also uses clang's -Ofast option to compile for speed over size. Going back to 64-bit integers gives 1999; with -gnatp, 2098 -- Jeff Carter "My legs are gray, my ears are gnarled, my eyes are old and bent." Monty Python's Life of Brian 81