Skip to content

Instantly share code, notes, and snippets.

@pgiraud
Created June 1, 2017 09:42
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 pgiraud/7d1dd4f1cbac9f28037c3d9d8a3a5f1d to your computer and use it in GitHub Desktop.
Save pgiraud/7d1dd4f1cbac9f28037c3d9d8a3a5f1d to your computer and use it in GitHub Desktop.
#! /usr/bin/python
import time
start = time.time()
for i in range(100000000):
if False and 'blue' in 'sky is blue':
pass
end = time.time()
print(end - start)
start = time.time()
for i in range(100000000):
if False and ('blue' in 'sky is blue'):
pass
end = time.time()
print(end - start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment