The part where he chooses his inputs to hit worst case behavior in Python's hash function.
M = (1 << 61) - 1
values = [i * M for i in range(1, n + 1)]
which are effectively random from the hash function's point of view, especially with a randomized seed (the default on current versions).So he's not testing dict/set performance, he's testing bignum performance, because of the inputs he deliberately chose