3. Performance testing - for what?
●
●
●
●
●
Find a problem previously
Evaluation of site possibilities
Evaluation of implemented optimizations
Regression testing
Report to client
7. Criterias and methods
Test strategy:
1. Testcases - user behaviour emulation
2. Stand preparation
3. Load
4. Results analyze
8. Example
Initial data:
1. Project A before optimization:
● no memcache
● Varnish doesn’t cache anything
● no ESI
1. Project A after optimization
● Enabled memcache
● Enabled ESI
● Varnish is configured
● Cache per roles
17. Example
Results - Hits per second
Average value “before”: 4 hits/sec
Average value “after”: 100 hits/sec
18. Conclusion
What can we cache?
●
●
●
●
●
●
code (APC)
function results
views, filters, db requests
HTML
images
static data - css, js, media
19. Conclusion
Cache segments - Drupal 7
cache
cache_block - rendered block array
cache_bootstrap - initializes after drupal install
cache_field
cache_filter - filtered data
cache_form - no affect on performance
cache_image
cache_menu - all menu links and parametres
cache_page - global cache for anonymous only
cache_path
cache_update - no affect on performance
cache_ctools - temp data