fork(1) download
  1. # according comments to http://stackoverflow.com/q/20969773/2932052
  2. import timeit
  3. print timeit.timeit("math.pow(2, 100)",setup='import math')
  4. print timeit.timeit("2.0 ** 100.0")
  5. print timeit.timeit("2 ** 100")
  6. print timeit.timeit("2.01 ** 100.01")
  7.  
Success #stdin #stdout 0.45s 7736KB
stdin
Standard input is empty
stdout
0.329639911652
0.0361258983612
0.0364260673523
0.0363788604736