[issue6013] json slower than simplejson

2009-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Given the amount of changed code between the two simplejson versions, I'm afraid there's no way the new version will be backported to release26-maint. You can probably do the backport manually in your Python install, though (or bite the bullet and use SVN trunk,

[issue6013] json slower than simplejson

2009-05-13 Thread Thomas Heller
Thomas Heller added the comment: Here are the numbers from trunk (rev ) and release26-maint branch (rev ): c:\svn\release26-maint\PCbuild>python -m timeit -s "from json import loads, dumps" "loads(dumps(range(32)))" 1000 loops, best of 3: 726 usec per loop c:\svn\release26-maint\PCbuild>cd ..

[issue6013] json slower than simplejson

2009-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is probably because your simplejson is much more recent than the json version shipped with 2.6. Can you try again with trunk and post the numbers? -- nosy: +pitrou ___ Python tracker

[issue6013] json slower than simplejson

2009-05-13 Thread Thomas Heller
New submission from Thomas Heller : 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