Hi _ck_ (and anyone else reading this),
I'm wondering how you've gotten your server down to around 0.100 sec to load the frontpage.
Let me tell you what I see in my benchmarks and what I've done on my sites to come down to 0.600 sec where I am right now:
- I have taken out the first query to make sure the db is there in bb_settings.php
- I have commented out a couple of checks for obsolete stuff, and also checks for what PHP version is run
- I'm using PEAR Cache_Lite for any anonymous user that comes through the door for practially everything on the frontpage
Still, my server tells me that 0.600 sec is spent on rendering the page. Looking at the data with your _benchmark plugin it shows that 500 of the 600 milliseconds are spent _before_ any of my code (the controller and the view) is rendered. Most of it is spent somewhere in the core logic of loading bbpress. By "my code" I mean the page controller and the theme view e.g. topic.php and my-templates/template1/topic.php.
I gather it can be either the @mysql_dbconnect that is slow (the instantiating of BBDB) due to my db server being slow to connect to but somehow I don't think so, or that it loads a huge amount of files via require and include_once and so on. Couldn't say for sure though.
Any ideas?
Very grateful for input.
edit: I forgot to ask, are you on VPS or dedicated server?