generated from tophat/new-project-kit
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(serializer): preserve key ordering of OrderedDict
BREAKING CHANGE: Key order is now preserved if using OrderedDict in both the Amber serializer and JSON serializer.
- Loading branch information
Noah Negin-Ulster
committed
Dec 30, 2022
1 parent
80e2fcd
commit 0a2289a
Showing
6 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/syrupy/extensions/json/__snapshots__/test_json_serializer/test_ordered_dict.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"b": 0, | ||
"a": { | ||
"b": true, | ||
"a": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0a2289a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
benchmarks/test_1000x.py::test_1000x_reads
0.7739783843137239
iter/sec (stddev: 0.05302717353296172
)0.8381195242511715
iter/sec (stddev: 0.04240394140227035
)1.08
benchmarks/test_1000x.py::test_1000x_writes
0.7539326694711668
iter/sec (stddev: 0.05860716427765634
)0.8626650008455868
iter/sec (stddev: 0.05153168408309042
)1.14
benchmarks/test_standard.py::test_standard
0.7197422881665411
iter/sec (stddev: 0.06798472867402014
)0.7465173870618954
iter/sec (stddev: 0.1502009356924296
)1.04
This comment was automatically generated by workflow using github-action-benchmark.