发新话题
打印

[转载]Getting Rich with PHP 5

[转载]Getting Rich with PHP 5

信息来源:邪恶八进制信息安全团队(www.eviloctal.com


http://talks.php.net/show/oscon06

Rasmus Lerdorf在OSCON 2006精彩的演讲Getting Rich with PHP 5
给出了从17.2109 fetches/sec到1100.97 fetches/sec的优化方案,很值得一看。

优化前的测试数据:
[pre]1000 fetches, 5 max parallel, 6e+06 bytes, in 58.1026 seconds6000 mean bytes/connection17.2109 fetches/sec, 103266 bytes/secmsecs/connect: 0.403263 mean, 68.603 max, 0.194 minmsecs/first-response: 284.133 mean, 5410.13 max, 55.735 minHTTP response codes: code 200 — 1000[/pre]
优化后的测试数据:

[pre]15000 fetches, 5 max parallel, 9e+07 bytes, in 13.6243 seconds6000 mean bytes/connection1100.97 fetches/sec, 6.60585e+06 bytes/secmsecs/connect: 0.295239 mean, 17.802 max, 0.114 minmsecs/first-response: 3.61389 mean, 1097.1 max, 0.739 minHTTP response codes:code 200 — 15000[/pre]

TOP

TOP

发新话题