[limb-svn] r6393 - 3.x/trunk/limb/dbal/tests/bench

svn at limb-project.com svn at limb-project.com
Sun Oct 7 11:54:55 MSD 2007


Author: pachanga
Date: 2007-10-07 11:54:55 +0400 (Sun, 07 Oct 2007)
New Revision: 6393
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6393

Modified:
   3.x/trunk/limb/dbal/tests/bench/fetching.php
Log:
-- adding includes measuring into dbal bench

Modified: 3.x/trunk/limb/dbal/tests/bench/fetching.php
===================================================================
--- 3.x/trunk/limb/dbal/tests/bench/fetching.php	2007-10-07 07:11:35 UTC (rev 6392)
+++ 3.x/trunk/limb/dbal/tests/bench/fetching.php	2007-10-07 07:54:55 UTC (rev 6393)
@@ -1,9 +1,14 @@
 <?php
 
 set_include_path(dirname(__FILE__) . '/../../../../');
+
+$mark = microtime(true);
+
 require_once('limb/core/common.inc.php');
 require_once('limb/dbal/common.inc.php');
 
+echo "dbal common includes: " . (microtime(true) - $mark) . "\n";
+
 if($native_db = sqlite_open('/tmp/benchdb'))
 {
   sqlite_query($native_db, 'CREATE TABLE foo (bar varchar(10))');



More information about the limb-svn mailing list