python-rapidjson 1.16__tar.gz → 1.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python-rapidjson-1.16 → python-rapidjson-1.17}/CHANGES.rst +13 -1
- {python-rapidjson-1.16 → python-rapidjson-1.17}/PKG-INFO +14 -2
- {python-rapidjson-1.16 → python-rapidjson-1.17}/benchmarks/tablize.py +5 -5
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/benchmarks-tables.rst +44 -44
- python-rapidjson-1.17/docs/changes.rst +627 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/conf.py +3 -3
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/index.rst +2 -1
- {python-rapidjson-1.16 → python-rapidjson-1.17}/python_rapidjson.egg-info/PKG-INFO +14 -2
- {python-rapidjson-1.16 → python-rapidjson-1.17}/python_rapidjson.egg-info/SOURCES.txt +1 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/allocators.h +2 -2
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/document.h +2 -2
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/regex.h +1 -1
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/rapidjson.h +1 -1
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/schema.h +12 -10
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/writer.h +1 -1
- python-rapidjson-1.17/rapidjson_exact_version.txt +1 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/requirements.txt +7 -7
- python-rapidjson-1.17/version.txt +1 -0
- python-rapidjson-1.16/rapidjson_exact_version.txt +0 -1
- python-rapidjson-1.16/version.txt +0 -1
- {python-rapidjson-1.16 → python-rapidjson-1.17}/.dir-locals.el +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/LICENSE +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/MANIFEST.in +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/README.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/benchmarks/conftest.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/benchmarks/test_benchmark.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/Makefile +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/api.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/benchmarks.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/decoder.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/dump.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/dumps.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/encoder.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/load.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/loads.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/quickstart.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/rawjson.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/docs/validator.rst +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/python_rapidjson.egg-info/dependency_links.txt +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/python_rapidjson.egg-info/top_level.txt +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/cursorstreamwrapper.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/encodedstream.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/encodings.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/error/en.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/error/error.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/filereadstream.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/filewritestream.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/fwd.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/biginteger.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/clzll.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/diyfp.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/dtoa.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/ieee754.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/itoa.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/meta.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/pow10.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/stack.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/strfunc.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/strtod.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/internal/swap.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/istreamwrapper.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/memorybuffer.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/memorystream.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/msinttypes/inttypes.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/msinttypes/stdint.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/ostreamwrapper.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/pointer.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/prettywriter.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/reader.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/stream.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/stringbuffer.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/include/rapidjson/uri.h +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/license.txt +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson/readme.md +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/rapidjson.cpp +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/requirements-test.txt +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/setup.cfg +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/setup.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/conftest.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_base_types.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_circular.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_dict_subclass.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_enum.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_float.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_memory_leaks.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_params.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_pass1.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_pass2.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_pass3.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_rawjson.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_refs_count.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_streams.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_unicode.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tests/test_validator.py +0 -0
- {python-rapidjson-1.16 → python-rapidjson-1.17}/tox.ini +0 -0
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
Changes
|
|
2
2
|
-------
|
|
3
3
|
|
|
4
|
+
1.17 (2024-05-18)
|
|
5
|
+
~~~~~~~~~~~~~~~~~
|
|
6
|
+
|
|
7
|
+
* Use `current master`__ version of rapidjson
|
|
8
|
+
|
|
9
|
+
__ https://github.com/Tencent/rapidjson/compare/5e17dbed34eef33af8f3e734820b5dc547a2a3aa...ab1842a2dae061284c0a62dca1cc6d5e7e37e346
|
|
10
|
+
|
|
11
|
+
* Generate wheels on PyPI using Python 3.13b1 release, thanks to cibuildwheel `2.18.0`__
|
|
12
|
+
|
|
13
|
+
__ https://cibuildwheel.pypa.io/en/stable/changelog/#v2180
|
|
14
|
+
|
|
15
|
+
|
|
4
16
|
1.16 (2024-02-28)
|
|
5
17
|
~~~~~~~~~~~~~~~~~
|
|
6
18
|
|
|
@@ -47,7 +59,7 @@ Changes
|
|
|
47
59
|
|
|
48
60
|
* Use `current master`__ version of rapidjson
|
|
49
61
|
|
|
50
|
-
__ https://github.com/Tencent/rapidjson/compare/083f359f5c36198accc2b9360ce1e32a333231d9...
|
|
62
|
+
__ https://github.com/Tencent/rapidjson/compare/083f359f5c36198accc2b9360ce1e32a333231d9...5e17dbed34eef33af8f3e734820b5dc547a2a3aa
|
|
51
63
|
|
|
52
64
|
* Use cibuildwheel `2.15.0`__
|
|
53
65
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-rapidjson
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.17
|
|
4
4
|
Summary: Python wrapper around rapidjson
|
|
5
5
|
Home-page: https://github.com/python-rapidjson/python-rapidjson
|
|
6
6
|
Author: Ken Robbins
|
|
@@ -155,6 +155,18 @@ __ https://python-rapidjson.readthedocs.io/en/latest/quickstart.html#incompatibi
|
|
|
155
155
|
Changes
|
|
156
156
|
-------
|
|
157
157
|
|
|
158
|
+
1.17 (2024-05-18)
|
|
159
|
+
~~~~~~~~~~~~~~~~~
|
|
160
|
+
|
|
161
|
+
* Use `current master`__ version of rapidjson
|
|
162
|
+
|
|
163
|
+
__ https://github.com/Tencent/rapidjson/compare/5e17dbed34eef33af8f3e734820b5dc547a2a3aa...ab1842a2dae061284c0a62dca1cc6d5e7e37e346
|
|
164
|
+
|
|
165
|
+
* Generate wheels on PyPI using Python 3.13b1 release, thanks to cibuildwheel `2.18.0`__
|
|
166
|
+
|
|
167
|
+
__ https://cibuildwheel.pypa.io/en/stable/changelog/#v2180
|
|
168
|
+
|
|
169
|
+
|
|
158
170
|
1.16 (2024-02-28)
|
|
159
171
|
~~~~~~~~~~~~~~~~~
|
|
160
172
|
|
|
@@ -201,7 +213,7 @@ Changes
|
|
|
201
213
|
|
|
202
214
|
* Use `current master`__ version of rapidjson
|
|
203
215
|
|
|
204
|
-
__ https://github.com/Tencent/rapidjson/compare/083f359f5c36198accc2b9360ce1e32a333231d9...
|
|
216
|
+
__ https://github.com/Tencent/rapidjson/compare/083f359f5c36198accc2b9360ce1e32a333231d9...5e17dbed34eef33af8f3e734820b5dc547a2a3aa
|
|
205
217
|
|
|
206
218
|
* Use cibuildwheel `2.15.0`__
|
|
207
219
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# :Project: python-rapidjson -- reST tables writer tool
|
|
3
3
|
# :Author: Lele Gaifax <lele@metapensiero.it>
|
|
4
4
|
# :License: MIT License
|
|
5
|
-
# :Copyright: © 2017, 2018, 2020, 2021, 2022 Lele Gaifax
|
|
5
|
+
# :Copyright: © 2017, 2018, 2020, 2021, 2022, 2024 Lele Gaifax
|
|
6
6
|
#
|
|
7
7
|
|
|
8
8
|
# Assume we did::
|
|
@@ -126,10 +126,10 @@ def dumps_and_loads(benchmarks):
|
|
|
126
126
|
'.. [2] ``rapidjson.Encoder()``',
|
|
127
127
|
'.. [3] ``rapidjson.dumps(number_mode=NM_NATIVE)``',
|
|
128
128
|
'.. [4] ``rapidjson.Encoder(number_mode=NM_NATIVE)``',
|
|
129
|
-
'.. [5] `simdjson
|
|
130
|
-
'.. [6] `orjson 3.
|
|
131
|
-
'.. [7] `ujson 5.
|
|
132
|
-
'.. [8] `simplejson 3.
|
|
129
|
+
'.. [5] `simdjson 6.0.2 <https://pypi.org/project/pysimdjson/6.0.2/>`__',
|
|
130
|
+
'.. [6] `orjson 3.10.1 <https://pypi.org/project/orjson/3.10.1/>`__',
|
|
131
|
+
'.. [7] `ujson 5.9.0 <https://pypi.org/project/ujson/5.9.0/>`__',
|
|
132
|
+
'.. [8] `simplejson 3.19.2 <https://pypi.org/pypi/simplejson/3.19.2>`__',
|
|
133
133
|
'.. [9] Python %d.%d.%d standard library ``json``' % sys.version_info[:3],
|
|
134
134
|
'.. [10] ``rapidjson.loads()``',
|
|
135
135
|
'.. [11] ``rapidjson.Decoder()``',
|
|
@@ -5,41 +5,41 @@ Serialization
|
|
|
5
5
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
6
6
|
| serialize | ``dumps()``\ [1]_ | ``Encoder()``\ [2]_ | ``dumps(n)``\ [3]_ | ``Encoder(n)``\ [4]_ | simdjson\ [5]_ | orjson\ [6]_ | ujson\ [7]_ | simplejson\ [8]_ | stdlib\ [9]_ |
|
|
7
7
|
+=======================+======================+======================+======================+======================+======================+======================+======================+======================+======================+
|
|
8
|
-
| 100 arrays dict | 1.00 |
|
|
8
|
+
| 100 arrays dict | 1.00 | 1.01 | 0.72 | 0.73 | 3.00 | **0.26** | 1.23 | 5.73 | 2.89 |
|
|
9
9
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
10
|
-
| 100 dicts array | 1.00 |
|
|
10
|
+
| 100 dicts array | 1.00 | 1.00 | 0.74 | 0.72 | 2.83 | **0.31** | 1.14 | 6.27 | 2.79 |
|
|
11
11
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
12
|
-
| 256 Trues array | 1.00 | 1.
|
|
12
|
+
| 256 Trues array | 1.00 | 1.01 | 1.14 | 1.01 | 2.41 | **0.40** | 1.63 | 2.42 | 2.36 |
|
|
13
13
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
14
|
-
| 256 ascii array | 1.00 | 1.
|
|
14
|
+
| 256 ascii array | 1.00 | 1.04 | 1.03 | 1.07 | 2.12 | **0.16** | 1.02 | 2.49 | 2.04 |
|
|
15
15
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
16
|
-
| 256 doubles array | 1.00 | 0.
|
|
16
|
+
| 256 doubles array | 1.00 | 0.95 | 1.01 | 1.00 | 1.03 | **0.05** | 0.22 | 0.92 | 0.98 |
|
|
17
17
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
18
|
-
| 256 unicode array | 1.00 | 0.
|
|
18
|
+
| 256 unicode array | 1.00 | 0.89 | 0.89 | 0.93 | 0.65 | **0.02** | 0.36 | 0.64 | 0.63 |
|
|
19
19
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
20
|
-
| apache.json | 1.00 | 1.
|
|
20
|
+
| apache.json | 1.00 | 1.10 | 1.04 | 1.09 | 2.92 | **0.34** | 1.58 | 4.66 | 2.93 |
|
|
21
21
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
22
|
-
| canada.json | 1.00 | 1.00 | 0.
|
|
22
|
+
| canada.json | 1.00 | 1.00 | 0.98 | 0.98 | 1.05 | **0.06** | 0.27 | 1.51 | 1.06 |
|
|
23
23
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
24
|
-
| complex object | 1.00 | 1.00 | 0.
|
|
24
|
+
| complex object | 1.00 | 1.00 | 0.89 | 0.88 | 1.78 | **0.19** | 0.78 | 2.61 | 1.76 |
|
|
25
25
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
26
|
-
| composite object | 1.00 |
|
|
26
|
+
| composite object | 1.00 | 1.04 | 0.70 | 0.66 | 2.16 | **0.30** | 1.13 | 2.74 | 2.15 |
|
|
27
27
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
28
|
-
| ctm.json | 1.00 |
|
|
28
|
+
| ctm.json | 1.00 | 0.99 | 0.73 | 0.72 | 2.31 | **0.24** | 1.11 | 6.17 | 2.53 |
|
|
29
29
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
30
|
-
| github.json | 1.00 | 1.00 | 0.
|
|
30
|
+
| github.json | 1.00 | 1.00 | 0.94 | 0.94 | 2.29 | **0.21** | 1.19 | 3.07 | 2.27 |
|
|
31
31
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
32
|
-
| instruments.json | 1.00 | 1.
|
|
32
|
+
| instruments.json | 1.00 | 1.00 | 0.66 | 0.66 | 2.16 | **0.20** | 1.12 | 2.99 | 2.16 |
|
|
33
33
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
34
|
-
| mesh.json | 1.00 |
|
|
34
|
+
| mesh.json | 1.00 | 1.01 | 0.91 | 0.91 | 1.00 | **0.09** | 0.30 | 1.17 | 1.00 |
|
|
35
35
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
36
|
-
| truenull.json | 1.00 | 1.
|
|
36
|
+
| truenull.json | 1.00 | 1.00 | 1.00 | 1.01 | 1.94 | **0.26** | 1.59 | 1.92 | 1.93 |
|
|
37
37
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
38
|
-
| tweet.json | 1.00 |
|
|
38
|
+
| tweet.json | 1.00 | 1.00 | 0.96 | 0.92 | 2.43 | **0.25** | 1.32 | 3.55 | 2.36 |
|
|
39
39
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
40
|
-
| twitter.json | 1.00 | 1.00 | 0.
|
|
40
|
+
| twitter.json | 1.00 | 1.00 | 0.93 | 0.93 | 1.91 | **0.19** | 1.20 | 2.40 | 1.93 |
|
|
41
41
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
42
|
-
| overall | 1.00 |
|
|
42
|
+
| overall | 1.00 | 1.01 | 0.81 | 0.82 | 2.26 | **0.18** | 0.88 | 4.12 | 2.19 |
|
|
43
43
|
+-----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+
|
|
44
44
|
|
|
45
45
|
Deserialization
|
|
@@ -48,41 +48,41 @@ Deserialization
|
|
|
48
48
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
49
49
|
| deserialize | ``loads()``\ [10]_ | ``Decoder()``\ [11]_ | ``loads(n)``\ [12]_ | ``Decoder(n)``\ [13]_ | simdjson | orjson | ujson | simplejson | stdlib |
|
|
50
50
|
+=======================+=======================+=======================+=======================+=======================+=======================+=======================+=======================+=======================+=======================+
|
|
51
|
-
| 100 arrays dict | 1.00 | 1.
|
|
51
|
+
| 100 arrays dict | 1.00 | 1.07 | 0.89 | 0.97 | 0.95 | **0.65** | 0.92 | 1.22 | 1.05 |
|
|
52
52
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
53
|
-
| 100 dicts array | 1.00 | 0.
|
|
53
|
+
| 100 dicts array | 1.00 | 0.98 | 0.86 | 0.85 | 0.62 | **0.39** | 0.68 | 1.33 | 1.04 |
|
|
54
54
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
55
|
-
| 256 Trues array | 1.00 | 1.
|
|
55
|
+
| 256 Trues array | 1.00 | 1.06 | 1.10 | 1.11 | 1.06 | **0.53** | 0.95 | 1.49 | 1.55 |
|
|
56
56
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
57
|
-
| 256 ascii array | 1.00 |
|
|
57
|
+
| 256 ascii array | 1.00 | 1.01 | 1.02 | 1.00 | 0.50 | **0.39** | 1.18 | 1.01 | 0.94 |
|
|
58
58
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
59
|
-
| 256 doubles array | 1.00 | 1.00 | 0.
|
|
59
|
+
| 256 doubles array | 1.00 | 1.00 | 0.25 | 0.25 | 0.19 | **0.17** | 0.57 | 1.06 | 1.05 |
|
|
60
60
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
61
|
-
| 256 unicode array | 1.00 |
|
|
61
|
+
| 256 unicode array | 1.00 | 0.97 | 0.95 | 0.95 | 0.78 | **0.34** | 0.65 | 3.83 | 1.27 |
|
|
62
62
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
63
|
-
| apache.json | 1.00 | 1.
|
|
63
|
+
| apache.json | 1.00 | 1.01 | 1.01 | 1.01 | 0.67 | **0.48** | 0.81 | 0.92 | 0.76 |
|
|
64
64
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
65
|
-
| canada.json | 1.00 |
|
|
65
|
+
| canada.json | 1.00 | 0.99 | 0.36 | 0.36 | 0.33 | **0.30** | 0.55 | 0.99 | 0.97 |
|
|
66
66
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
67
|
-
| complex object | 1.00 | 1.
|
|
67
|
+
| complex object | 1.00 | 1.06 | 0.89 | 0.89 | 0.63 | **0.35** | 0.70 | 1.23 | 1.07 |
|
|
68
68
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
69
|
-
| composite object | 1.00 |
|
|
69
|
+
| composite object | 1.00 | 1.00 | 0.83 | 0.85 | 0.61 | **0.42** | 0.62 | 1.50 | 1.10 |
|
|
70
70
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
71
|
-
| ctm.json | 1.00 | 1.
|
|
71
|
+
| ctm.json | 1.00 | 1.03 | 0.93 | 0.95 | 0.84 | **0.61** | 1.07 | 1.12 | 1.01 |
|
|
72
72
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
73
|
-
| github.json | 1.00 | 1.00 | 0.
|
|
73
|
+
| github.json | 1.00 | 1.00 | 0.99 | 0.98 | 0.66 | **0.39** | 0.80 | 0.95 | 0.85 |
|
|
74
74
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
75
|
-
| instruments.json | 1.00 | 1.00 | 0.
|
|
75
|
+
| instruments.json | 1.00 | 1.00 | 0.85 | 0.84 | 0.61 | **0.35** | 0.67 | 1.20 | 0.97 |
|
|
76
76
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
77
|
-
| mesh.json | 1.00 | 1.01 | 0.
|
|
77
|
+
| mesh.json | 1.00 | 1.01 | 0.50 | 0.50 | 0.42 | **0.36** | 0.66 | 1.51 | 1.11 |
|
|
78
78
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
79
|
-
| truenull.json | 1.00 |
|
|
79
|
+
| truenull.json | 1.00 | 1.09 | 1.16 | 1.07 | 0.92 | **0.70** | 0.92 | 1.31 | 1.41 |
|
|
80
80
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
81
|
-
| tweet.json | 1.00 |
|
|
81
|
+
| tweet.json | 1.00 | 0.99 | 0.97 | 0.96 | 0.63 | **0.36** | 0.85 | 1.17 | 1.01 |
|
|
82
82
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
83
|
-
| twitter.json | 1.00 |
|
|
83
|
+
| twitter.json | 1.00 | 0.99 | 0.94 | 0.94 | 0.64 | **0.37** | 0.88 | 0.97 | 0.83 |
|
|
84
84
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
85
|
-
| overall | 1.00 | 1.
|
|
85
|
+
| overall | 1.00 | 1.06 | 0.84 | 0.91 | 0.89 | **0.62** | 0.89 | 1.20 | 1.04 |
|
|
86
86
|
+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
87
87
|
|
|
88
88
|
ASCII vs UTF-8 Serialization
|
|
@@ -91,22 +91,22 @@ ASCII vs UTF-8 Serialization
|
|
|
91
91
|
+-------------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
92
92
|
| serialize | ``rj ascii``\ [15]_ | ``rj utf8``\ [16]_ | ``uj ascii``\ [17]_ | ``uj utf8``\ [18]_ | ``sj ascii``\ [19]_ | ``sj utf8``\ [20]_ | ``json ascii``\ [21]_ | ``json utf8``\ [22]_ |
|
|
93
93
|
+=========================+=======================+=======================+=======================+=======================+=======================+=======================+=======================+=======================+
|
|
94
|
-
| Long ASCII string | 1.00 | 0.
|
|
94
|
+
| Long ASCII string | 1.00 | 0.78 | 0.49 | **0.48** | 1.91 | 2.36 | 1.54 | 1.41 |
|
|
95
95
|
+-------------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
96
|
-
| Long Unicode string | 1.00 | 0.
|
|
96
|
+
| Long Unicode string | 1.00 | 0.47 | 0.27 | 0.35 | 0.60 | 0.50 | 0.54 | **0.27** |
|
|
97
97
|
+-------------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
98
|
-
| overall | 1.00 | 0.
|
|
98
|
+
| overall | 1.00 | 0.52 | **0.31** | 0.37 | 0.81 | 0.80 | 0.70 | 0.45 |
|
|
99
99
|
+-------------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+-----------------------+
|
|
100
100
|
|
|
101
101
|
.. [1] ``rapidjson.dumps()``
|
|
102
102
|
.. [2] ``rapidjson.Encoder()``
|
|
103
103
|
.. [3] ``rapidjson.dumps(number_mode=NM_NATIVE)``
|
|
104
104
|
.. [4] ``rapidjson.Encoder(number_mode=NM_NATIVE)``
|
|
105
|
-
.. [5] `simdjson
|
|
106
|
-
.. [6] `orjson 3.
|
|
107
|
-
.. [7] `ujson 5.
|
|
108
|
-
.. [8] `simplejson 3.
|
|
109
|
-
.. [9] Python 3.
|
|
105
|
+
.. [5] `simdjson 6.0.2 <https://pypi.org/project/pysimdjson/6.0.2/>`__
|
|
106
|
+
.. [6] `orjson 3.10.1 <https://pypi.org/project/orjson/3.10.1/>`__
|
|
107
|
+
.. [7] `ujson 5.9.0 <https://pypi.org/project/ujson/5.9.0/>`__
|
|
108
|
+
.. [8] `simplejson 3.19.2 <https://pypi.org/pypi/simplejson/3.19.2>`__
|
|
109
|
+
.. [9] Python 3.11.8 standard library ``json``
|
|
110
110
|
.. [10] ``rapidjson.loads()``
|
|
111
111
|
.. [11] ``rapidjson.Decoder()``
|
|
112
112
|
.. [12] ``rapidjson.loads(number_mode=NM_NATIVE)``
|