Codeigniter benchmarking, where are these ms coming from?
Posted
by ropstah
on Stack Overflow
See other posts from Stack Overflow
or by ropstah
Published on 2010-04-08T23:08:14Z
Indexed on
2010/04/08
23:13 UTC
Read the original article
Hit count: 771
I'm in the process of benchmarking my website.
class Home extends Controller {
function Home()
{
parent::Controller();
$this->benchmark->mark('Constructor_start');
$this->output->enable_profiler(TRUE);
$this->load->library ('MasterPage');
$this->benchmark->mark('Constructor_end');
}
function index()
{
$this->benchmark->mark('Index_start');
$this->masterpage->setMasterPage('master/home');
$this->masterpage->addContent('home/index', 'page');
$this->masterpage->show();
$this->benchmark->mark('Index_start');
}
}
These are the results:
Loading Time Base Classes: 0.0076
Constructor: 0.0007
Index: 0.0440
Controller Execution Time ( Home/ Index ): 0.4467
Total Execution Time: 0.4545`
I understand the following:
- Loading Time Base Classes (0.0076)
- Constructor (0.0007)
- Index (0.0440)
But where is the rest of the time coming from?
© Stack Overflow or respective owner