Sharedsupport / 2015-05-07-195329-benchmark.sagewsOpen in CoCalc
Authors: Harald Schilly, ℏal Snyder, William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
%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