GithubHelp home page GithubHelp logo

python-json-benchmark's People

Contributors

akrylysov avatar cpeel avatar ofek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

python-json-benchmark's Issues

Could you add table title for benchmarks result?

I run the benchmark at my machine of ubuntu18 with python3.6.7 and installed the latest packages:

# pip freeze
python-rapidjson==0.7.0
simplejson==3.16.0
ujson==1.35

Got result as follows:

3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0]
Running json benchmarks...
Running simplejson benchmarks...
Running ujson benchmarks...
Running rapidjson benchmarks...
Unable to import cjson

Results
=======
loads (large obj)
-----------------
json            0.745s
simplejson      0.784s
ujson           0.803s
rapidjson       0.895s

dumps (large obj)
-----------------
json            0.788s
simplejson      0.707s
ujson           0.429s
rapidjson       0.468s

loads (small objs)
------------------
json            0.870s
simplejson      1.118s
ujson           0.326s
rapidjson       0.576s

dumps (small objs)
------------------
json            1.300s
simplejson      2.118s
ujson           0.336s
rapidjson       0.485s

I think it is better to show it like this:

Results
=======
loads (large obj)
-----------------
package   |   cost time(seconds)
json            0.745
simplejson      0.784
ujson           0.803
rapidjson       0.895

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.