![]() |
benchmarking request between index.php and other controllers - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: benchmarking request between index.php and other controllers (/showthread.php?tid=76664) |
benchmarking request between index.php and other controllers - mike433 - 06-07-2020 Hi in Ci3 can I place: PHP Code: $this->benchmark->mark('code_start'); in the "index.php" page, so I start my benchmark the moment the request gets in. Then at the target controller (in the function of interest) i will place the rest: PHP Code: $this->benchmark->mark('code_end'); Will that be accurate, do I need to load, pre-load? any ideas on this? Thx guys. RE: benchmarking request between index.php and other controllers - php_rocs - 06-07-2020 @mike433, Looks like you using it correctly. I can't think of anything else to add. |