#38812 [NEW]: array_key_exists is ~16x slower than 5.1.x
| From: | chad at herballure dot com | Date: | Wed, 13 Sep 2006 15:58:57 +0000 |
| Subject: | #38812 [NEW]: array_key_exists is ~16x slower than 5.1.x | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-102111@lists.php.net to get a copy of this message | ||
From: chad at herballure dot com
Operating system: Linux (SuSE 9.2)
PHP version: 5CVS-2006-09-13 (snap)
PHP Bug Type: Performance problem
Bug description: array_key_exists is ~16x slower than 5.1.x
Description:
------------
array_key_exists takes about 16 times longer in PHP 5.2-200609131430 than
it does in 5.1.[246].
Reproduce code:
---------------
http://www.sapphirepaw.org/ake_bug.txt
(depends on Benchmark_Iterate in PEAR)
Expected result:
----------------
The 5.1.x series produces numbers like:
ake_test:
Array
(
[0] => 0.406023979187
[1] => 0.285789966583
[2] => 0.236785173416
[3] => 0.22957110405
)
Actual result:
--------------
Yesterday's and todays 5.2 snapshots produce numbers like:
ake_test:
Array
(
[0] => 4.45166897774
[1] => 4.08239388466
[2] => 4.0640411377
[3] => 4.06054711342
)
--
Edit bug report at http://bugs.php.net/?id=38812&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38812&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38812&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38812&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38812&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38812&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38812&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38812&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38812&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38812&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38812&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38812&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38812&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38812&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38812&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38812&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38812&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38812&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38812&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38812&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38812&r=mysqlcfg