Performance Flashcards

1
Q

True/False: Performance is a functional requirement

A

False. Performance is a non-functional requirement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can performance be measured?

A
  • Concurrency (# of requests/users at once)
  • Latency (ms)
  • Volume (requests/second)
  • Bandwidth (bytes/second)
  • Utilization (percent)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When should one optimize their code?

A

When performance issues arise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can one check if changes made lead to performance issues?

A
  1. Measure performance indicators before making changes
  2. Record numbers for each indicator
  3. Record numbers after changes are made
  4. Run tests more than once
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What techniques can be used to improve performance?

A
  • Caching
  • Reduce # of round trips
  • Reduce download size
  • Asynchronous communication
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly