bigd = dict([(x, random.randint(0, 1024)) for x in range(90000)])
bigd2 = dict([(x, random.randint(0, 1024)) for x in range(90000)])
dif = set(bigd.items()) - set(bigd2.items())
Checking if Two Massive Python Dictionaries are Equivalent