Tuesday 11 December 2007 1:46:09 pm
Hi Mariusz, There is definitely something wrong with your environment and it is not necessarily related to the Apache and PHP. eZ Publish 4.0 can be fast even on Windows Vista [1] which is still slower then Windows XP. I would start investigation from network related services such as Windows Firewall, Antivirus, 3rd party firewall if used, etc. Try disable such services and observe results. There is something that slows down template compilation process on your machine. [1] Results from Windows Vista Business with eZ Publish 4.0 and Website Interface 1.3 after clearing whole cache:
Timing points:Checkpoint Elapsed Rel. Elapsed Memory Rel. Memory
Script start 0.0000 sec 0.1407 sec 415.1797KB 382.4531KB
Module start 'content' 0.1407 sec 17.8924 sec 797.6328KB 3,176.5781KB
Module end 'content' 18.0331 sec 9.0243 sec 3,974.2109KB 1,858.6953KB
End 27.0574 sec 5,832.9063KB 0.0010KB
Total runtime: 29.2501 sec
Time accumulators: Accumulator Elapsed Percent Count Average
ini_load
Load cache 0.3014 sec 1.0281% 17 0.0177 sec
FindInputFiles 0.1428 sec 0.4870% 17 0.0084 sec
Parse 0.0797 sec 0.2720% 17 0.0047 sec
Save Cache 0.0478 sec 0.1631% 17 0.0028 sec
Mysql Total
Mysql_queries 0.5515 sec 1.8813% 152 0.0036 sec
Looping result 0.0071 sec 0.0242% 139 0.0001 sec
Template Total 28.9517 sec 98.8% 3 9.6506 sec
Template load 13.7292 sec 46.8289% 3 4.5764 sec
String conversion in template resource 0.0066 sec 0.0224% 111 0.0001 sec
Template parser: create text elements 0.0597 sec 0.2037% 28 0.0021 sec
Template parser: remove whitespace 0.0105 sec 0.0359% 28 0.0004 sec
Template parser: construct tree 0.2148 sec 0.7325% 28 0.0077 sec
Template load and register function 0.0078 sec 0.0267% 10 0.0008 sec
Template processing 15.2222 sec 51.9216% 3 5.0741 sec
override
Cache load 1.0134 sec 3.4566% 49 0.0207 sec
Sytem overhead
Fetch class attribute can translate value 0.0044 sec 0.0149% 11 0.0004 sec
Fetch class attribute name 0.0042 sec 0.0142% 18 0.0002 sec
XML
Image XML parsing 0.0172 sec 0.0588% 11 0.0016 sec
class_abstraction
Instantiating content class attribute 0.0009 sec 0.0029% 38 0.0000 sec
General
String conversion 0.0063 sec 0.0214% 160 0.0000 sec
INI string conversion 0.0063 sec 0.0215% 47 0.0001 sec
String conversion w/ mbstring 0.0031 sec 0.0107% 28 0.0001 sec
dbfile 0.0313 sec 0.1068% 96 0.0003 sec
Total script time: 29.3177 sec
Results with generated cache:
Timing points:Checkpoint Elapsed Rel. Elapsed Memory Rel. Memory
Script start 0.0000 sec 0.0638 sec 385.8516KB 402.3984KB
Module start 'content' 0.0638 sec 0.0316 sec 788.2500KB 244.5859KB
Module end 'content' 0.0954 sec 0.0579 sec 1,032.8359KB 371.0156KB
End 0.1534 sec 1,403.8516KB 0.3623KB
Total runtime: 0.1779 sec
Time accumulators: Accumulator Elapsed Percent Count Average
ini_load
Load cache 0.1096 sec 56.6416% 13 0.0084 sec
FindInputFiles 0.0940 sec 48.5782% 13 0.0072 sec
Mysql Total
Mysql_queries 0.0005 sec 0.2818% 1 0.0005 sec
Looping result 0.0000 sec 0.0118% 1 0.0000 sec
Template Total 0.0667 sec 34.5% 2 0.0333 sec
Template load 0.0383 sec 19.7878% 2 0.0191 sec
Template processing 0.0282 sec 14.5846% 2 0.0141 sec
override
Cache load 0.0306 sec 15.8088% 2 0.0153 sec
General
String conversion 0.0000 sec 0.0212% 2 0.0000 sec
dbfile 0.0023 sec 1.1659% 4 0.0006 sec
Total script time: 0.1934 sec
As you can see template compilation takes less then 30 sec, and pages with generated view cache are served very quick.
Dell Latitude D820:
CPU: Intel Core 2 Duo 2 Ghz
Memory: 2 GB HDD: 100 GB 7200 RPM SATA
Apache 2.0.61
PHP 5.2.5
eAccelerator 0.9.5.2 MySQL 5.0.45 I bet that it will be even faster on Windows XP.
Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog
|