From: jaspersl at xs4all dot nl Operating system: Debian Linux (sid) PHP version: 5CVS-2007-02-07 (CVS) PHP Bug Type: IMAP related Bug description: Performance drop when using --with-imap
Description: ------------ When compiling with --with-imap (implies --with-imap-ssl and --with-kerberos because of Debian c-client) in PHP5.2.1RC3 and up (including latest CVS snap) the Zend/bench.php takes 23 seconds to complete. If --with-imap --with-imap-ssl are omitted , the bench.php takes 13 seconds. Using --with-kerberos or not has no performance impact. Other PHP versions (5.1.6, 5.2.0) take also around 13 seconds to complete. The benchmark is executed like this: sapi/cli/php -n -f Zend/bech.php I can give strace/gdb output on request. Reproduce code: --------------- ./configure '--with-mysql=/usr' '--with-gettext' '--with-gd' '--with-zlib-dir=/usr' '--with-apxs2=/usr/bin/apxs2' --with-dom --with-jpeg-dir=/usr/lib --disable-ipv6 --with-xsl --with-tidy --with-ldap --with-mysqli --without-sqlite --disable-pdo --disable-xmlreader --disable-xmlwriter --disable-spl --enable-maintainer-zts --with-freetype-dir --with-kerberos --with-imap --with-imap-ssl Expected result: ---------------- I expect the benchmark to complete in around 13 seconds, just like with 5.2.0 simple 0.462 simplecall 0.704 simpleucall 1.061 simpleudcall 1.211 mandel 1.393 mandel2 1.675 ackermann(7) 1.137 ary(50000) 0.061 ary2(50000) 0.051 ary3(2000) 0.747 fibo(30) 2.909 hash1(50000) 0.129 hash2(500) 0.141 heapsort(20000) 0.393 matrix(20) 0.393 nestedloop(12) 0.646 sieve(30) 0.287 strcat(200000) 0.160 ------------------------ Total 13.560 Actual result: -------------- simple 0.496 simplecall 1.040 simpleucall 1.833 simpleudcall 2.025 mandel 2.202 mandel2 2.776 ackermann(7) 2.067 ary(50000) 0.103 ary2(50000) 0.087 ary3(2000) 1.038 fibo(30) 4.922 hash1(50000) 0.213 hash2(500) 0.234 heapsort(20000) 0.654 matrix(20) 0.532 nestedloop(12) 0.911 sieve(30) 0.529 strcat(200000) 0.219 ------------------------ Total 21.881 A significant drop in performance -- Edit bug report at http://bugs.php.net/?id=40384&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40384&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40384&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40384&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40384&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40384&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40384&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40384&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40384&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40384&r=support Expected behavior: http://bugs.php.net/fix.php?id=40384&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40384&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40384&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40384&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40384&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40384&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40384&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40384&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40384&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40384&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40384&r=mysqlcfg