[New-bugs-announce] [issue6013] json slower than simplejson
Thomas Heller
report at bugs.python.org
Wed May 13 16:33:01 CEST 2009
New submission from Thomas Heller <theller at ctypes.org>:
The json package is a lot slower than the simplejson package. Both
packages have their C compiled speedup module; however:
C:\>py26 -m timeit -s "from json import dumps, loads"
"loads(dumps(range(32)))"
1000 loops, best of 3: 618 usec per loop
C:\>py26 -m timeit -s "from simplejson import dumps, loads"
"loads(dumps(range(32)))"
10000 loops, best of 3: 31 usec per loop
This is on Windows XP, with Python 2.6.2.
----------
messages: 87685
nosy: theller
severity: normal
status: open
title: json slower than simplejson
type: performance
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6013>
_______________________________________
More information about the New-bugs-announce
mailing list