speedup calculations