CoCalc Shared Filessupport / 2014-11-30-import_time.sagewsOpen in CoCalc with one click!
Authors: Harald Schilly, ℏal Snyder, William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
%time import jinja2 # first ever import takes potentially longer, though not here since it is already imported
CPU time: 0.03 s, Wall time: 0.18 s
%time import jinja2 # now fast
CPU time: 0.00 s, Wall time: 0.00 s
%timeit import jinja2
625 loops, best of 3: 515 ns per loop
def f(): import jinja2
%timeit f()
625 loops, best of 3: 606 ns per loop