CoCalc Public Filessupport / 2014-11-30-import_time.sagewsOpen in with one click!
Authors: Harald Schilly, ℏal Snyder, William A. Stein
Description: Jupyter notebook support/2015-06-04-141749-bokeh.ipynb
%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