> -----Original Message-----
> From: Andrew Hutchings [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 25, 2007 4:46 AM
> Subject: Re: [PHP-DEV] Performance problem in Windows between 
> 5.1 & 5.2
> 
> Try 5.2.0, I found it has no performance hit when compared to 5.1.6.
> 
> Regards
> Andrew

Hi,

Since I didn't get anwsers besides the ones from Andrew, I investigated a
little more. First of all, under Windows, I've executed the bench.php script
for every relevant PHP version [1]. Seems that the strcat issue with
PHP5.2.1 Andrew brought up a few months ago will be resolved in PHP5.2.2.

What I've noticed is that bench.php doesn't make any tests with OO
operations. So I've started a new script that tries to cover as much
scenarios as possible. So far, I've not found the performance problem that
started this thread (I've only found smaller perfomance in PHP5.2.2rc1 when
using foreach). With all the new PHP5 OOP frameworks this could be an issue.

One funny thing is that actually, without executing anything, class
definitions are taking more time in PHP5.2.x. The problem I'm facing is that
I'm trying to benchmark this, but I'm not being able because I can not find
the way to iterate this case enough times to get a significant number.
eval()'d code could be an option, but I don't know if the class definition
inside eval()'d code follows the same process. Is there a way to achieve
this? Is it possible class definitions are taking more time (twice) than
before?

Thanks in advance,
Mauro.

[1]
                  PHP5.1      PHP5.2.0    PHP5.2.1    PHP5.2.2rc1
simple            0.346       0.349       0.345       0.350
simplecall        0.671       0.685       0.660       0.660
simpleucall       1.009       0.905       0.895       0.918
simpleudcall      1.250       1.173       1.180       1.209
mandel            1.110       1.174       1.145       1.126
mandel2           1.323       1.303       1.376       1.375
ackermann(7)      1.836       1.467       1.325       1.488
ary(50000)        0.118       0.061       0.059       0.067
ary2(50000)       0.117       0.050       0.051       0.058
ary3(2000)        0.573       0.573       0.576       0.556
fibo(30)          3.878       3.448       3.920       4.229
hash1(50000)      0.148       0.114       0.116       0.123
hash2(500)        0.110       0.099       0.103       0.120
heapsort(20000)   0.386       0.351       0.355       0.344
matrix(20)        0.312       0.297       0.279       0.286
nestedloop(12)    0.600       0.639       0.615       0.608
sieve(30)         0.553       0.293       0.271       0.304
strcat(200000)    0.437       0.053       0.341       0.053
-----------------------------------------------------------------
Total             14.778      13.034      13.612      13.874

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to