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!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Large number of tasks slows down my program (using debian) - any fix? Date: Sat, 07 Apr 2018 13:21:19 +0100 Organization: A noiseless patient Spider Message-ID: References: <1aa8f536-250d-4bef-9392-4d936f916e5f@googlegroups.com> <9377f941-31d0-4260-818a-8e189aac8c19@googlegroups.com> <10e74e0c-119a-4d86-8a12-c05101f744f1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="8bb9788a6a870a2675e9d2c0026e8f4f"; logging-data="17339"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/j8U4fNOpHuVOfoeqZaZe4OZdBjL9xLd4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:2TXnWcu0hhV+ooZVp0QguuoBUYI= sha1:GuY6S54Xt2gCaGfqD/NI+K81hp4= Xref: reader02.eternal-september.org comp.lang.ada:51379 Date: 2018-04-07T13:21:19+01:00 List-Id: Brad Moore writes: > Another data point is the entry I submitted to the Computer Language > Benchmark Games site for the Thread-Ring benchmark. It doesn't do so well on a Macbook Pro (2.9 GHz Intel Core i5)! it used about 147% cpu (i.e. the 2 physical cores) and took 8 minutes. Much the same results with -gnatp -O2 as with the switches reported on the website, not that I know whether they'd be appropriate for this machine. (I see that the source code comments say "Note that this version is compiled with full Ada checks enabled, and optimization turned off", which isn't the case as reported). This was with GCC 8.0.1 20180309, which required Create_Lightweight_Thread's body to be seen before use.