Skip to content

Instantly share code, notes, and snippets.

@gradha
Created January 14, 2013 22:12
Show Gist options
  • Save gradha/4533999 to your computer and use it in GitHub Desktop.
Save gradha/4533999 to your computer and use it in GitHub Desktop.
Python test case for parsing a big json
#!/usr/bin/env python
import json
import time
print "Loading and parsing json"
t1 = time.time()
j = json.load(open("nimrod_performance.json", "rt"))
print j["pak_filename"]
t2 = time.time()
print "Took %0.2f seconds" % (t2 - t1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment