on 0.6.0.0 help sign in
14 lines 270 B history raw
1#!/usr/bin/env python
3import json, sys, time
5count = int(sys.argv[1])
7for n in sys.argv[2:]:
8 print '%s:' % n
9 obj = json.load(open(n))
10 start = time.time()
11 for i in xrange(count):
12 json.dumps(obj)
13 end = time.time()
14 print ' ', end - start