Skip to content

Instantly share code, notes, and snippets.

@daGrevis
Created February 14, 2012 16:20
Show Gist options
  • Select an option

  • Save daGrevis/1827865 to your computer and use it in GitHub Desktop.

Select an option

Save daGrevis/1827865 to your computer and use it in GitHub Desktop.
Size benchmark in Python
import sys
o = "I'm string!"
r = sys.getsizeof(o)
print r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment