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=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!JUN8/iIzeA71QWaIWFKODA.user.gioia.aioe.org.POSTED!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: Not good for Ada endorsement Date: Thu, 8 Jul 2021 11:51:03 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <5a1cegtfm5ibqej3ldebpc4g99ujniqt9u@4ax.com> NNTP-Posting-Host: JUN8/iIzeA71QWaIWFKODA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: en-GB Xref: reader02.eternal-september.org comp.lang.ada:62354 List-Id: 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.