title: String comparison time complexity
body: <p>Which comparison would take longer time?</p>
  
  <p><code>a = helloworldhelloworldhelloworld</code><br>
  <code>b = https://www.somerandomurls.com/directory/anotherdirectory/helloworld.html</code><br>
  <code>if a != b:
          doThis()</code>   </p>
  
  <p>versus   </p>
  
  <p><code>a=one, b=two</code><br>
  <code>if a != b:
          doThis()</code></p>
  
  <p>I often need to check this against my database which has thousands of rows. I am not looking for any specific programming language. I just want to know which comparison takes faster. As you see, the value of <code>b</code> is longer string on the first example and shorter on the second example. So I wonder if that might make any difference on comparison.</p>