Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail From: Kaz Kylheku Newsgroups: comp.programming.threads,comp.programming Subject: Re: About scimark2 ... Followup-To: comp.programming.threads Date: Fri, 6 Jun 2014 23:11:59 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 29 Message-ID: <20140606155957.393@kylheku.com> References: NNTP-Posting-Host: X+c6YNb3AaWMPA3YfA4opg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: slrn/pre1.0.0-18 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.programming.threads:2421 comp.programming:4504 On 2014-06-06, aminer wrote: > I have benchmarked Delphi and FreePascal against GCC C++ > and Microsoft C+ on scimark2, and i have found that without the GCC > -Ox optimization options the auto-vectorization will not be enabled so > Delphi and FreePascal and GCC C++ scored the same speed on scimark2, but > when you give -O1 or -O2, GCC C++ uses auto-vectorization and it scores > almost 2X times the speed of Freepascal or Delphi on scimark2 on x86. Without -O the GNU compilers do not optimize at all. The generated code is quite bad. If removing -O options brings the performance down to Delphi, and a mere -O1 can beat Delphi, that suggests that Delphi doesn't optimize, at least with regard to the program being tested. Or something else is wrong, which makes the programs not comparable. (That's always a problem when comparing programs written in different languages. They really have to have a very similar data and code organization for that to be valid as a compiler comparison.) Anyway, nobody in their right mind who is past the end of their puberty, or past the year 1992, whichever came first, uses Delphi. The last programmer I met who swore by Delphi was a 19 year old co-op student back in 1999, doing QA work. He said brilliant things like "Unicode is gay with all these space-wasting wide characters; everyone should just learn English and use ASCII". Was that you?