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


Groups > comp.programming.threads > #2823

Re: About Delphi and FreePascal

From Melzzzzz <mel@zzzzz.com>
Newsgroups comp.programming.threads
Subject Re: About Delphi and FreePascal
Date 2015-02-13 22:25 +0100
Organization albasani.net
Message-ID <20150213222558.4458e8eb@maxa-pc> (permalink)
References <mblllm$ijg$2@dont-email.me> <mblopd$vbh$1@speranza.aioe.org>

Show all headers | 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