Нашият управител Любомир Русанов разкрива данни от проведените от него тестове в реална хостинг среда и разказа какви фактори влияят положително за скоростта и производителността на Joomla!. Показва как да се активира новата функционалност “Memcached Manager by SuperHosting” - разработена от СуперХостинг.БГ и интегрирана в контролния панел cPanel, в Joomla и какви са ползите от него.
7. Apache Bench
●
●
2000 requests
1, 5, 10, 30, 50, 100
паралелни връзки
Отчитаме основно:
●
●
●
●
●
Requests per second
Time per request, ms
Time taken for tests, s
50% of requests time
Failed number
8. Сравнение на php със и без APC
Сравнение на RPS за php 5.3
Със и без активиран APC
50
46.91
46.15
45.19
44.19
45
42.26
40
35
Requests per second
Requests per second APC
30
24.02
25
23.22
23.31
23.15
23.32
20
15
11.91
10
6.22
5
0
1
5
10
30
50
100
9. fcgid срещу php-fpm
Сравнение на fcgid и php-fpm с включен APC
60
2500
2084
50
2000
40
1500
30
1046
1000
20
645
631
665
676
500
10
207
199
79
98
1
5
0
0
10
30
50
100
Requests per second
Requests per second php-fpm
50% of requests time, ms
50% of requests time php-fpm, ms
10. PHP 5.4 срещу PHP 5.5
PHP 5.4 APC и PHP 5.5 opcache
60
54.57
53.99
52.22
51.45
50
48.01
47.37
45.41
50.69
46.03
45.1
40
Requests per second 5.4
Requests per second 5.5
30
20
14.1
12.52
10
0
1
5
10
30
50
100
11. Joomla! с инсталиран K2
Joomla! срещу К2
php 5.5 с APC
60
3000
2678.35
50
2500
1972.62
40
30
2000
1500
1251.79
957.55
20
1000
755.39
583.07
10
500
93.43
70.93
117.27
91.63
1
5
250.48
185.22
0
0
10
30
50
100
Requests per second 5.5
Requests per second 5.5 – with K2
Time per request
Time per request – with K2
12. Joomla! с Phoca Gallery
Joomla! срещу Phoca Gallery
60
50
40
Requests per second 5.5
Requests per second 5.5 – Phoca Gallery
30
20
10
0
1
5
10
30
13. Аквиране на memcached
configuration.php :
public $caching = '0';
public $cache_handler = 'file';
Заменяме
public $caching = '2';
public $cache_handler = 'memcache';
public $memcache_server_host =
'127.0.0.1';
public $memcache_server_port =
'11055';
14. Joomla! с Memcached
Joomla! с Memcached
80
70
60
50
Requests per second 5.5
Requests per second 5.5 – with K2
Requests per second 5.5 – Memcached
40
30
20
10
0
1
5
10
30
50
100