Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #2823

Re: About Delphi and FreePascal

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
From Melzzzzz <mel@zzzzz.com>
Newsgroups comp.programming.threads
Subject Re: About Delphi and FreePascal
Date Fri, 13 Feb 2015 22:25:58 +0100
Organization albasani.net
Lines 66
Message-ID <20150213222558.4458e8eb@maxa-pc> (permalink)
References <mblllm$ijg$2@dont-email.me> <mblopd$vbh$1@speranza.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net ie+GLgRFitFVG7caXtlo6c52bma45kTbU7y0qMMcnKmWw4GXj6kAszExhZb7JfZConfxhx/UgCnr68Q2T4cA0Q==
NNTP-Posting-Date Fri, 13 Feb 2015 21:25:58 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="hQWSOBNFjIbI7ZiFLEEZ2cvn8B60F+r0hea2SFmx3EK3ttSjHfOxAjj1HVIkdW32Eac1vMMs9FbvN5yzfEDjsLt+vDJR09yPJU3EeVy3VurGp9RMWIAuEVgmcgh4gakm"; mail-complaints-to="abuse@albasani.net"
X-Newsreader Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-unknown-linux-gnu)
Cancel-Lock sha1:LetUyiGhf62gh19xxEihTtNn6VQ=
Xref csiph.com comp.programming.threads:2823

Show key headers only | View raw


On Fri, 13 Feb 2015 22:02:38 +0100
Bonita Montero <Bonita.Montero@gmail.com> wrote:

> Ramine wrote:
> 
> > For Visual C++ 32 bit it gives:
>                  ^^
>   
> > And for FreePascal 64 bit (from the trunk that was optimized)
>                      ^^
> 
> Comparing 32 and 64 bit code ist comparing apples and pears.
> 64 bit code has more registers and therefore is faster.
> I'll bet 64 bit C++ code optimized the same way like pascal
> -code will outperform the pascal-code because of the better
> C++-compilers.
> And just ignoring, that C++ is the smarter language.

For reference:

[bmaxa@maxa-pc sci]$ java jnt.scimark2.commandline 

SciMark 2.0a

Composite Score: 2266.6183001230893
FFT (1024): 1389.279726779432
SOR (100x100):   1653.3291557147395
Monte Carlo : 877.5985388498531
Sparse matmult (N=1000, nz=5000): 1828.6989227937966
LU (100x100): 5584.185156477624

java.vendor: Oracle Corporation
java.version: 1.7.0_76
os.arch: amd64
os.name: Linux
os.version: 3.18.6-1-MANJARO

[bmaxa@maxa-pc sci]$ gcc -Wall -O3 -march=native  *.c -o scimark2 -lm
[bmaxa@maxa-pc sci]$ ./scimark2
**                                                              **
** SciMark2 Numeric Benchmark, see http://math.nist.gov/scimark **
** for details. (Results can be submitted to pozo@nist.gov)     **
**                                                              **
Using       2.00 seconds min time per kenel.
Composite Score:         2813.76
FFT             Mflops:  2292.31    (N=1024)
SOR             Mflops:  2446.00    (100 x 100)
MonteCarlo:     Mflops:   658.08
Sparse matmult  Mflops:  3028.21    (N=1000, nz=5000)
LU              Mflops:  5644.21    (M=100, N=100)
[bmaxa@maxa-pc sci]$ clang -Wall -O3 -march=native  *.c -o scimark2 -lm
[bmaxa@maxa-pc sci]$ ./scimark2
**                                                              **
** SciMark2 Numeric Benchmark, see http://math.nist.gov/scimark **
** for details. (Results can be submitted to pozo@nist.gov)     **
**                                                              **
Using       2.00 seconds min time per kenel.
Composite Score:         2743.54
FFT             Mflops:  1640.43    (N=1024)
SOR             Mflops:  1875.82    (100 x 100)
MonteCarlo:     Mflops:   629.14
Sparse matmult  Mflops:  2904.31    (N=1000, nz=5000)
LU              Mflops:  6668.00    (M=100, N=100)
[bmaxa@maxa-pc sci]$ 

Back to comp.programming.threads | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: About Delphi and FreePascal Bonita Montero <Bonita.Montero@gmail.com> - 2015-02-13 22:02 +0100
  Re: About Delphi and FreePascal Melzzzzz <mel@zzzzz.com> - 2015-02-13 22:25 +0100

csiph-web