git.iko.soy
/
typeable/aeson
readme
files
commits
refs
on
master
help
sign in
Add a Python json benchmark.
cbe5617
Bryan O'Sullivan
16 years ago
benchmarks/parse.py
new file
+15
compare with master
unified
split
@@ -0,0 +1,15 @@
1
+
#!/usr/bin/env python
2
+
3
+
import
json, sys, time
4
+
5
+
count = int(sys.argv[
1
])
6
+
7
+
for
n
in
sys.argv[
2
:]:
8
+
print
'%s:'
% n
9
+
start = time.time()
10
+
fp = open(n)
11
+
for
i
in
xrange(count):
12
+
fp.seek(
0
)
13
+
val = json.load(fp)
14
+
end = time.time()
15
+
print
' '
, end - start
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list