As with any programming language and system, all other variables being equal, comparing 2 integers will be faster than comparing 2 strings. One such variable that might affect that is indexes. Comparing indexed strings will be a lot faster than comparing 2 non-indexed numbers.
Date (when not formatted as String) are usually on par with integers.