Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Drupal performance testing.
Тестирование производительности,
методика анализа производительности
DRUPAL
Summary
●
●
●
●
●

Performance testing - for what?
Tools
Criterias and methods
Example
Conclusion
Performance testing - for what?

●
●
●
●
●

Find a problem previously
Evaluation of site possibilities
Evaluation of imple...
Tools
●
●
●
●

Online services
Desktop apps
Console utilities
Php
Tools
Jmeter - why we use it?

● Flexible
● Free
● A lot of inbuilt and additional modules and
plugins
Criterias and methods
Criterias:

● Response time
● Throughput
● Hits per second
Criterias and methods
Test strategy:

1. Testcases - user behaviour emulation
2. Stand preparation
3. Load
4. Results anal...
Example
Initial data:
1. Project A before optimization:
● no memcache
● Varnish doesn’t cache anything
● no ESI
1. Project...
Example
Response time - “before”
Example
Response time - “after”
Example
Results - response time

Average value “before”: 9000ms
Average value “after”: 330ms
Example
Throughput - “before”
Example
Throughput - “after”
Example
Results - Throughput

Average value “before”: 6.2 transaction/sec
Average value “after”: 114 transaction/sec
Example
Hits per second - “before”
Example
Hits per second - “after”
Example
Results - Hits per second

Average value “before”: 4 hits/sec
Average value “after”: 100 hits/sec
Conclusion
What can we cache?
●
●
●
●
●
●

code (APC)
function results
views, filters, db requests
HTML
images
static data...
Conclusion
Cache segments - Drupal 7
cache
cache_block - rendered block array

cache_bootstrap - initializes after drupal ...
Contacts

email: epanina@adyax.com
Upcoming SlideShare
Loading in …5
×

Елена Панина - Drupal performance testing. Тестирование производительности, методика анализа производительности DRUPAL

468 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Елена Панина - Drupal performance testing. Тестирование производительности, методика анализа производительности DRUPAL

  1. 1. Drupal performance testing. Тестирование производительности, методика анализа производительности DRUPAL
  2. 2. Summary ● ● ● ● ● Performance testing - for what? Tools Criterias and methods Example Conclusion
  3. 3. Performance testing - for what? ● ● ● ● ● Find a problem previously Evaluation of site possibilities Evaluation of implemented optimizations Regression testing Report to client
  4. 4. Tools ● ● ● ● Online services Desktop apps Console utilities Php
  5. 5. Tools Jmeter - why we use it? ● Flexible ● Free ● A lot of inbuilt and additional modules and plugins
  6. 6. Criterias and methods Criterias: ● Response time ● Throughput ● Hits per second
  7. 7. Criterias and methods Test strategy: 1. Testcases - user behaviour emulation 2. Stand preparation 3. Load 4. Results analyze
  8. 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
  9. 9. Example Response time - “before”
  10. 10. Example Response time - “after”
  11. 11. Example Results - response time Average value “before”: 9000ms Average value “after”: 330ms
  12. 12. Example Throughput - “before”
  13. 13. Example Throughput - “after”
  14. 14. Example Results - Throughput Average value “before”: 6.2 transaction/sec Average value “after”: 114 transaction/sec
  15. 15. Example Hits per second - “before”
  16. 16. Example Hits per second - “after”
  17. 17. Example Results - Hits per second Average value “before”: 4 hits/sec Average value “after”: 100 hits/sec
  18. 18. Conclusion What can we cache? ● ● ● ● ● ● code (APC) function results views, filters, db requests HTML images static data - css, js, media
  19. 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
  20. 20. Contacts email: epanina@adyax.com

×