I noticed today and yesterday that running my site on local host is very slow. I highly doubt this is a code issue as when I put it up on my live site it went fast.
I have had a similar issue a few years back.
The problem was that DNS was failing to lookup something and it retried several times before timing out (15 second delay per try IIRC).
Try check for that with Wireshark.