CGI based web applications written in C, will out perform PHP. Even though common assumption is other wise. I had been seeing this difference for long.
- On linux systems, process creation isn’t as costly as like in Windows.
- The start stop system keeps memory leaks at bay.
- No need to maintain your poll of FastCGI daemons and keep an eye on when it crashes.
Overall a CGI bases system might be 10% slower than FastCGI. But the gains it offers out weight this difference.
If rendering time difference between PHP and C is like 2 vs 0.2 sec. Difference between CGI vs FastCGI is 2ms vs 1ms only.
This blogging site is written in C running as CGI.