CoCalc Public Filessupport / 2015-05-07-195329-benchmark.sagewsOpen in with one click!
Authors: Harald Schilly, ℏal Snyder, William A. Stein
Description: Jupyter notebook support/2015-06-04-141749-bokeh.ipynb
%timeit n=factorial(10^5)
25 loops, best of 3: 9.39 ms per loop
%timeit n=factorial(10^6)
5 loops, best of 3: 158 ms per loop
%time n=factorial(10^7) %time m=n*n
CPU time: 3.85 s, Wall time: 3.85 s CPU time: 1.58 s, Wall time: 1.58 s
%time v=sum(range(10^7))
CPU time: 0.51 s, Wall time: 0.56 s