Benchmark code for merge