add check on runtimes in inversions analysis