Could one of you kind gentlemen/ladies/undecided please post some instructions as to what kind of tests to perform to try and figure out where issues with the site may be?
I run a variety of sites on different hosts - all MODx 2.0.7 and above - and experience quite alarmingly different speeds, for both manager and front-end (but mainly noticeable on front end). For example, I run a dev site and a live site (ie same templates, content, css - or should be) using the same core setup (MODx) on two servers (same hosting co):
[table][tr][td]Server 1[/td][td]Server 2[/td][/tr]
[tr][td]PHP 5.2.16[/td][td]PHP 5.2.14[/td][/tr]
[tr][td]MySQL 5.1.54[/td][td]MySQL 5.0.91[/td][/tr]
[tr][td]PDO driver 5.1.54[/td][td]PDO driver 4.1.22[/td][/tr]
[tr][td]Base 0.265[/td][td]Base 0.2749[/td][/tr]
[/table]
For my base test, I simply put this into an empty page (which may not prove anything, I’m not sure - I’ve also tried this with just the base template):
<div style="absolute;top:0;left:0;width:100%;background:#fff">
[^qt^] - Query Time - Shows how long MODx took talking to the database<br/>
[^q^] - Query Count -Shows how many database queries MODx made<br/>
[^p^] - Parse Time - Shows how long MODx took to parse the page<br/>
[^t^] - Total Time - Shows the total time taken to parse/ render the page<br/>
[^s^] - Source - Shows the source of page, whether is database or cache.
</div>
When tested ’raw’, the cached version is often slower than the database version, which I fail to understand at all. Anyway, moving on. I’ve put that same piece of code in the footer of other pages and a typical request for what should be an identical page might show:
Server 1 from database 3.5s, from cache 2s
Server 2 from database 16+s, from cache 5+s (or 12s and 7s)
The only other difference between the two is that Server 2 is operating in a multi-context scenario. Both contexts that are serving the speed-test page have about 200 published resources in them.
What should I be looking at, in order to find out where the speed problems are and how to improve the situation?