From: lisachenko dot it at gmail dot com Operating system: Windows 7 x64 PHP version: 5.5.0alpha2 Package: Performance problem Bug Type: Bug Bug description:Slow method invocation for PHP5.5.0 with Development Server
Description: ------------ I notice, that speed of method invocation for PHP5.5.0alpha3 is significantly slower than for PHP5.4 when running the script with internal Development Server. However, for CLI-mode PHP5.5.0 is faster than PHP5.4.10, as expected. To reproduce the issue, please start the development server and execute test script in the browser. Test script: --------------- class TestPerformance { public function speed() { $time = microtime(true); $this->nop(); echo 'Took ', sprintf("%0.3fms to call method", (microtime(true) - $time) * 1e3); } protected function nop() {} } $instance = new TestPerformance; $instance->speed(); Expected result: ---------------- Expecting that method invocation will take microseconds to finish: php-5.4.10-Win32-VC9-x86: Took 0.005ms to call method php-5.5.0alpha3-Win32-VC9-x86: Took 0.00Xms to call method Actual result: -------------- Method invocation for 5.5.0alpha3 took millisecond to finish: php-5.4.10-Win32-VC9-x86: Took 0.005ms to call method php-5.5.0alpha3-Win32-VC9-x86: Took 1.008ms to call method php-5.5.0alpha3-nts-Win32-VC9-x86: Took 1.000ms to call method -- Edit bug report at https://bugs.php.net/bug.php?id=64001&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64001&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64001&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64001&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64001&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64001&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64001&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64001&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64001&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64001&r=support Expected behavior: https://bugs.php.net/fix.php?id=64001&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64001&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64001&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64001&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64001&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64001&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64001&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64001&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64001&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64001&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64001&r=mysqlcfg