Skip to content

Latest commit

 

History

History
73 lines (44 loc) · 1.75 KB

File metadata and controls

73 lines (44 loc) · 1.75 KB

Performance

python-rapidjson tries to be as performant as possible while staying compatible with the json module.

Tables

The following tables show a comparison between this module and other libraries with different data sets. Last row (“overall”) is the total time taken by all the benchmarks.

Each number shows the factor between the time taken by each contender and python-rapidjson (in other words, they are normalized against a value of 1.0 for python-rapidjson): the lower the number, the speedier the contender.

In bold the winner.

DIY

To run these tests yourself, clone the repo and run:

$ make benchmarks

to focus only on RapidJSON or:

$ make benchmarks-others

to get full comparison against other engines.

To reproduce the tables above, run:

$ make benchmarks-tables

Compare different versions

pytest-benchmark implements an handy feature that allows you to weight the impact of a particular change. For example, you may start from a released version and execute:

$ make benchmarks PYTEST_OPTIONS=--benchmark-autosave

After applying whatever change to the code base, you can get a differential view by executing:

$ make benchmarks PYTEST_OPTIONS=--benchmark-compare=0001