Refactored benchmark.