Kushal Das

FOSS and life. Kushal Das talks here.


ujson, a fast json implementation

ujson is an ultra fast JSON encoder and decoder written in pure C (as described by the upstream). It can be used as dropin replacement of the most known JSON implementations.

To install you just do:

$ pip install ujson

To test the speed I decided to write two simple test scripts with help from timeit_ module.

The execution:

$  python json_test.py 

$ python ujson_test.py 

Review request for the Fedora package is already filled.