It comes down to this: if you use vanilla CGI, your application will be slower than the same thing built in PHP. If you build it in mod_perl or FastCGI or SpeedyCGI, it will be faster than PHP. There are various benchmarks out there showing this, including one from Yahoo.