Add some benchmarking code.