How to debug your code

From Joomla! Documentation

Revision as of 09:43, 6 July 2014 by Mbabker (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hi, does anyone know if there are any guidelines as to what speed and memory performance "SHOULD" be like at each of the event points? ie: onAfterInitialize etc?

Purplebeanie (talk) 17:14, 30 June 2014 (CDT)

So truthfully, there isn't a single right answer to this. It's going to be dependent on the variables that make each site unique; server stats (memory, PHP version, etc.), installed extensions (and what they are actually doing and what type of code they are using), and much more. One example of how much it can depend based on environmental variables is a project I'm working on right now on my local system running PHP 5.4 and requests take somewhere around 15-20 seconds to complete while the same site on the beta server running PHP 5.5 takes 2-3 seconds to do everything. Michael Babker (talk) 09:43, 6 July 2014 (CDT)