POV-Ray : Newsgroups : povray.unix : Little benchmark... Server Time
1 Jun 2024 22:54:58 EDT (-0400)
  Little benchmark... (Message 3 to 12 of 12)  
<<< Previous 2 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: Little benchmark...
Date: 29 Sep 2006 19:45:06
Message: <451db001@news.povray.org>
S?awomir Szczyrba <cre### [at] ofthenight> wrote:
>  8: -O3 -march=pentium4 -msse2 -mfpmath=sse -malign-double  \
>     -minline-all-stringops -ffast-math -fomit-frame-pointer \
>     -funroll-loops -fexpensive-optimizations -foptimize-sibling-calls

  According to my own tests some of those options actually slow down
POV-Ray instead of speeding it up. Adding a new optimization option does
not always mean that the binary will be faster.

  My own experiments show that this combination gives the fastest binary,
at least in a pentium4:

-O3 -march=pentium4 -ffast-math -mfpmath=sse -msse2 -funroll-loops
  -ftsp-ordering

-- 
                                                          - Warp


Post a reply to this message

From: Sławomir Szczyrba
Subject: Re: Little benchmark...
Date: 2 Oct 2006 05:49:27
Message: <slrn.ei1o5g.71k.steev@hot.pl>
Houston, we got a Warp...

>   My own experiments show that this combination gives the fastest binary,
> at least in a pentium4:
>
> -O3 -march=pentium4 -ffast-math -mfpmath=sse -msse2 -funroll-loops
>   -ftsp-ordering
>

Well, my compiler doesn't know this option :)

[steev]/tmp# gcc -ftsp-ordering hello.c
cc1: error: unrecognized command line option "-ftsp-ordering"

[steev]/tmp# icc -ftsp-ordering hello.c
icc: Command line warning: ignoring unknown option '-ftsp-ordering'


-- 
  ________ 

 \__ \__ \_______________________________________________________________


Post a reply to this message

From: Nicolas Calimet
Subject: Re: Little benchmark...
Date: 2 Oct 2006 06:15:02
Message: <4520e6a6$1@news.povray.org>
> Well, my compiler doesn't know this option :)
> 
> [steev]/tmp# gcc -ftsp-ordering hello.c
> cc1: error: unrecognized command line option "-ftsp-ordering"

	That's because it's been removed in the latest gcc series (IIRC 3.4.x inclusive).

	- NC


Post a reply to this message

From: Warp
Subject: Re: Little benchmark...
Date: 2 Oct 2006 23:22:41
Message: <4521d781@news.povray.org>
Nicolas Calimet <pov### [at] freefr> wrote:
> > Well, my compiler doesn't know this option :)
> > 
> > [steev]/tmp# gcc -ftsp-ordering hello.c
> > cc1: error: unrecognized command line option "-ftsp-ordering"

>         That's because it's been removed in the latest gcc series (IIRC 3.4.x
inclusive).

  It doesn't matter anyways. It only gave a very minimal speedup.

-- 
                                                          - Warp


Post a reply to this message

From: Sławomir Szczyrba
Subject: Re: Little benchmark...
Date: 5 Oct 2006 06:47:05
Message: <slrn.ei9olj.h2q.steev@hot.pl>


Speed... kills... ;)
Well, '-unroll-loops' kills. Images. :)

'Benchmark' results + images + differences between images...
< http://shodan.selfip.net/~steev/pov/ >


-- 
  ________ 
_/ __/ __/
 \__ \__ \_______________________________________________________________


Post a reply to this message

From: Nicolas Calimet
Subject: Re: Little benchmark...
Date: 5 Oct 2006 08:12:20
Message: <4524f6a4@news.povray.org>
If I understand your results correctly, the left image is that produced
by the binary compiled with the specified options, the middle image is the
difference-image with a reference (presumably calculated with the official
binary for Linux?) and the right image is the inverted difference.  Correct?

> Well, '-unroll-loops' kills. Images. :)

	From you results it seems that it's actually -ffast-math that changes the
result of the top-left corner (your last test shows that -funroll-loops does
produce a correct image).  But what is really strange is your second result:
a distorted image is also produced with -march=i686 ???  Hard to believe...

	In any case, on an Intel Pentium 4 or higher processor, it is clear again
that one should use ICC to compile POV from sources.

	- NC


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Little benchmark...
Date: 5 Oct 2006 09:30:26
Message: <452508f2@news.povray.org>
S?awomir Szczyrba wrote:
> BOFH excuse 72: S?awomir Szczyrba did it
> 
> Speed... kills... ;)
> Well, '-unroll-loops' kills. Images. :)
> 
> 'Benchmark' results + images + differences between images...

It is perfectly expected that there are slight difference. The huge
difference is precision bug in your math library though. It should not occur
with a standard(s) conforming library.

	Thorsten


Post a reply to this message

From: Warp
Subject: Re: Little benchmark...
Date: 5 Oct 2006 10:31:19
Message: <45251736@news.povray.org>
S?awomir Szczyrba <cre### [at] ofthenight> wrote:
> 'Benchmark' results + images + differences between images...
> < http://shodan.selfip.net/~steev/pov/ >

  I think the base image is wrong.

  I just tried benchmark.pov in my system, with povray compiled with
-O3 -march=pentium4 -ffast-math -mfpmath=sse -msse2 -funroll-loops
and it rendered correctly.
  There must be something odd with either your version of gcc or your
system libraries or something.

-- 
                                                          - Warp


Post a reply to this message

From: Sławomir Szczyrba
Subject: Re: Little benchmark...
Date: 5 Oct 2006 11:09:26
Message: <slrn.eia81j.94m.steev@hot.pl>
Welcome to the real world, eh Nicolas Calimet ?
> 	If I understand your results correctly, the left image is that produced
> by the binary compiled with the specified options, the middle image is the
> difference-image with a reference (presumably calculated with the official
> binary for Linux?) and the right image is the inverted difference.  Correct?
>
Calculated with binary created from source tarball.
No extra options, just autoconf guess...

> 	- NC

Slawek
-- 
  ________ 
_/ __/ __/ 
 \__ \__ \_______________________________________________________________


Post a reply to this message

From: Sławomir Szczyrba
Subject: Re: Little benchmark...
Date: 5 Oct 2006 11:20:29
Message: <slrn.eia8ma.94m.steev@hot.pl>


>   I just tried benchmark.pov in my system, with povray compiled with
> -O3 -march=pentium4 -ffast-math -mfpmath=sse -msse2 -funroll-loops
> and it rendered correctly.
>
I'll check it again, then.

>   There must be something odd with either your version of gcc or your
> system libraries or something.
>
Everything's OOTB, except kernel.
Hm, why not. Next test:
Fedora's kernel vs. my own one... :)

Slawek
-- 
  ________ 
_/ __/ __/ 
 \__ \__ \_______________________________________________________________


Post a reply to this message

<<< Previous 2 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.