Елена Панина - Drupal performance testing. Тестирование...

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

Transcript of Елена Панина - Drupal performance testing. Тестирование...

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

Drupal performance testing.

Тестирование производительности,

методика анализа производительности

DRUPAL

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

Summary

● Performance testing - for what?

● Tools

● Criterias and methods

● Example

● Conclusion

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

Performance testing - for what?

● Find a problem previously

● Evaluation of site possibilities

● Evaluation of implemented optimizations

● Regression testing

● Report to client

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

Tools

● Online services

● Desktop apps

● Console utilities

● Php

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

Tools

● Flexible

● Free

● A lot of inbuilt and additional modules and

plugins

Jmeter - why we use it?

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

Criterias and methods

● Response time

● Throughput

● Hits per second

Criterias:

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

Criterias and methods

1. Testcases - user behaviour emulation

2. Stand preparation

3. Load

4. Results analyze

Test strategy:

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

Example

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

Initial data:

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

Example

Response time - “before”

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

Example

Response time - “after”

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

Example

Average value “before”: 9000ms

Average value “after”: 330ms

Results - response time

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

Example

Throughput - “before”

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

Example

Throughput - “after”

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

Example

Average value “before”: 6.2 transaction/sec

Average value “after”: 114 transaction/sec

Results - Throughput

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

Example

Hits per second - “before”

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

Example

Hits per second - “after”

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

Example

Average value “before”: 4 hits/sec

Average value “after”: 100 hits/sec

Results - Hits per second

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

Conclusion

● code (APC)

● function results

● views, filters, db requests

● HTML

● images

● static data - css, js, media

What can we cache?

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

Conclusion

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

Cache segments - Drupal 7

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

Contacts

email: [email protected]