def bench1(n):
a = key.Key('<STR_LIT>', <NUM_LIT>, '<STR_LIT>', <NUM_LIT:1>, '<STR_LIT>', '<STR_LIT>')<EOL>b = key.Key('<STR_LIT>', <NUM_LIT>, '<STR_LIT>', <NUM_LIT:1>, '<STR_LIT>', '<STR_LIT>')<EOL>assert a is not b<EOL>assert a == b<EOL>for _ in xrange(n):<EOL><INDENT>a == b<EOL>hash(a)<EOL><DEDENT>
Benchmark Key comparison and hashing.