微軟有出一本書叫
Improving .NET Application Performance and Scalability
這本書是在描述微軟如何做Performance engineering. 其中有一章節是在描述如何做performance testing. 我節錄了一小段讓大家聞香一下. 有興趣的人可至微軟網站download這本書. 不過有一千多頁, 要花不少時間才能看完.
Step 1: Identify key scenarios
(1) Scenarios are anticipated user paths that generally incorporate multiple application activities
(2) Scenarios are those for which
- Have specific performance goals
- Have a significant performance impact (common executed or resource intensive)
(3) Example
- Log on to the application
- Browse a product catalog
- Search for a specific product
- Add items to the shopping cart
- Validate credit card details and place an order
Step 2: Identify Workload(1) Identity the performance characteristics or workload associated with each of the defined scenarios
(2) For each scenarios you must identify the following:
- Number of users:
* the total number of concurrent and simultaneous users who access the application in a given time frame
- Rate of requests
* The requests received from the concurrent load of users per unit time
- Pattern of requests
* A given load of concurrent users may be performing different tasks using the application
* Pattern of requests identify the average load of users, and rate of requests for a given functionality of an application