Page Time: 0.4088s
Memory: 5.9162 MB (Peak: 6.7330 MB)
Queries (16, time: 0.0096s, 2.4%)
Forum list (home):
Page Time: 0.4417s
Memory: 5.4976 MB (Peak: 6.3275 MB)
Queries (21, time: 0.0067s, 1.5%)
Page Time: 0.4209s
Memory: 5.9423 MB (Peak: 6.6895 MB)
Queries (19, time: 0.0071s, 1.7%)
Memory usage is lower than vBulletin, and we have more than enough available CPU (running at like 2% utilization right now).
I like optimizing queries on plugins, but as you can see above, the queries make up only a very small percentage of time.
This leads me to "Included Files", which is 175 (vBulletin is only 56).
Could that be the culprit? And if so, how do I start troubleshooting?
The only weird pattern I've found is that it seems to be query related (even if the queries themselves are not slow). For example, if I keep refreshing Thread view, I will get much better results:
Thread view (after some refreshes)
Page Time: 0.0764s
Memory: 5.9208 MB (Peak: 6.6867 MB)
Queries (17, time: 0.0070s, 9.1%)
As you can see, number of queries dropped by 2 (from 19 to 17). Every time it's 17, the page time is below 0.1 seconds. Every time queries is 19, it shoots up to 0.3-0.5 seconds.
What I don't understand is, I've looked at the two queries that come up, and both of them is running faster than 0.001 seconds every time. So how come each time they run, page load time increases by at least 0.3 seconds?