I know '==' is used to check the equality of two values and 'is' is used to test the identity of objects in Python as pointed out in this post. However they can be both used for comparing numbers besides their other applications. I did some tests using both of them to compare two integers and 'is' appears to run faster. Why is that? and if that's true is there any other reason to use '==' for number comparisons at all?
timeit.timeit('1 is 1', number=10**8)
2.3460144830169156
timeit.timeit('1 == 1', number=10**8)
2.9029528259998187