Performance Analysis
Before we can tune the performance of a program
- we need to measure its performance
- on a range of inputs, including very large inputs
- and then analyse the reasons for its behaviour
Performance analysis can be performed at various levels of detail:
- coarse-grained ... get an overview of performance characteristics
- fine-grained ... find detailed explanations for performance
A Unix tool for performance analysis:
- time -- cpu/elapsed time
(coarse measure of performance)
|