ID:               14237
 User updated by:  alberty at neptunelabs dot com
 Reported By:      alberty at neptunelabs dot com
-Status:           Bogus
+Status:           Open
 Bug Type:         Performance problem
 Operating System: i686-pc-linux-gnu
 PHP Version:      4.1.0
 New Comment:

I've seen you have close this bug report with an absolute
strange argument.

A switching of two double values in an addition have no 
consequences for the sum.

There is no problem with the time between the tests.

Why do you don't test the example script and why do you
close this bug report without any questions, although many
people have also report this behavior?

Reopen, and please, don't touch any bug reports before you
check the consequences.


Previous Comments:
------------------------------------------------------------------------

[2003-01-04 11:37:14] [EMAIL PROTECTED]

 I modified the script a bit by adding var_dump(microtime())
around the function calls. The output :
With reference:
string(21) "0.58075200 1041701482"
string(21) "0.20217700 1041701490"
Without reference:
string(21) "0.20247500 1041701490"
string(21) "0.20739800 1041701490"

as everyone may see without reference is faster as it has to be
(according to some docs). I think that there is something wrong in the
way the script computes the time.
Ooops, I found it :
$tmp = explode(' ', microtime());
$measure['Start Reference']=(double)$tmp[0] + (double)$tmp[1];
the indexes are swapped must be
$measure['Start Reference']=(double)$tmp[1] + (double)$tmp[0];

Closing this.

------------------------------------------------------------------------

[2002-01-31 05:12:55] bs_php at infeer dot com

I did some benchmark tests on loops and so that also delever some
strange results. 

See it run at: http://phpxpath.sourceforge.net/benchmark/phpBench.php 
Code at: http://phpxpath.sourceforge.net/benchmark/phpBench.php.txt

------------------------------------------------------------------------

[2001-12-13 04:47:07] alberty at neptunelabs dot com

I think, this is an very annoying behavior of the zend engine and also
there are no warning or clue in the documentation.
Someone must change it.

------------------------------------------------------------------------

[2001-12-12 20:06:28] [EMAIL PROTECTED]

That's a known issue with the current Zend Engine.

We could move it to a ZE feature request, but will it change anything
soon? I doubt ...

------------------------------------------------------------------------

[2001-12-12 19:59:37] [EMAIL PROTECTED]

PHP Version updated to 4.1.0

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/14237

-- 
Edit this bug report at http://bugs.php.net/?id=14237&edit=1

Reply via email to