workshop performance vl ctesting

26
Workshop Performance Modelling and Jmeter

Upload: almudena-vivanco

Post on 20-Feb-2017

280 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Workshop performance vl ctesting

Workshop Performance

Modelling and Jmeter

Page 2: Workshop performance vl ctesting

Users vs request

• ¿cuánto aguanta nuestra plataforma?

Page 3: Workshop performance vl ctesting

SCENARIOS: Identify the scenarios that are most commonly executed or most resource-intensive

Page 4: Workshop performance vl ctesting

WORKLOAD MODEL: User Session Duration in average. It is important to define the load levels that will translate into concurrent usage, overslapping users, or user sessions per second.

Page 5: Workshop performance vl ctesting

USER SCENARIO: Navigational Path, including intermediate steps or activities, taken by the user to complete a task. We will call it User Session from now on.

Page 6: Workshop performance vl ctesting

THINK TIMES: User thinktimes Pause between pages during a User Session depending on the User Type*

Page 7: Workshop performance vl ctesting

User Types: Identify the User … new, revisiting or both.

Page 8: Workshop performance vl ctesting

Performance Acceptance Criteria: Response time, System load, Throughput ...

Page 9: Workshop performance vl ctesting

METRICS: Only well-selected metrics that are analyzed correctly and contextually provide information of value.

Page 10: Workshop performance vl ctesting

DESIGN TEST: Using your scenarios, key metrics, and workload analysis …

Page 11: Workshop performance vl ctesting

RUN TEST: the load simulation must reflect the test design

Page 12: Workshop performance vl ctesting

ANALYZE RESULTS: Find bottlenecks, memory leaks, cpu hogs, bad sofware design …

Page 13: Workshop performance vl ctesting

The Maths behind

Page 14: Workshop performance vl ctesting

“mi tiempo medio de respuesta está bien."

Page 15: Workshop performance vl ctesting

• Percentiles• Moda• Media• Mediana• Desviación Estándar

• https://msdn.microsoft.com/en-us/library/bb924370.aspx

Page 16: Workshop performance vl ctesting
Page 17: Workshop performance vl ctesting

Matemáticas y Sentido Común

http://www.raosoft.com/samplesize.html

Page 18: Workshop performance vl ctesting

JMeter

Modelización y Jmeter

Page 19: Workshop performance vl ctesting

Modelando el uso de la aplicación

Identificar el objetivo de la prueba• Volumen de tráfico?• Escala?• Picos de carga?• Robusto?

Page 20: Workshop performance vl ctesting
Page 21: Workshop performance vl ctesting
Page 22: Workshop performance vl ctesting
Page 23: Workshop performance vl ctesting

Jmeter Test Plan

User Defined Variables

Functional Test Mode

Page 24: Workshop performance vl ctesting

User defined Variables at Test Plan level to be used from Jenkins

Page 25: Workshop performance vl ctesting

User Behaviour in JMeterOnly Once Controllers

Cache Management

Cookie Management

Header Manager

Think Times

Page 26: Workshop performance vl ctesting

Resources• http://www.raosoft.com/samplesize.html

• http://analyze.websiteoptimization.com/wso

• http://mobitest.akamai.com/m/index.cgi

• http://stevesouders.com/mobileperf/mobileperfbkm.php

• https://msdn.microsoft.com/en-us/library/bb924370.aspx

• http://www.quotium.com/performance/load-testing-calculating-pacing-time/