Skip to content

Instantly share code, notes, and snippets.

@methane
Created March 29, 2013 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save methane/5268143 to your computer and use it in GitHub Desktop.
Save methane/5268143 to your computer and use it in GitHub Desktop.
MBA [~]$ cat genfoo.py
for i in range(1000):
print("x{}={}".format(i, i))
MBA [~]$ python genfoo.py > foo.py
MBA [~]$ cat ifoo.py
import foo
MBA [~]$ time python -S ifoo.py
real 0m0.012s
user 0m0.008s
sys 0m0.004s
MBA [~]$ time python -S ifoo.py
real 0m0.009s
user 0m0.005s
sys 0m0.004s
MBA [~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment