[limb-svn] r6387 - 3.x/trunk/limb/toolkit/tests/bench
svn at limb-project.com
svn at limb-project.com
Fri Oct 5 18:35:40 MSD 2007
Author: serega
Date: 2007-10-05 18:35:40 +0400 (Fri, 05 Oct 2007)
New Revision: 6387
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6387
Modified:
3.x/trunk/limb/toolkit/tests/bench/toolkit.php
Log:
-- a bit better bench for toolkit
Modified: 3.x/trunk/limb/toolkit/tests/bench/toolkit.php
===================================================================
--- 3.x/trunk/limb/toolkit/tests/bench/toolkit.php 2007-10-05 14:22:21 UTC (rev 6386)
+++ 3.x/trunk/limb/toolkit/tests/bench/toolkit.php 2007-10-05 14:35:40 UTC (rev 6387)
@@ -13,6 +13,7 @@
}
}
+/*---------------------------*/
$toolkit = lmbToolkit :: setup(new BenchTools());
$mark = microtime(true);
@@ -22,6 +23,7 @@
echo "tools method access: " . (microtime(true) - $mark) . "\n";
+/*---------------------------*/
$tools = new BenchTools();
$mark = microtime(true);
@@ -31,3 +33,11 @@
echo "regular method access: " . (microtime(true) - $mark) . "\n";
+/*---------------------------*/
+$mark = microtime(true);
+
+for($i=0;$i<1000;$i++)
+ lmbToolkit :: instance()->getFoo();
+
+echo "tools method access with lmbToolkit :: instance() : " . (microtime(true) - $mark) . "\n";
+
More information about the limb-svn
mailing list