Maybe algorithm A and algorithm B are of different orders?
for example: one is O(n) and the other is O(n^2).