Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
Update times with lloyd's numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
R. Tyler Ballance committed Dec 3, 2009
1 parent 01a53d7 commit 0f96db9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions yajl.c
Expand Up @@ -280,17 +280,19 @@ Encodes the given `obj` and writes it to the `fp` stream-like object. \n\

PyMODINIT_FUNC inityajl(void)
{

PyObject *module = Py_InitModule3("yajl", yajl_methods,
"Providing a pythonic interface to the yajl (Yet Another JSON Library) parser\n\n\
The interface is similar to that of simplejson or jsonlib providing a consistent syntax for JSON\n\
encoding and decoding. Unlike simplejson or jsonlib, yajl is **fast** :)\n\n\
The following benchmark was done with a fairly large (100K) JSON document:\n\
\tjson.loads():\t\t25415.4966ms\n\
\tsimplejson.loads():\t979.3956ms\n\
\tyajl.loads():\t\t665.4831ms\n\n\
\tjson.dumps():\t\t9450.8894ms\n\
\tyajl.dumps():\t\t946.6942ms\n\
\tsimplejson.dumps():\t938.4636ms");
The following benchmark was done on a dual core MacBook Pro with a fairly large (100K) JSON document:\n\
json.loads():\t\t21351.313ms\n\
simplejson.loads():\t1378.6492ms\n\
yajl.loads():\t\t502.4572ms\n\
\n\
json.dumps():\t\t7760.6348ms\n\
simplejson.dumps():\t930.9748ms\n\
yajl.dumps():\t\t681.0221ms");

YajlDecoderType.tp_new = PyType_GenericNew;
if (PyType_Ready(&YajlDecoderType) < 0)
Expand Down

0 comments on commit 0f96db9

Please sign in to comment.