Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Benchmarks! FPC vs Delphi vs C++

  1. #11

    Benchmarks! FPC vs Delphi vs C++

    someone have the sources of the C++ code?
    From brazil (:

    Pascal pownz!

  2. #12

    Benchmarks! FPC vs Delphi vs C++

    These tests are good because they helped me to localize and submit a bug of FPC's optimizer.
    If the bug will be fixed it makes sense to compile releases of my demos with FPC instead of Delphi.

  3. #13

    Benchmarks! FPC vs Delphi vs C++

    someone have the sources of the C++ code?
    Somewhere around the Russian forum I posted a link to.
    Something like this, if I'm not mistaken:

    Code:
    void build_fractal( int deep, float scale )
    {
      int dx, dy; 
      long color;
      float cx, cy, zx, zxt, zy; 
    
      cy = (height / 2) * scale; 
      for( dy = height - 1; dy >= 0; dy-- ) { 
        cy = cy - scale; 
      cx = (width / 2) * scale; 
        for( dx = width - 1; dx >= 0; dx-- ) { 
          color = 0; 
          // Calculate color 
          cx = cx - scale; 
          zx = cx; 
          zy = cy; 
          while&#40; zx * zx + zy * zy < 4 &#41; &#123; 
            zxt = zx * zx - zy * zy + cx; 
            zy = 2 * zx * zy + cy; 
            zx = zxt;
            color++; 
            if&#40; color > deep &#41; break; 
          &#125;
          pix&#91; dy &#93;&#91; dx &#93; = 4 * color; 
        &#125;
      &#125;
    &#125;

  4. #14

    Benchmarks! FPC vs Delphi vs C++

    Hi folks, my results(Intel Dual CPU 2180 2 GHz):

    FPC double: 7844
    FPC double SSE2: 4266
    FPC single: 3969
    FPC single SSE: 3703
    CG RAD Studio 2007 single: 4156
    CG RAD Studio 2007 double:5500

    new Delphi is not so bad ;-)

    If you want to try CGRS2007 EXEcs: http://www.speedyshare.com/969665624.html

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •