I believe that the search term you can look for is constant time equality.