Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
| wordpress_-_включение_кеширования_через_плагин_wp_super_cache [2024/05/30 15:25] – support2 | wordpress_-_включение_кеширования_через_плагин_wp_super_cache [2024/05/30 18:38] (текущий) – support2 | ||
|---|---|---|---|
| Строка 25: | Строка 25: | ||
| {{:: | {{:: | ||
| + | 4) В настройках указываем " | ||
| + | {{:: | ||
| + | |||
| + | |||
| + | |||
| + | 5) Проверяем через нагрузочное тестирование (утилиту Apache HTTP server benchmarking tool): | ||
| + | |||
| + | |||
| + | |||
| + | Результат без кеширования: | ||
| + | <code bash> | ||
| + | # ab -c 10 -n 200 http:// | ||
| + | This is ApacheBench, | ||
| + | Copyright 1996 Adam Twiss, Zeus Technology Ltd, http:// | ||
| + | Licensed to The Apache Software Foundation, http:// | ||
| + | Benchmarking wp.cms.*****.ru (be patient) | ||
| + | Completed 100 requests | ||
| + | Completed 200 requests | ||
| + | Finished 200 requests | ||
| + | Server Software: nginx/ | ||
| + | Server Hostname: wp.cms.*****.ru | ||
| + | Server Port: 80 | ||
| + | Document Path: / | ||
| + | Document Length: 53966 bytes | ||
| + | Concurrency Level: 10 | ||
| + | Time taken for tests: 117.099 seconds | ||
| + | Complete requests: 200 | ||
| + | Failed requests: 0 | ||
| + | Write errors: 0 | ||
| + | Total transferred: | ||
| + | HTML transferred: | ||
| + | Requests per second: 1.71 [#/sec] (mean) | ||
| + | Time per request: 5854.971 [ms] (mean) | ||
| + | Time per request: 585.497 [ms] (mean, across all concurrent requests) | ||
| + | Transfer rate: 90.47 [Kbytes/ | ||
| + | Connection Times (ms) | ||
| + | min mean[+/-sd] median max | ||
| + | Connect: 17 17 0.1 17 17 | ||
| + | Processing: 141 5668 8964.2 4962 51239 | ||
| + | Waiting: 107 5634 8964.2 4928 51205 | ||
| + | Total: 158 5685 8964.3 4979 51256 | ||
| + | Percentage of the requests served within a certain time (ms) | ||
| + | 50% 4979 | ||
| + | 66% 5993 | ||
| + | 75% 6938 | ||
| + | 80% 6988 | ||
| + | 90% 8014 | ||
| + | 95% 9074 | ||
| + | 98% 47248 | ||
| + | 99% 49220 | ||
| + | 100% 51256 (longest request) | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | Результат с кешированием через плагин WP SUPER CACHE: | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | # ab -c 10 -n 200 http:// | ||
| + | This is ApacheBench, | ||
| + | Copyright 1996 Adam Twiss, Zeus Technology Ltd, http:// | ||
| + | Licensed to The Apache Software Foundation, http:// | ||
| + | Benchmarking wp.cms.*****.ru (be patient) | ||
| + | Completed 100 requests | ||
| + | Completed 200 requests | ||
| + | Finished 200 requests | ||
| + | Server Software: nginx/ | ||
| + | Server Hostname: wp.cms.*****.ru | ||
| + | Server Port: 80 | ||
| + | Document Path: / | ||
| + | Document Length: 54168 bytes | ||
| + | Concurrency Level: 10 | ||
| + | Time taken for tests: 11.062 seconds | ||
| + | Complete requests: 200 | ||
| + | Failed requests: 0 | ||
| + | Write errors: 0 | ||
| + | Total transferred: | ||
| + | HTML transferred: | ||
| + | Requests per second: 18.08 [#/sec] (mean) | ||
| + | Time per request: 553.088 [ms] (mean) | ||
| + | Time per request: 55.309 [ms] (mean, across all concurrent requests) | ||
| + | Transfer rate: 961.19 [Kbytes/ | ||
| + | |||
| + | Connection Times (ms) | ||
| + | min mean[+/-sd] median max | ||
| + | Connect: 17 17 0.1 17 17 | ||
| + | Processing: 57 518 472.6 528 1950 | ||
| + | Waiting: 23 484 472.6 493 1916 | ||
| + | Total: 74 535 472.6 545 1967 | ||
| + | Percentage of the requests served within a certain time (ms) | ||
| + | 50% 545 | ||
| + | 66% 903 | ||
| + | 75% 931 | ||
| + | 80% 948 | ||
| + | 90% 987 | ||
| + | 95% 1124 | ||
| + | 98% 1656 | ||
| + | 99% 1947 | ||
| + | 100% 1967 (longest request) | ||
| + | |||
| + | </ | ||
| + | |||
| + | Сравните значения: | ||
| + | |||
| + | **Requests per second: 1.71 [#/sec] (mean) - без кеширования** \\ | ||
| + | **Requests per second: 18.08 [#/sec] (mean) - с кешированием.**\\ | ||
| + | |||
| + | Как видим, сайт теперь может выдерживать значительно большее число посетителей. | ||
| + | |||
| + | |||
| + | {{tag>" | ||