POV-Ray : Newsgroups : povray.beta-test : [std include] floats as vectors : Re: [std include] floats as vectors Server Time
2 Nov 2024 05:19:37 EDT (-0400)
  Re: [std include] floats as vectors  
From:
Date: 17 Jan 2002 13:05:52
Message: <j24e4ukk3r4gmrqugkpo51brq2tlg8kn0k@4ax.com>
On 17 Jan 2002 10:37:31 -0500, ingo <ing### [at] homenl> wrote:
> What version is faster?

If there is still somebody interested then I've compared:

script 1:
      0: #local X=1;
      1: #local Y=X+0*x;
      2: #local Y=X+0*x;
      .....
 114688: #local Y=X+0*x;

script 2:
      0: #local X=1;
      1: #local Y=X*<1,1,1>;
      2: #local Y=X*<1,1,1>;
      .....
 114688: #local Y=X*<1,1,1>;

Each one was started five times with +w1 +h1.
Average total CPU time used reported by NT version for first script was
5.178 s.
Average total CPU time used reported by NT version for second script was
8.790 s.

Done on PII 233 with 128 MB on NT 4 Sp 6

So first one is much faster. IMO becouse of smaller number of parsed tokens.

Good night (and morning for others).

ABX


Post a reply to this message

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