note 46080 added to function.microtime
| From: | php-general at lists dot php dot net | Date: | Tue, 28 Sep 2004 18:45:13 +0000 |
| Subject: | note 46080 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77539@lists.php.net to get a copy of this message | ||
3. if you are measuring a loop, then you do not actually measure the runtime of one cycle. Some
caching may occur which means you will not get one cycle's runtime. For a short code, this can
eventually result in big differences. Use looping only if the code is long and comlicated.
4. your runtime will be highly affected by the load of the server, which may be effected by many
things - so, always run your runtime measuering multiple times, and, when comparing two methods, for
e.g., then measure their runtimes one after the other, so I mean do not use values from yesterday,
the circumstances may strongly affect your measuring.
Trapeer
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46080
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46080&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46080&report=yes
Search -- http://master.php.net/manage/user-notes.php