} if (++$counter == $test || $test == null) { $mark = microtime(true); $rs = lmbDBAL::fetch('SELECT bar FROM foo', $conn); for ($i = 0; $i < 1000; $i++) { foreach ($rs as $record) { $bar = $record->get('bar'); } } echo "{$counter}) lmbDBAL :: fetch()(out of loop), getter: " . (microtime(true) - $mark) . "\n"; } class Foo extends lmbActiveRecord { protected $_db_table_name = 'foo'; } lmbActiveRecord::setDefaultDSN('sqlite://localhost/' . $db); if (++$counter == $test || $test == null) { $mark = microtime(true); for ($i = 0; $i < 1000; $i++) { $rs = lmbActiveRecord::find('Foo'); foreach ($rs as $obj) { $foo = $obj->get('bar'); } } echo "{$counter}) lmbActiveRecord fetching, getter: " . (microtime(true) - $mark) . "\n"; } if (++$counter == $test || $test == null) { $mark = microtime(true); for ($i = 0; $i < 1000; $i++) { $rs = lmbActiveRecord::find('Foo', array('proxy' => true)); foreach ($rs as $obj) {