Testing time complexity