Perfromance Testing
Performance testing classification
- Baseline Testing
- Peak Testing
- Load Testing
- Stress Testing
- Soak/Endurance Testing
- Concurrency Testing
- Spike Testing
Indicators
- Number of concurrent/virtual user
- Average Response time
- TPS
- Errors
- Resource utilization
- Hit
Performance testing flow
Requirement research
- The total number of users expected for the application?
- The concurrency users expected during peak day or hour?
- Business critical transaction
- % of load from business critical transacton
- expected response time SLA for the transaction
- throughtput SLA per day/hour/minute
- will the user use the application for 24*7
- system architecture
Requirement Analysis
- Concurrent User C=nL/T
- C’=C+3*radical C
- TPS
- 90th percentile Response Time<1s
- error% less than 0.02%
- CPU utilization<75%
- Memory Utilization<75%
- JVM Full GC none during the scenario
Test Preparation
Env
- Stress testing machine
- Service ENV
Base Data
need to have enough base data in DB,
we can use the business api call, or the produce
Test Tool
- Stress test tool,Loadrunner,JMeter
- Monitor tool,Nmon,APM
Prepare Script and Scenario
desigh the performance testing script, and the scenario
Exe Scenario and correct the data
Jmeter -n -t xxx.jmx -l xx.jtl -e -o \report
####Analys the Result
####Report