|Version 2 (modified by 10 years ago) (diff),|
Measuring program performance using CPU events
The GHC runtime has been extended to support the use of the PAPI library to count occurrences of CPU events such as cache misses and branch mispredictions. The PAPI extension separates the events occurring in the garbage collector and mutator code for more accurate pinpointing of performance problems.
This page describes how to compile the RTS with PAPI enabled and explains the RTS options for CPU event selection. This page also contains patches to collect CPU event information in nofib runs and to allow their comparison using nofib-analyse. This is especially useful to measure the effects of optimisations accross a whole range of programs systematically.
Compiling and running programs with PAPI
Using PAPI with the nofib benchmarking suite
TestWithPAPI.diff (4.4 KB) - added by 10 years ago.
Additions to test script to collect PAPI numbers from the nofib suite
NoFib-Papi.darcs (1.4 KB) - added by 10 years ago.
Additional option to nofib suite to enable and select a PAPI event set
- NofibanalyseWithPAPI.diff (10.2 KB) - added by 10 years ago.
Download all attachments as: .zip