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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: GNAT vs Matlab - operation on multidimensional complex matrices Date: Tue, 24 Mar 2020 10:37:27 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <6c2c0e35-af07-4169-8be5-464ec7fd0fd5@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 24 Mar 2020 09:37:27 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="d27a9ff491bb13fd0e279a9012e4ab01"; logging-data="2271"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UkawNw5EDfXnbFPmFZvNu68d66k8rZMg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cancel-Lock: sha1:Q678oVKwjBXahYmn0tmK2vbw3yg= In-Reply-To: <6c2c0e35-af07-4169-8be5-464ec7fd0fd5@googlegroups.com> Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:58234 Date: 2020-03-24T10:37:27+01:00 List-Id: On 3/24/20 12:16 AM, darek wrote: > > In the case of Ada code, the complex operations are ~ 6 times slower that for the real numbers. With FSF GNAT 9.2.1 on Linux, compiled with -O2 -gnatn -fstack-check, on my machine (Intel Core i7-6700HQ 2.6 GHz) the complex time is about 1.14 times the real time. With -O3 -gnatpn, about 1.13 times. -- Jeff Carter "Now look, Col. Batguano, if that really is your name." Dr. Strangelove 31