@@ -131,14 +131,14 @@ pass `bytes`. This has lower memory usage and lower latency.
131131
132132orjson maintains a cache of map keys for the duration of the process. This
133133causes a net reduction in memory usage by avoiding duplicate strings. The
134- keys must be at most 64 bytes to be cached and 512 entries are stored.
134+ keys must be at most 64 chars to be cached and 512 entries are stored.
135135
136136It raises ` JSONDecodeError ` if given an invalid type or invalid
137137JSON. This includes if the input contains ` NaN ` , ` Infinity ` , or ` -Infinity ` ,
138138which the standard library allows, but is not valid JSON.
139139
140- ` JSONDecodeError ` is a subclass of ` ValueError ` . This is for
141- compatibility with the standard library.
140+ ` JSONDecodeError ` is a subclass of ` json.JSONDecodeError ` and ` ValueError ` .
141+ This is for compatibility with the standard library.
142142
143143### datetime
144144
@@ -268,10 +268,10 @@ ValueError: Parse error at offset 1: The surrogate pair in string is invalid.
268268
269269## Testing
270270
271- The library has comprehensive tests. There are unit tests against the
272- roundtrip, jsonchecker, and fixtures files of the
271+ The library has comprehensive tests. There are tests against fixtures in the
272+ [ JSONTestSuite ] ( https://github.com/nst/JSONTestSuite ) and
273273[ nativejson-benchmark] ( https://github.com/miloyip/nativejson-benchmark )
274- repository . It is tested to not crash against the
274+ repositories . It is tested to not crash against the
275275[ Big List of Naughty Strings] ( https://github.com/minimaxir/big-list-of-naughty-strings ) .
276276It is tested to not leak memory. It is tested to be correct against
277277input from the PyJFuzz JSON fuzzer. It is tested to not crash
@@ -408,8 +408,8 @@ calling `loads()` on the fixture.
408408| orjson | 12.8 | 2.7 |
409409| ujson | 12.8 | 4.6 |
410410| rapidjson | 14.3 | 6.4 |
411- | json | 12.3 | 2.5 |
412411| simplejson | 13 | 2.8 |
412+ | json | 12.3 | 2.5 |
413413
414414#### github.json
415415
@@ -418,8 +418,8 @@ calling `loads()` on the fixture.
418418| orjson | 12.3 | 0.3 |
419419| ujson | 12.4 | 0.5 |
420420| rapidjson | 13.8 | 0.5 |
421- | json | 11.7 | 0.3 |
422421| simplejson | 12.4 | 0.3 |
422+ | json | 11.7 | 0.3 |
423423
424424#### citm_catalog.json
425425
@@ -428,18 +428,18 @@ calling `loads()` on the fixture.
428428| orjson | 13.9 | 8.3 |
429429| ujson | 13.8 | 12 |
430430| rapidjson | 15.5 | 20.3 |
431- | json | 13.4 | 20.2 |
432431| simplejson | 14.1 | 21.8 |
432+ | json | 13.4 | 20.2 |
433433
434434#### canada.json
435435
436436| Library | import, read() RSS (MiB) | loads() increase in RSS (MiB) |
437437| ------------| ----------------------------| ---------------------------------|
438438| orjson | 16.5 | 17.5 |
439- | ujson | 16.4 | 19.4 |
439+ | ujson | | |
440440| rapidjson | 17.8 | 19.8 |
441- | json | 16.1 | 21.3 |
442441| simplejson | 16.5 | 21.3 |
442+ | json | 16.1 | 21.3 |
443443
444444### Reproducing
445445
0 commit comments