If it's not a code problem (forget a $x++ in a while loop?) then I'd ask is your network config in good order between your client and your server? And host resolution working right?
Every time I find a performance issue such as this, and it's not a code problem/error, it's usually host resolution.
But then I've not tried RH 7.1 yet...