Performance Flashcards
1
Q
True/False: Performance is a functional requirement
A
False. Performance is a non-functional requirement
2
Q
How can performance be measured?
A
- Concurrency (# of requests/users at once)
- Latency (ms)
- Volume (requests/second)
- Bandwidth (bytes/second)
- Utilization (percent)
3
Q
When should one optimize their code?
A
When performance issues arise
4
Q
How can one check if changes made lead to performance issues?
A
- Measure performance indicators before making changes
- Record numbers for each indicator
- Record numbers after changes are made
- Run tests more than once
5
Q
What techniques can be used to improve performance?
A
- Caching
- Reduce # of round trips
- Reduce download size
- Asynchronous communication
6
Q
How does caching improve performance?
A
Caching increases locality (content/data is closer to where it is needed). Locality increases available bandwidth and decreases latency.
7
Q
A