ID: 24362 Comment by: neon at neon-line dot net Reported By: grandadmirale at yahoo dot com Status: Open Bug Type: Performance problem Operating System: Linux PHP Version: 4.3.2 New Comment:
Took: 0.010692954063416 Not a bug, check if you server is under heavy load etc.. Previous Comments: ------------------------------------------------------------------------ [2003-06-27 20:49:03] grandadmirale at yahoo dot com I can't, I don't run the server, but I've tried it on three seperate servers so far and all have the same result. Two are companies offering hosting, and another is a private server.. they should have correct configurations in their php.ini which leads me to believe that there is some unexpected slowdown when the buffer is increased. ------------------------------------------------------------------------ [2003-06-27 19:09:26] [EMAIL PROTECTED] Took: 0.066812992095947 Nothing wrong here, must be something wrong in your configuration, try copying the php.ini-dist file from the distribution over your php.ini. ------------------------------------------------------------------------ [2003-06-27 12:39:14] grandadmirale at yahoo dot com Description: ------------ When using large ammounts of html (printing all at the same time or not) there is a major slowdown while php increases the buffer to allow for more html to be outputted. This is not a bug specific to my software as you can see in example, it should NOT take 1 second to execute phpinfo() when my entire script can (when not using large ammounts of html) execute in 0.05 seconds... if it hits those large ammounts though, the buffer goes up as well as the time, sometimes all the way up to 1 or 2 seconds which is rediculous. IF output_buffering is set high enough in php.ini it runs perfectly fine in the time it should, but since this is not changeable via script it becomes a major problem for scripts that need to output large ammounts of data jumping to multiple seconds of execution time when it should only be a portion of a second. Reproduce code: --------------- <?php function getmicrotime() { $time = explode(' ',microtime()); return ((float)$time[0] + (float)$time[1]); } $timeStart = getmicrotime(); phpinfo(); print (getmicrotime() - $timeStart); ?> Expected result: ---------------- It to execute in much under 1 second. Actual result: -------------- It executes in anywhere from 0.8 seconds to over 1 second. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24362&edit=1