| |
Á¦ ¸ñ : php Æ©´×, ÃÖÀûÈ¿Í º¥Ä¡¸¶Å© »çÀÌÆ®
ÀÛ¼ºÀÚ : ÁÁÀºÁøÈ£(truefeel, http://coffeenix.net/ )
ÀÛ¼ºÀÏ : 2005.8.13(Åä)
php ¼º´É Çâ»óÀ» À§ÇÑ ÁÁÀº ÀڷḦ Á¦°øÇÏ´Â »çÀÌÆ®¸¦ Á¤¸®Çß´Ù.
¾×¼¿·¹ÀÌÅ͸¦ ÀÌ¿ë, ÇÁ·Î±×·¡¹Ö½Ã º¸´Ù ºü¸¥ ÇÔ¼ö¸¦ »ç¿ëÇϰųª ¼º´ÉÇâ»óÀ» À§ÇÑ ÄÚµù ±â¹ý,
±×¸®°í º¥Ä¡¸¶Å· °á°úµéÀ» Á¦°øÇÏ´Â »çÀÌÆ®µéÀÌ´Ù.
1. php ¾×¼¿·¹ÀÌÅÍ, ÀÎÄÚµù Åø
1) eAccelerator Ȩ
http://sourceforge.net/projects/eaccelerator/
http://eaccelerator.net/
Turck MMCacheÀÇ µÚ¸¦ ÀÕ´Â php ij½Ì ¹× ÀÎÄÚ´õÀÌ´Ù.
°³ÀÎÀûÀ¸·Î »ç¿ëÇÑ °á°ú 60%ÀÌ»óÀÇ ¼º´É Çâ»óÀ» °¡Á®¿Ô´Ù.
2) HOWTO: PHP eAccelerator on Ensim
http://forum.ev1servers.net/printthread.php?t=54479
* mirror : http://coffeenix.net/doc/php_tuning/PHP_eAccel/
Accelerating PHP with eAccelerator
http://linuxweblog.com/node/230
eAccelerator ¼³Ä¡ °úÁ¤À» ¼³¸íÇÑ´Ù.
4) Áö±ÝÀº °³¹ßÀÌ Áß´ÜµÈ ¾×¼¿·¹ÀÌÅÍ Turck MMCache for PHP
http://turck-mmcache.sourceforge.net/index_old.html
5) ionCube PHP Accelerator (º¸Åë ¾à¾î·Î PHPA¶ó°í ÇÑ´Ù.)
http://www.php-accelerator.co.uk/
°³¹ßÀÌ Áߴܵƴٰ¡ 2005.7¿ù »õ·Ó°Ô PHP 4.4.0¿ë¿¡ ¸Â´Â ¿¢¼¿·¹ÀÌÅ͸¦ ¹ßÇ¥Çß´Ù.
À§ »çÀÌÆ®¿¡¼ ¼º´É ºñ±³°á°úµµ ÇÔ²² º¼ ¼ö ÀÖ´Ù.
6) Lighttpd, fastcgi, php and eAccelerator
http://blogs.linux.ie/xeer/2005/03/16/lighttpd-fastcgi-php-and-eaccelerator/
2. php Æ©´×, ÃÖÀûÈ
1) PHP Benchmark ½ºÅ©¸³Æ®
http://phpxpath.sourceforge.net/benchmark/phpBench.php.txt
* mirror : http://coffeenix.net/doc/php_tuning/phpBench.php.txt
PHP Benchmark tests °á°ú ÆäÀÌÁöµé
- http://www.php.lt/benchmark/phpbench.php
- http://www.blueshoes.org/phpBench.php
php ÇÁ·Î±×·¡¹Ö¿¡¼ ¼º´É Çâ»óÀ» À§ÇÑ ÄÚµù ¹æ¹ýÀ» Á¦½ÃÇÏ´Â º¥Ä¡¸¶Å© ½ºÅ©¸³Æ®¿Í Å×½ºÆ® °á°úÀÌ´Ù.
Á÷Á¢ À§ÀÇ ¼Ò½º¸¦ ´Ù¿î·Îµå ¹Þ¾Æ¼ ½ÇÇà°á°ú¸¦ È®ÀÎÇØº¸±â ¹Ù¶õ´Ù.
2) php¿¡¼ Readfile vs include
http://raditha.com/wiki/Readfile_vs_include
file_get_contents, fpassthru, fgets, file, require_once, include, readfile ÇÔ¼öÀÇ
¼Óµµ¿Í ¸Þ¸ð¸®»ç¿ë·®À» ºñ±³Çß´Ù.

3) A HOWTO on Optimizing PHP
http://phplens.com/lens/php-book/optimizing-debugging-php.php
* mirror : http://coffeenix.net/doc/php_tuning/Optimizing-Debugging-php/optimizing-debugging-php.html
4) High Performance Practices (from PHP Magazine, 2004.2)
http://www.php-mag.net/itr/online_artikel/psecom,id,502,nodeid,114.html
5) Optimizing PHP and Oracle
http://www.oracle.com/technology/pub/articles/deployphp/lim_deployphp.html
3. º¥Ä¡¸¶Å© °á°ú
1) Faster PHP Benchmarks
http://programmin.prim8.net/archives/5-Faster-PHP-Benchmarks.html
Apache 2.0.x, php 4.3.10ȯ°æ¿¡¼ eAccelerator¸¦ »ç¿ëÇÒ ¶§¿Í ¾ÈÇÒ ¶§ÀÇ ¼º´Éºñ±³
°á°ú¸¦ Á¦°øÇÑ´Ù. (TPS±âÁØÀ¸·Î 2¹è ÀÌ»óÀÇ ¼º´É Çâ»ó °á°ú¸¦ º¸À̰í ÀÖ´Ù.)
Transactions Per Second (Higher is better):
2) PHP 5.1 Performance
http://www.sebastian-bergmann.de/blog/archives/504-PHP-5.1-Performance.html
php 4.3.11, 5.0.4, 5.1ÀÇ ¼º´ÉÀ» ºñ±³Çß´Ù.
PHP 5.1ÀÇ GOTO±â¹Ý executorÀÇ °æ¿ì 4.3.x, 5.0º¸´Ù 400% °¡±î¿î ¼º´É Çâ»óÀ» º¸À̰í ÀÖ´Ù.

3) benchmark¿ë script
http://cvs.php.net/co.php/ZendEngine2/bench.php
4. ÆÄÀÏ ÀÚ·á
1) Speeding up PHP applications (PTÀÚ·á, ¿µ¾î 30p)
http://derickrethans.nl/files/perf-hungary.pdf
2) Quebeck-Conf-Slides: Performance-Workshop (¿µ¾î 41p)
http://derickrethans.nl/files/performance-workshop.pdf
PHP Quebeck ¹ßÇ¥ÀÚ·á
Caching, Optimizing Database Use, Optimizing PHP Code, Tuning the Webserver, Reducing Bandwidth
|