json/benchmark/benchmark.py

12 lines
176 B
Python
Raw Normal View History

2013-12-11 12:23:50 +00:00
#!/usr/bin/env python
import json
import sys
import datetime
a = datetime.datetime.now()
data = json.loads(open(sys.argv[1]).read())
b = datetime.datetime.now()
print (b-a)