To come up with the database and ranking, INRIX analysts examined congestion in 1,064 cities in 38 countries and calculated the percentage of time drivers spent in congestion at different times of the day and week using federal data.