Antony Dovgal wrote:
> I'm sure if won't see any difference if you run the bench a dozen of
> times, the results depend on current system status.
> 

I've just compiled both 5.2.0 and 5.2.1 on my low powered trash box (a
1GHz ViA EPIA) using:

./configure --disable-all --disable-cgi

No CFLAGS were set and the box runs Ubuntu Edgy.  My aim was a totally
different environment to test with.  GCC is version 4.1.2 (OS Default).

php-5.2.0/sapi/cli/php bench.php
simple             2.622
simplecall         2.935
simpleucall        4.277
simpleudcall       6.107
mandel             7.914
mandel2            9.700
ackermann(7)       6.233
ary(50000)         0.412
ary2(50000)        0.331
ary3(2000)         5.757
fibo(30)          13.147
hash1(50000)       0.641
hash2(500)         0.662
heapsort(20000)    2.153
matrix(20)         1.922
nestedloop(12)     4.542
sieve(30)          2.295
strcat(200000)     0.288
------------------------
Total             71.940

php-5.2.1/sapi/cli/php bench.php
simple             2.705
simplecall         3.045
simpleucall        4.483
simpleudcall       5.382
mandel             8.263
mandel2           10.415
ackermann(7)       6.453
ary(50000)         0.439
ary2(50000)        0.360
ary3(2000)         5.780
fibo(30)          14.413
hash1(50000)       0.685
hash2(500)         0.699
heapsort(20000)    2.221
matrix(20)         1.970
nestedloop(12)     4.678
sieve(30)          2.343
strcat(200000)     1.597
------------------------
Total             75.932

These results vary by +/- 1 second on this box, the thing I find most
interesting is the strcat test is slow in this as well.  I am guessing
the actually processing time is a lot slower on this box hence why my
tests show a minimal difference in time in this case.  My guess is it is
something to do with the memory handler but I have no time left to
gather any more evidence or delve into the source.

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