Why PHP (script) serves more requests than CGI (compiled)?
Posted
by
Lucas Batistussi
on Stack Overflow
See other posts from Stack Overflow
or by Lucas Batistussi
Published on 2012-06-10T22:31:06Z
Indexed on
2012/06/10
22:40 UTC
Read the original article
Hit count: 182
I developed the following CGI script and run on Apache 2 (http://localhost/test.chtml). I did same script in PHP (http://localhost/verifica.php). Later I performed Apache benchmark using Apache Benchmark tool. The results are showed in images.
include
#include <stdlib.h>
int main(void)
{
printf("%s%c%c\n",
"Content-Type:text/html;charset=iso-8859-1",13,10);
printf("<TITLE>Multiplication results</TITLE>\n");
printf("<H3>Multiplication results</H3>\n");
return 0;
}
Someone can explain me why PHP serves more requests than CGI script?
© Stack Overflow or respective owner