Performance of Domain-Wall Encoding for Quantum Annealing