Skip to content

Commit e8727c8

Browse files
committed
3.2.1
1 parent 7163613 commit e8727c8

12 files changed

Lines changed: 50 additions & 44 deletions

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 3.2.1 - 2020-07-03
4+
5+
### Fixed
6+
7+
- Fix `orjson.dumps(..., **{})` raising `TypeError` on python3.6.
8+
39
## 3.2.0 - 2020-06-30
410

511
### Added

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "orjson"
3-
version = "3.2.0"
3+
version = "3.2.1"
44
authors = ["ijl <ijl@mailbox.org>"]
55
description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
66
edition = "2018"

README.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -921,81 +921,81 @@ format, containing floats and arrays, indented.
921921

922922
| Library | Median latency (milliseconds) | Operations per second | Relative (latency) |
923923
|------------|---------------------------------|-------------------------|----------------------|
924-
| orjson | 0.58 | 1706.8 | 1 |
925-
| ujson | 2.09 | 473 | 3.58 |
926-
| rapidjson | 2.47 | 403.4 | 4.23 |
927-
| simplejson | 3.22 | 308.5 | 5.51 |
928-
| json | 3.33 | 300 | 5.69 |
924+
| orjson | 0.58 | 1734 | 1 |
925+
| ujson | 2.11 | 472.8 | 3.66 |
926+
| rapidjson | 2.38 | 419.1 | 4.13 |
927+
| simplejson | 3.32 | 301.1 | 5.75 |
928+
| json | 3.34 | 299.4 | 5.78 |
929929

930930
#### twitter.json deserialization
931931

932932
| Library | Median latency (milliseconds) | Operations per second | Relative (latency) |
933933
|------------|---------------------------------|-------------------------|----------------------|
934-
| orjson | 2.61 | 383 | 1 |
935-
| ujson | 2.83 | 353 | 1.09 |
936-
| rapidjson | 3.75 | 266.8 | 1.44 |
937-
| simplejson | 3.26 | 306.8 | 1.25 |
938-
| json | 3.79 | 263.8 | 1.45 |
934+
| orjson | 2.43 | 411.8 | 1 |
935+
| ujson | 2.91 | 344.1 | 1.2 |
936+
| rapidjson | 3.84 | 259.8 | 1.58 |
937+
| simplejson | 3.59 | 277.1 | 1.48 |
938+
| json | 4.18 | 239.3 | 1.72 |
939939

940940
#### github.json serialization
941941

942942
| Library | Median latency (milliseconds) | Operations per second | Relative (latency) |
943943
|------------|---------------------------------|-------------------------|----------------------|
944-
| orjson | 0.07 | 14806.2 | 1 |
945-
| ujson | 0.21 | 4850 | 3.05 |
946-
| rapidjson | 0.27 | 3746.4 | 3.94 |
947-
| simplejson | 0.45 | 2221.1 | 6.66 |
948-
| json | 0.36 | 2749.4 | 5.38 |
944+
| orjson | 0.06 | 15386.9 | 1 |
945+
| ujson | 0.22 | 4578.4 | 3.36 |
946+
| rapidjson | 0.26 | 3845.2 | 4 |
947+
| simplejson | 0.44 | 2272.3 | 6.78 |
948+
| json | 0.35 | 2844.6 | 5.4 |
949949

950950
#### github.json deserialization
951951

952952
| Library | Median latency (milliseconds) | Operations per second | Relative (latency) |
953953
|------------|---------------------------------|-------------------------|----------------------|
954-
| orjson | 0.22 | 4617.1 | 1 |
955-
| ujson | 0.27 | 3715.6 | 1.25 |
956-
| rapidjson | 0.31 | 3189.1 | 1.45 |
957-
| simplejson | 0.29 | 3505.5 | 1.32 |
958-
| json | 0.32 | 3161.7 | 1.46 |
954+
| orjson | 0.2 | 5094.7 | 1 |
955+
| ujson | 0.29 | 3491.9 | 1.46 |
956+
| rapidjson | 0.33 | 3033 | 1.68 |
957+
| simplejson | 0.29 | 3501.7 | 1.46 |
958+
| json | 0.3 | 3326.7 | 1.53 |
959959

960960
#### citm_catalog.json serialization
961961

