From:             claudio_heidel at hotmail dot com
Operating system: Windows & Linux
PHP version:      5.2.1
PHP Bug Type:     Performance problem
Bug description:  Performance Problem

Description:
------------
Hi, I found a performance issue, I run the follow test

http://cvs.php.net/viewvc.cgi/ZendEngine2/bench.php?view=markup

This is for PHP Version 5.1.4 over Windows XP.

System  Windows NT HOME 5.1 build 2600
Build Date      May 4 2006 10:30:29
Configure Command       cscript /nologo configure.js "--enable-snapshot-build"
"--with-gd=shared"
Server API      CGI/FastCGI
Virtual Directory Support       enabled
Configuration File (php.ini) Path       C:\WINDOWS\php.ini
PHP API         20041225
PHP Extension   20050922
Zend Extension  220051025
Debug Build     no
Thread Safety   enabled
Zend Memory Manager     enabled
IPv6 Support    enabled
Registered PHP Streams  php, file, http, ftp, compress.zlib
Registered Stream Socket Transports     tcp, udp
Registered Stream Filters       convert.iconv.*, string.rot13, string.toupper,
string.tolower, string.strip_tags, convert.*, consumed, zlib.*

simple             0.357
simplecall         0.525
simpleucall        0.936
simpleudcall       1.257
mandel             1.126
mandel2            1.809
ackermann(7)       1.864
ary(50000)         0.113
ary2(50000)        0.109
ary3(2000)         0.567
fibo(30)           4.136
hash1(50000)       0.154
hash2(500)         0.106
heapsort(20000)    0.374
matrix(20)         0.334
nestedloop(12)     0.591
sieve(30)          0.592
strcat(200000)     0.337
------------------------
Total             15.287


And this is for PHP Version 5.2.1

System  Linux anubis.dnsanubis.com 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11
22:57:02 EDT 2006 i686
Build Date      Mar 13 2007 07:32:32
Configure Command       './configure' '--prefix=/usr' '--with-xml'
'--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-exif'
'--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext'
'--with-iconv' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mhash'
'--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr'
'--enable-discard-path' '--with-pear' '--enable-sockets'
'--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr'
'--enable-gd-native-ttf' '--with-zlib'
Server API      CGI
Virtual Directory Support       disabled
Configuration File (php.ini) Path       /usr/local/Zend/etc/php.ini
PHP API         20041225
PHP Extension   20060613
Zend Extension  220060519
Debug Build     no
Thread Safety   disabled
Zend Memory Manager     enabled
IPv6 Support    enabled
Registered PHP Streams  php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports     tcp, udp, unix, udg
Registered Stream Filters       string.rot13, string.toupper, string.tolower,
string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*


simple             0.432
simplecall         0.676
simpleucall        1.479
simpleudcall       1.692
mandel             2.201
mandel2            2.875
ackermann(7)       2.049
ary(50000)         0.099
ary2(50000)        0.080
ary3(2000)         1.073
fibo(30)           3.657
hash1(50000)       0.182
hash2(500)         0.227
heapsort(20000)    0.580
matrix(20)         0.475
nestedloop(12)     0.738
sieve(30)          0.520
strcat(200000)     0.207
------------------------
Total             19.242

Expected result:
----------------
I would like a solution for the configuration of PHP 5.2.1 to take the
same performance like PHP 5.1.4 (over windows).



-- 
Edit bug report at http://bugs.php.net/?id=40939&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40939&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40939&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40939&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40939&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40939&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40939&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40939&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40939&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40939&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40939&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40939&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40939&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40939&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40939&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40939&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40939&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40939&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40939&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40939&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40939&r=mysqlcfg

Reply via email to