Skip to content

Instantly share code, notes, and snippets.

@Leonidas-from-XIV
Created May 24, 2012 15:48
Show Gist options
  • Save Leonidas-from-XIV/2782333 to your computer and use it in GitHub Desktop.
Save Leonidas-from-XIV/2782333 to your computer and use it in GitHub Desktop.
Testing speed in 10k string records
import string, random
l = [''.join(random.choice(string.printable) for i in xrange(20)) for e in xrange(10000)]
print [e for e in l if "dbe" in e]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment