Я нахожусь в процессе сравнительного анализа своего веб-сайта.
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_end');
}
}
Вот результаты:
Время загрузки базовых классов: 0,0076
Конструктор: 0,0007
Индекс: 0,0440
Время выполнения контроллера ( Главная/ Индекс ): 0,4467
Общее время выполнения: 0,4545`
Я понимаю следующее:
- Базовые классы времени загрузки (0,0076)
- Конструктор (0,0007)
- Индекс (0,0440)
Но откуда берется остальное время?