fork(1) download
  1. # illustrating http://stackoverflow.com/a/28539821/2932052
  2. import timeit
  3. print timeit.timeit("math.pow(2, 100)",setup='import math',number=3000000)
  4. print timeit.timeit("pow(2.0, 100.0)",number=3000000)
Success #stdin #stdout 1.94s 7736KB
stdin
Standard input is empty
stdout
0.952493906021
0.987658977509