comparison boilerplate
basic xor metric