962962
| Library | Median latency (milliseconds) | Operations per second | Relative (latency) |
963963
|------------|---------------------------------|-------------------------|----------------------|
964-
| orjson | 1 | 1005 | 1 |
965-
| ujson | 3.63 | 275.6 | 3.64 |
966-
| rapidjson | 3.5 | 287.1 | 3.51 |
967-
| simplejson | 10.98 | 89.8 | 11.04 |
968-
| json | 6.95 | 141.4 | 6.98 |
964+
| orjson | 1.01 | 993.3 | 1 |
965+
| ujson | 3.65 | 274.2 | 3.62 |
966+
| rapidjson | 3.56 | 281 | 3.54 |
967+
| simplejson | 11.5 | 86.2 | 11.43 |
968+
| json | 6.92 | 144.3 | 6.87 |
969969

970970
#### citm_catalog.json deserialization
971971

972972
| Library | Median latency (milliseconds) | Operations per second | Relative (latency) |
973973
|------------|---------------------------------|-------------------------|----------------------|
974-
| orjson | 4.48 | 223.1 | 1 |
975-
| ujson | 5.57 | 179.4 | 1.24 |
976-
| rapidjson | 7.52 | 132.4 | 1.68 |
977-
| simplejson | 7.41 | 134.6 | 1.65 |
978-
| json | 7.92 | 126.2 | 1.77 |
974+
| orjson | 4.31 | 232.2 | 1 |
975+
| ujson | 5.6 | 178.6 | 1.3 |
976+
| rapidjson | 7.53 | 132.8 | 1.75 |
977+
| simplejson | 7.58 | 131.9 | 1.76 |
978+
| json | 7.75 | 128.9 | 1.8 |
979979

980980
#### canada.json serialization
981981

982982
| Library | Median latency (milliseconds) | Operations per second | Relative (latency) |
983983
|------------|---------------------------------|-------------------------|----------------------|
984-
| orjson | 4.61 | 217.1 | 1 |
985-
| ujson | 19.2 | 53.2 | 4.17 |
986-
| rapidjson | 60.74 | 16.4 | 13.19 |
987-
| simplejson | 78.13 | 12.7 | 16.97 |
988-
| json | 62.48 | 16 | 13.57 |
984+
| orjson | 4.64 | 215.5 | 1 |
985+
| ujson | 19.64 | 51.5 | 4.23 |
986+
| rapidjson | 61.51 | 16.3 | 13.26 |
987+
| simplejson | 80.02 | 12.5 | 17.25 |
988+
| json | 61.46 | 16.3 | 13.25 |
989989

990990
#### canada.json deserialization
991991

992992
| Library | Median latency (milliseconds) | Operations per second | Relative (latency) |
993993
|------------|---------------------------------|-------------------------|----------------------|
994-
| orjson | 9.95 | 100.9 | 1 |
995-
| ujson | 15.73 | 63.7 | 1.58 |
996-
| rapidjson | 37.59 | 26.6 | 3.78 |
997-
| simplejson | 36.12 | 27.7 | 3.63 |
998-
| json | 37.66 | 26.6 | 3.79 |
994+
| orjson | 9.82 | 102 | 1 |
995+
| ujson | 16.56 | 60.5 | 1.69 |
996+
| rapidjson | 38.17 | 26.1 | 3.89 |
997+
| simplejson | 37.11 | 26.9 | 3.78 |
998+
| json | 37.98 | 27.1 | 3.87 |
999999

10001000
### Memory
10011001

@@ -1048,8 +1048,8 @@ calling `loads()` on the fixture.
10481048

10491049
### Reproducing
10501050

1051-
The above was measured using Python 3.8.2 on Linux (x86_64) with
1052-
orjson 3.0.0, ujson 2.0.3, python-rapidson 0.9.1, and simplejson 3.17.0.
1051+
The above was measured using Python 3.8.3 on Linux (x86_64) with
1052+
orjson 3.2.1, ujson 3.0.0, python-rapidson 0.9.1, and simplejson 3.17.0.
10531053

10541054
The latency results can be reproduced using the `pybench` and `graph`
10551055
scripts. The memory results can be reproduced using the `pymem` script.

doc/canada_deserialization.png

515 Bytes
Loading

doc/canada_serialization.png

-164 Bytes
Loading
-417 Bytes
Loading

doc/citm_catalog_serialization.png

-186 Bytes
Loading

doc/github_deserialization.png

172 Bytes
Loading

doc/github_serialization.png

-355 Bytes
Loading

0 commit comments

Comments
 (0)