Created
November 30, 2011 08:17
-
-
Save stamm/1408415 to your computer and use it in GitHub Desktop.
symfony vs yii
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
framework | rel | avg | 1 | 2 | 3 | 4 | 5 | |
------------------------ | -------- | -------- | -------- | -------- | -------- | -------- | -------- | |
baseline-php | 1.0000 | 2579.36 | 2594.56 | 2581.71 | 2587.63 | 2581.61 | 2551.30 | |
symfony-2.0.0alpha1 | 0.0878 | 226.37 | 226.44 | 227.65 | 226.11 | 225.54 | 226.09 | |
yii-1.1.1 | 0.0827 | 213.34 | 213.50 | 213.45 | 213.50 | 213.32 | 212.94 | |
yii-1.1.8 | 0.0738 | 190.29 | 190.04 | 190.29 | 190.11 | 190.10 | 190.93 | |
framework | rel | avg | 1 | 2 | 3 | 4 | 5 | |
------------------------ | -------- | -------- | -------- | -------- | -------- | -------- | -------- | |
baseline-php-1 | 1.0000 | 2487.45 | 2483.25 | 2482.68 | 2483.93 | 2468.31 | 2519.07 | |
yii-1.1.8 | 0.0776 | 192.98 | 192.84 | 193.27 | 192.43 | 193.58 | 192.78 | |
symfony-2.0.6 | 0.0226 | 56.27 | 56.15 | 56.40 | 56.33 | 56.29 | 56.20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream zagirov.name { | |
server unix:/run/php5-fpm_zagirov.name.sock; | |
} | |
server { | |
listen 80; | |
server_name zagirov.name; | |
server_tokens off; | |
server_name_in_redirect off; | |
error_log /var/www/zagirov.name/logs/nginx.error.log warn; | |
gzip off; | |
charset utf-8; | |
client_max_body_size 50m; | |
keepalive_timeout 0; | |
fastcgi_intercept_errors on; | |
root /var/www/zagirov.name/www; | |
index index.php index.html index.htm; | |
fastcgi_read_timeout 6000; | |
location /tests/symfony-2.0.0alpha1/web/index.php/ { | |
try_files $uri /tests/symfony-2.0.0alpha1/web/index.php; | |
} | |
location /tests/yii-1.1.1/hello/index.php/ { | |
try_files $uri /tests/yii-1.1.1/hello/index.php; | |
} | |
location /tests/yii-1.1.8/hello/index.php/ { | |
try_files $uri /tests/yii-1.1.8/hello/index.php; | |
} | |
location ~ \.php$ { | |
#try_files $uri @php; | |
fastcgi_pass zagirov.name; | |
include fastcgi_params; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[zagirov.name] | |
listen = /run/php5-fpm_zagirov.name.sock | |
listen.owner = www-data | |
listen.group = www-data | |
listen.mode = 0660 | |
user = www-data | |
group = www-data | |
pm = dynamic | |
pm.max_children = 50 | |
pm.start_servers = 50 | |
pm.min_spare_servers = 1 | |
pm.max_spare_servers = 50 | |
pm.max_requests = 5000 | |
request_terminate_timeout = 60m | |
;pm.status_path = /status | |
;ping.path = /ping | |
;ping.response = pong | |
;request_slowlog_timeout = 2s | |
;slowlog = /var/www/zagirov.name/logs/php-fpm.slow.log | |
;chroot = /var/www/ | |
chdir = /var/www/zagirov.name/www | |
catch_workers_output = yes | |
env[TMP] = /var/www/zagirov.name/tmp | |
env[TMPDIR] = /var/www/zagirov.name/tmp | |
env[TEMP] = /var/www/zagirov.name/tmp | |
php_admin_value[max_execution_time] = 60 | |
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -fall@zagirov.name | |
php_flag[display_errors] = on | |
php_admin_value[error_log] = /var/www/zagirov.name/logs/fpm-php.log | |
php_admin_flag[log_errors] = on | |
php_admin_value[open_basedir] = /var/www/zagirov.name/www:/var/www/zagirov.name/tmp:/var/www/yii-lib:/usr/bin | |
php_admin_value[upload_tmp_dir] = /var/www/zagirov.name/tmp | |
php_admin_value[session.save_path] = /var/www/zagirov.name/tmp | |
php_admin_value[post_max_size] = 50M | |
php_admin_value[upload_max_filesize] = 50M |
Я чё-то пытался минут 15 собрать - не получилось, поэтому нужен спец по симфони ;)
Хмм.. Странный разброс. Что же они добавили в 2.0.6 чего нет в альфе? Падение скорости в 8 раз как то странно...
P.S. Сам работаю с Yii)
Мне тоже очень интересно, как они получили такой прирост?
Вот только не понял почему в 8 раз, если всего в 4 раза?
Мне самому интересно, почему так произошло.
Первый тест был сделан из репозитория, от которого форкнулся реп, который я форкнул =)
Поэтому зовите спецов по symfony2 =)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
А если взять симфони не альфу ? Вроде как 2.0.6 уже есть http://symfony.com/download