git.iko.soy
/
typeable/aeson
readme
files
commits
refs
on
master
help
sign in
Add a Python encoder
89cf48d
Bryan O'Sullivan
15 years ago
benchmarks/encode.py
new file
+14
compare with master
unified
split
@@ -0,0 +1,14 @@
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
+
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
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