Runs can take a :sample option, to measure every N calls to f.