erichiggins / gaek

A collection of useful tools for Google App Engine.
MIT License
16 stars 6 forks source link

Improve performance of ndb_json module #15

Open erichiggins opened 7 years ago

erichiggins commented 7 years ago

Benchmark against stock json module on Python 2.7:

Running json benchmarks...
Running ndb_json benchmarks...

Results
=======
loads (large obj)
-----------------
json            1.103s
ndb_json        2.200s

dumps (large obj)
-----------------
json            0.559s
ndb_json        0.553s

loads (small objs)
------------------
json            1.201s
ndb_json        2.760s

dumps (small objs)
------------------
json            0.913s
ndb_json        1.253s