httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "howard chen" <howac...@gmail.com>
Subject [users@httpd] Server Side Include (SSI) is slower than PHP ?
Date Mon, 18 Feb 2008 07:49:09 GMT
Hello,


I am running  Apache/2.2.6 on Windows XP, testing on a very simple
include testes, e.g.

SSI
===

<!--#include virtual="modules/1.html" -->
<!--#include virtual="modules/2.html" -->
<!--#include virtual="modules/3.html" -->
<!--#include virtual="modules/4.html" -->
<!--#include virtual="modules/5.html" -->


PHP
===

<?php

include("./modules/1.html");
include("./modules/2.html");
include("./modules/3.html");
include("./modules/4.html");
include("./modules/5.html");

?>

I was surprised that PHP is faster, i.e.

ab -n 2000 -c 10  http://localhost/benchmark.php => 99 reqs/sec
ab -n 2000 -c 10  http://localhost/benchmark.shtml => 61 reqs/sec

my PHP version is 5.2.5, and even don't have any code cache libraries
(e.g. APC/eA) installed.

Is it normal?

Howard

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message