示例#1
0
 public function testArray()
 {
     $start = microtime(true);
     $paths = array(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'one', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'two');
     for ($i = 0; $i < 1000; $i++) {
         $conf = new MW_Config_Array($paths);
         $conf->get('test/db/host');
         $conf->get('test/db/username');
         $conf->get('test/db/password');
     }
     $stop = microtime(true);
     echo "\n    config array: " . ($stop - $start) * 1000 . " msec\n";
 }