Antony Dovgal wrote:
> I believe updating GCC to the latest version (4.1.2) might also help,
> GCC 4.1.x is known to be extremely picky in some cases.

I didn't feel like overhauling GCC just this minute so instead I used
GCC 3.4.6 that is also in this box with just the -O2 and -march=i386
flags and  and got the following results (I meant to compile 5.2.0
instead of 5.1.6 but they always give similar results for me anyway):

PHP 5.1.6
---------
simple             0.271
simplecall         0.456
simpleucall        0.726
simpleudcall       0.784
mandel             0.943
mandel2            1.191
ackermann(7)       0.784
ary(50000)         0.056
ary2(50000)        0.049
ary3(2000)         0.461
fibo(30)           1.856
hash1(50000)       0.091
hash2(500)         0.095
heapsort(20000)    0.282
matrix(20)         0.255
nestedloop(12)     0.404
sieve(30)          0.244
strcat(200000)     0.053
------------------------
Total              9.002

PHP 5.2.1
---------
simple             0.507
simplecall         0.945
simpleucall        1.493
simpleudcall       1.687
mandel             2.178
mandel2            2.950
ackermann(7)       1.939
ary(50000)         0.110
ary2(50000)        0.087
ary3(2000)         1.140
fibo(30)           4.265
hash1(50000)       0.220
hash2(500)         0.225
heapsort(20000)    0.591
matrix(20)         0.430
nestedloop(12)     0.786
sieve(30)          0.417
strcat(200000)     0.424
------------------------
Total             20.395

The fact that the strcat test is so much slower may help diagnose where
the delay is coming from, I am guessing at memory allocation.

Regards
Andrew
-- 
Andrew Hutchings - Linux Jedi - http://www.linuxjedi.co.uk/
A-Wing Internet Services - http://www.a-wing.co.uk/
Windows is the path to the darkside...Windows leads to Blue Screen.
Blue Screen leads to downtime. Downtime leads to suffering...I sense
much Windows in you.

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

Reply via email to