Measure performance.