How to use Criterion to measure performance of Haskell programs?
问题 I'm trying to measure the performance of a simple Haar DWT program using the Criterion framework. (It is erroneously slow, but I'll leave that for another question). I can't find any good documentation on the web, unfortunately. My two primary problems are How can one pass data from one benchmark to another? I want to time each stage of the program. How does the sampling work, and avoid lazy evaluation reusing its previous computations? This source is relatively pared down; the first function