mirror of
https://github.com/json-c/json-c.git
synced 2026-03-31 10:59:06 +08:00
tests: add test_deep_copy test
Seems to perform better than outputting to string and re-parsing it. BENCHMARK - 1000000 iterations of 'dst2 = json_tokener_parse(json_object_get_string(src2))' took 20 seconds BENCHMARK - 1000000 iterations of 'dst2 = json_tokener_parse(json_object_get_string(src2))' took 7 seconds It should make a difference on embedded systems. The test was performed on a i5 desktop CPU [~3.5 years of age]. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -25,6 +25,7 @@
|
||||
/tests/test_cast
|
||||
/tests/test_charcase
|
||||
/tests/test_compare
|
||||
/tests/test_deep_copy
|
||||
/tests/test_double_serializer
|
||||
/tests/test_float
|
||||
/tests/test_json_pointer
|
||||
|
||||
Reference in New Issue
Block a user