Fixed benchmark code.