Skip to content

Instantly share code, notes, and snippets.

@ivanov
Created November 21, 2013 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save ivanov/7588105 to your computer and use it in GitHub Desktop.
Save ivanov/7588105 to your computer and use it in GitHub Desktop.
# A template to demonstrate why we need to profile
# This instance written by Paul Ivanov (XXX: put your name / github id here)
def where_is_the_bottleneck(x):
pass
def could_be_this_one(x, y):
pass
def or_this_one(x):
pass
def you():
pass
def will_have_to_profile(x):
pass
def main():
where_is_the_bottleneck(10)
could_be_this_one(3, 1000000)
or_this_one(9e6)
could_be_this_one(1000000, 3)
you()
will_have_to_profile(314159)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment