note 46080 deleted from function.microtime by tularis

From: Date: Sun, 22 Jun 2008 12:17:06 +0000
Subject: note 46080 deleted from function.microtime by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140715@lists.php.net to get a copy of this message
Note Submitter: ---- 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

« previous php.notes (#140715) next »