Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move ToXML from RHT to TreeNode #863

Merged
merged 2 commits into from
May 13, 2024
Merged

Move ToXML from RHT to TreeNode #863

merged 2 commits into from
May 13, 2024

Conversation

raararaara
Copy link
Contributor

@raararaara raararaara commented May 13, 2024

What this PR does / why we need it:

Move ToMXL from RHT to TreeNode

Which issue(s) this PR fixes:

Related to yorkie-team/yorkie-js-sdk#805

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

Copy link

codecov bot commented May 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.81%. Comparing base (24950f5) to head (fc008f7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #863   +/-   ##
=======================================
  Coverage   50.81%   50.81%           
=======================================
  Files          70       70           
  Lines       10285    10285           
=======================================
  Hits         5226     5226           
  Misses       4530     4530           
  Partials      529      529           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go Benchmark

Benchmark suite Current: fc008f7 Previous: e360338 Ratio
BenchmarkDocument/constructor_test 1397 ns/op 1224 B/op 21 allocs/op 1392 ns/op 1224 B/op 21 allocs/op 1.00
BenchmarkDocument/constructor_test - ns/op 1397 ns/op 1392 ns/op 1.00
BenchmarkDocument/constructor_test - B/op 1224 B/op 1224 B/op 1
BenchmarkDocument/constructor_test - allocs/op 21 allocs/op 21 allocs/op 1
BenchmarkDocument/status_test 859.5 ns/op 1192 B/op 19 allocs/op 981.2 ns/op 1192 B/op 19 allocs/op 0.88
BenchmarkDocument/status_test - ns/op 859.5 ns/op 981.2 ns/op 0.88
BenchmarkDocument/status_test - B/op 1192 B/op 1192 B/op 1
BenchmarkDocument/status_test - allocs/op 19 allocs/op 19 allocs/op 1
BenchmarkDocument/equals_test 7444 ns/op 6977 B/op 124 allocs/op 7641 ns/op 6977 B/op 124 allocs/op 0.97
BenchmarkDocument/equals_test - ns/op 7444 ns/op 7641 ns/op 0.97
BenchmarkDocument/equals_test - B/op 6977 B/op 6977 B/op 1
BenchmarkDocument/equals_test - allocs/op 124 allocs/op 124 allocs/op 1
BenchmarkDocument/nested_update_test 16940 ns/op 12059 B/op 260 allocs/op 17253 ns/op 12058 B/op 260 allocs/op 0.98
BenchmarkDocument/nested_update_test - ns/op 16940 ns/op 17253 ns/op 0.98
BenchmarkDocument/nested_update_test - B/op 12059 B/op 12058 B/op 1.00
BenchmarkDocument/nested_update_test - allocs/op 260 allocs/op 260 allocs/op 1
BenchmarkDocument/delete_test 22922 ns/op 15284 B/op 339 allocs/op 22606 ns/op 15283 B/op 339 allocs/op 1.01
BenchmarkDocument/delete_test - ns/op 22922 ns/op 22606 ns/op 1.01
BenchmarkDocument/delete_test - B/op 15284 B/op 15283 B/op 1.00
BenchmarkDocument/delete_test - allocs/op 339 allocs/op 339 allocs/op 1
BenchmarkDocument/object_test 8620 ns/op 6753 B/op 118 allocs/op 8504 ns/op 6753 B/op 118 allocs/op 1.01
BenchmarkDocument/object_test - ns/op 8620 ns/op 8504 ns/op 1.01
BenchmarkDocument/object_test - B/op 6753 B/op 6753 B/op 1
BenchmarkDocument/object_test - allocs/op 118 allocs/op 118 allocs/op 1
BenchmarkDocument/array_test 35781 ns/op 11883 B/op 274 allocs/op 29221 ns/op 11883 B/op 274 allocs/op 1.22
BenchmarkDocument/array_test - ns/op 35781 ns/op 29221 ns/op 1.22
BenchmarkDocument/array_test - B/op 11883 B/op 11883 B/op 1
BenchmarkDocument/array_test - allocs/op 274 allocs/op 274 allocs/op 1
BenchmarkDocument/text_test 31096 ns/op 14915 B/op 470 allocs/op 31338 ns/op 14916 B/op 470 allocs/op 0.99
BenchmarkDocument/text_test - ns/op 31096 ns/op 31338 ns/op 0.99
BenchmarkDocument/text_test - B/op 14915 B/op 14916 B/op 1.00
BenchmarkDocument/text_test - allocs/op 470 allocs/op 470 allocs/op 1
BenchmarkDocument/text_composition_test 29667 ns/op 18430 B/op 479 allocs/op 30272 ns/op 18430 B/op 479 allocs/op 0.98
BenchmarkDocument/text_composition_test - ns/op 29667 ns/op 30272 ns/op 0.98
BenchmarkDocument/text_composition_test - B/op 18430 B/op 18430 B/op 1
BenchmarkDocument/text_composition_test - allocs/op 479 allocs/op 479 allocs/op 1
BenchmarkDocument/rich_text_test 82103 ns/op 38677 B/op 1149 allocs/op 81889 ns/op 38676 B/op 1149 allocs/op 1.00
BenchmarkDocument/rich_text_test - ns/op 82103 ns/op 81889 ns/op 1.00
BenchmarkDocument/rich_text_test - B/op 38677 B/op 38676 B/op 1.00
BenchmarkDocument/rich_text_test - allocs/op 1149 allocs/op 1149 allocs/op 1
BenchmarkDocument/counter_test 17539 ns/op 10658 B/op 242 allocs/op 17318 ns/op 10658 B/op 242 allocs/op 1.01
BenchmarkDocument/counter_test - ns/op 17539 ns/op 17318 ns/op 1.01
BenchmarkDocument/counter_test - B/op 10658 B/op 10658 B/op 1
BenchmarkDocument/counter_test - allocs/op 242 allocs/op 242 allocs/op 1
BenchmarkDocument/text_edit_gc_100 2943457 ns/op 1658564 B/op 17094 allocs/op 2915907 ns/op 1658474 B/op 17093 allocs/op 1.01
BenchmarkDocument/text_edit_gc_100 - ns/op 2943457 ns/op 2915907 ns/op 1.01
BenchmarkDocument/text_edit_gc_100 - B/op 1658564 B/op 1658474 B/op 1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op 17094 allocs/op 17093 allocs/op 1.00
BenchmarkDocument/text_edit_gc_1000 233181215 ns/op 144378329 B/op 200926 allocs/op 229391222 ns/op 144390601 B/op 200981 allocs/op 1.02
BenchmarkDocument/text_edit_gc_1000 - ns/op 233181215 ns/op 229391222 ns/op 1.02
BenchmarkDocument/text_edit_gc_1000 - B/op 144378329 B/op 144390601 B/op 1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op 200926 allocs/op 200981 allocs/op 1.00
BenchmarkDocument/text_split_gc_100 3477979 ns/op 2317114 B/op 16197 allocs/op 3448117 ns/op 2316794 B/op 16197 allocs/op 1.01
BenchmarkDocument/text_split_gc_100 - ns/op 3477979 ns/op 3448117 ns/op 1.01
BenchmarkDocument/text_split_gc_100 - B/op 2317114 B/op 2316794 B/op 1.00
BenchmarkDocument/text_split_gc_100 - allocs/op 16197 allocs/op 16197 allocs/op 1
BenchmarkDocument/text_split_gc_1000 297179925 ns/op 228915980 B/op 203922 allocs/op 293180226 ns/op 228899532 B/op 203842 allocs/op 1.01
BenchmarkDocument/text_split_gc_1000 - ns/op 297179925 ns/op 293180226 ns/op 1.01
BenchmarkDocument/text_split_gc_1000 - B/op 228915980 B/op 228899532 B/op 1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op 203922 allocs/op 203842 allocs/op 1.00
BenchmarkDocument/text_delete_all_10000 12040976 ns/op 5809833 B/op 40671 allocs/op 11533838 ns/op 5812387 B/op 40674 allocs/op 1.04
BenchmarkDocument/text_delete_all_10000 - ns/op 12040976 ns/op 11533838 ns/op 1.04
BenchmarkDocument/text_delete_all_10000 - B/op 5809833 B/op 5812387 B/op 1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op 40671 allocs/op 40674 allocs/op 1.00
BenchmarkDocument/text_delete_all_100000 218403864 ns/op 81908880 B/op 411672 allocs/op 185022988 ns/op 81890693 B/op 411585 allocs/op 1.18
BenchmarkDocument/text_delete_all_100000 - ns/op 218403864 ns/op 185022988 ns/op 1.18
BenchmarkDocument/text_delete_all_100000 - B/op 81908880 B/op 81890693 B/op 1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op 411672 allocs/op 411585 allocs/op 1.00
BenchmarkDocument/text_100 225684 ns/op 120139 B/op 5082 allocs/op 240093 ns/op 120140 B/op 5082 allocs/op 0.94
BenchmarkDocument/text_100 - ns/op 225684 ns/op 240093 ns/op 0.94
BenchmarkDocument/text_100 - B/op 120139 B/op 120140 B/op 1.00
BenchmarkDocument/text_100 - allocs/op 5082 allocs/op 5082 allocs/op 1
BenchmarkDocument/text_1000 2447449 ns/op 1169127 B/op 50086 allocs/op 2585180 ns/op 1169129 B/op 50086 allocs/op 0.95
BenchmarkDocument/text_1000 - ns/op 2447449 ns/op 2585180 ns/op 0.95
BenchmarkDocument/text_1000 - B/op 1169127 B/op 1169129 B/op 1.00
BenchmarkDocument/text_1000 - allocs/op 50086 allocs/op 50086 allocs/op 1
BenchmarkDocument/array_1000 1232994 ns/op 1091407 B/op 11830 allocs/op 1277577 ns/op 1091302 B/op 11829 allocs/op 0.97
BenchmarkDocument/array_1000 - ns/op 1232994 ns/op 1277577 ns/op 0.97
BenchmarkDocument/array_1000 - B/op 1091407 B/op 1091302 B/op 1.00
BenchmarkDocument/array_1000 - allocs/op 11830 allocs/op 11829 allocs/op 1.00
BenchmarkDocument/array_10000 13609129 ns/op 9800698 B/op 120297 allocs/op 13357932 ns/op 9799556 B/op 120292 allocs/op 1.02
BenchmarkDocument/array_10000 - ns/op 13609129 ns/op 13357932 ns/op 1.02
BenchmarkDocument/array_10000 - B/op 9800698 B/op 9799556 B/op 1.00
BenchmarkDocument/array_10000 - allocs/op 120297 allocs/op 120292 allocs/op 1.00
BenchmarkDocument/array_gc_100 160450 ns/op 132659 B/op 1258 allocs/op 155267 ns/op 132648 B/op 1258 allocs/op 1.03
BenchmarkDocument/array_gc_100 - ns/op 160450 ns/op 155267 ns/op 1.03
BenchmarkDocument/array_gc_100 - B/op 132659 B/op 132648 B/op 1.00
BenchmarkDocument/array_gc_100 - allocs/op 1258 allocs/op 1258 allocs/op 1
BenchmarkDocument/array_gc_1000 1460950 ns/op 1159223 B/op 12875 allocs/op 1464024 ns/op 1159043 B/op 12874 allocs/op 1.00
BenchmarkDocument/array_gc_1000 - ns/op 1460950 ns/op 1464024 ns/op 1.00
BenchmarkDocument/array_gc_1000 - B/op 1159223 B/op 1159043 B/op 1.00
BenchmarkDocument/array_gc_1000 - allocs/op 12875 allocs/op 12874 allocs/op 1.00
BenchmarkDocument/counter_1000 205320 ns/op 193013 B/op 5769 allocs/op 211382 ns/op 193013 B/op 5769 allocs/op 0.97
BenchmarkDocument/counter_1000 - ns/op 205320 ns/op 211382 ns/op 0.97
BenchmarkDocument/counter_1000 - B/op 193013 B/op 193013 B/op 1
BenchmarkDocument/counter_1000 - allocs/op 5769 allocs/op 5769 allocs/op 1
BenchmarkDocument/counter_10000 2194104 ns/op 2087928 B/op 59776 allocs/op 2254078 ns/op 2087928 B/op 59776 allocs/op 0.97
BenchmarkDocument/counter_10000 - ns/op 2194104 ns/op 2254078 ns/op 0.97
BenchmarkDocument/counter_10000 - B/op 2087928 B/op 2087928 B/op 1
BenchmarkDocument/counter_10000 - allocs/op 59776 allocs/op 59776 allocs/op 1
BenchmarkDocument/object_1000 1415700 ns/op 1428020 B/op 9847 allocs/op 1458775 ns/op 1427858 B/op 9846 allocs/op 0.97
BenchmarkDocument/object_1000 - ns/op 1415700 ns/op 1458775 ns/op 0.97
BenchmarkDocument/object_1000 - B/op 1428020 B/op 1427858 B/op 1.00
BenchmarkDocument/object_1000 - allocs/op 9847 allocs/op 9846 allocs/op 1.00
BenchmarkDocument/object_10000 15446194 ns/op 12167386 B/op 100564 allocs/op 15364639 ns/op 12166484 B/op 100562 allocs/op 1.01
BenchmarkDocument/object_10000 - ns/op 15446194 ns/op 15364639 ns/op 1.01
BenchmarkDocument/object_10000 - B/op 12167386 B/op 12166484 B/op 1.00
BenchmarkDocument/object_10000 - allocs/op 100564 allocs/op 100562 allocs/op 1.00
BenchmarkDocument/tree_100 1042091 ns/op 943779 B/op 6102 allocs/op 1093186 ns/op 943775 B/op 6102 allocs/op 0.95
BenchmarkDocument/tree_100 - ns/op 1042091 ns/op 1093186 ns/op 0.95
BenchmarkDocument/tree_100 - B/op 943779 B/op 943775 B/op 1.00
BenchmarkDocument/tree_100 - allocs/op 6102 allocs/op 6102 allocs/op 1
BenchmarkDocument/tree_1000 76061461 ns/op 86460504 B/op 60116 allocs/op 79611250 ns/op 86460484 B/op 60115 allocs/op 0.96
BenchmarkDocument/tree_1000 - ns/op 76061461 ns/op 79611250 ns/op 0.96
BenchmarkDocument/tree_1000 - B/op 86460504 B/op 86460484 B/op 1.00
BenchmarkDocument/tree_1000 - allocs/op 60116 allocs/op 60115 allocs/op 1.00
BenchmarkDocument/tree_10000 9915391489 ns/op 8580989808 B/op 600228 allocs/op 10130372937 ns/op 8580991568 B/op 600247 allocs/op 0.98
BenchmarkDocument/tree_10000 - ns/op 9915391489 ns/op 10130372937 ns/op 0.98
BenchmarkDocument/tree_10000 - B/op 8580989808 B/op 8580991568 B/op 1.00
BenchmarkDocument/tree_10000 - allocs/op 600228 allocs/op 600247 allocs/op 1.00
BenchmarkDocument/tree_delete_all_1000 75229084 ns/op 86990810 B/op 67754 allocs/op 79975316 ns/op 86990451 B/op 67752 allocs/op 0.94
BenchmarkDocument/tree_delete_all_1000 - ns/op 75229084 ns/op 79975316 ns/op 0.94
BenchmarkDocument/tree_delete_all_1000 - B/op 86990810 B/op 86990451 B/op 1.00
BenchmarkDocument/tree_delete_all_1000 - allocs/op 67754 allocs/op 67752 allocs/op 1.00
BenchmarkDocument/tree_edit_gc_100 3747753 ns/op 4121100 B/op 14359 allocs/op 3932623 ns/op 4121133 B/op 14359 allocs/op 0.95
BenchmarkDocument/tree_edit_gc_100 - ns/op 3747753 ns/op 3932623 ns/op 0.95
BenchmarkDocument/tree_edit_gc_100 - B/op 4121100 B/op 4121133 B/op 1.00
BenchmarkDocument/tree_edit_gc_100 - allocs/op 14359 allocs/op 14359 allocs/op 1
BenchmarkDocument/tree_edit_gc_1000 312548677 ns/op 383468998 B/op 145416 allocs/op 328179546 ns/op 383464888 B/op 145418 allocs/op 0.95
BenchmarkDocument/tree_edit_gc_1000 - ns/op 312548677 ns/op 328179546 ns/op 0.95
BenchmarkDocument/tree_edit_gc_1000 - B/op 383468998 B/op 383464888 B/op 1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op 145416 allocs/op 145418 allocs/op 1.00
BenchmarkDocument/tree_split_gc_100 2559303 ns/op 2386949 B/op 10344 allocs/op 2660499 ns/op 2386990 B/op 10344 allocs/op 0.96
BenchmarkDocument/tree_split_gc_100 - ns/op 2559303 ns/op 2660499 ns/op 0.96
BenchmarkDocument/tree_split_gc_100 - B/op 2386949 B/op 2386990 B/op 1.00
BenchmarkDocument/tree_split_gc_100 - allocs/op 10344 allocs/op 10344 allocs/op 1
BenchmarkDocument/tree_split_gc_1000 189496396 ns/op 221992390 B/op 112253 allocs/op 200600574 ns/op 221993269 B/op 112262 allocs/op 0.94
BenchmarkDocument/tree_split_gc_1000 - ns/op 189496396 ns/op 200600574 ns/op 0.94
BenchmarkDocument/tree_split_gc_1000 - B/op 221992390 B/op 221993269 B/op 1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op 112253 allocs/op 112262 allocs/op 1.00
BenchmarkRPC/client_to_server 389764083 ns/op 16808136 B/op 174450 allocs/op 381847522 ns/op 16821594 B/op 174436 allocs/op 1.02
BenchmarkRPC/client_to_server - ns/op 389764083 ns/op 381847522 ns/op 1.02
BenchmarkRPC/client_to_server - B/op 16808136 B/op 16821594 B/op 1.00
BenchmarkRPC/client_to_server - allocs/op 174450 allocs/op 174436 allocs/op 1.00
BenchmarkRPC/client_to_client_via_server 645215504 ns/op 35654156 B/op 319264 allocs/op 636251288 ns/op 32338556 B/op 319219 allocs/op 1.01
BenchmarkRPC/client_to_client_via_server - ns/op 645215504 ns/op 636251288 ns/op 1.01
BenchmarkRPC/client_to_client_via_server - B/op 35654156 B/op 32338556 B/op 1.10
BenchmarkRPC/client_to_client_via_server - allocs/op 319264 allocs/op 319219 allocs/op 1.00
BenchmarkRPC/attach_large_document 1294719238 ns/op 1919074200 B/op 8877 allocs/op 1308667167 ns/op 1896270256 B/op 8917 allocs/op 0.99
BenchmarkRPC/attach_large_document - ns/op 1294719238 ns/op 1308667167 ns/op 0.99
BenchmarkRPC/attach_large_document - B/op 1919074200 B/op 1896270256 B/op 1.01
BenchmarkRPC/attach_large_document - allocs/op 8877 allocs/op 8917 allocs/op 1.00
BenchmarkRPC/adminCli_to_server 552464026 ns/op 36354840 B/op 289513 allocs/op 551197182 ns/op 35959884 B/op 289515 allocs/op 1.00
BenchmarkRPC/adminCli_to_server - ns/op 552464026 ns/op 551197182 ns/op 1.00
BenchmarkRPC/adminCli_to_server - B/op 36354840 B/op 35959884 B/op 1.01
BenchmarkRPC/adminCli_to_server - allocs/op 289513 allocs/op 289515 allocs/op 1.00
BenchmarkLocker 62.7 ns/op 16 B/op 1 allocs/op 62.92 ns/op 16 B/op 1 allocs/op 1.00
BenchmarkLocker - ns/op 62.7 ns/op 62.92 ns/op 1.00
BenchmarkLocker - B/op 16 B/op 16 B/op 1
BenchmarkLocker - allocs/op 1 allocs/op 1 allocs/op 1
BenchmarkLockerParallel 38.59 ns/op 0 B/op 0 allocs/op 39.34 ns/op 0 B/op 0 allocs/op 0.98
BenchmarkLockerParallel - ns/op 38.59 ns/op 39.34 ns/op 0.98
BenchmarkLockerParallel - B/op 0 B/op 0 B/op 1
BenchmarkLockerParallel - allocs/op 0 allocs/op 0 allocs/op 1
BenchmarkLockerMoreKeys 148.7 ns/op 15 B/op 0 allocs/op 148.4 ns/op 15 B/op 0 allocs/op 1.00
BenchmarkLockerMoreKeys - ns/op 148.7 ns/op 148.4 ns/op 1.00
BenchmarkLockerMoreKeys - B/op 15 B/op 15 B/op 1
BenchmarkLockerMoreKeys - allocs/op 0 allocs/op 0 allocs/op 1
BenchmarkChange/Push_10_Changes 3979756 ns/op 121207 B/op 1284 allocs/op 3927580 ns/op 121260 B/op 1284 allocs/op 1.01
BenchmarkChange/Push_10_Changes - ns/op 3979756 ns/op 3927580 ns/op 1.01
BenchmarkChange/Push_10_Changes - B/op 121207 B/op 121260 B/op 1.00
BenchmarkChange/Push_10_Changes - allocs/op 1284 allocs/op 1284 allocs/op 1
BenchmarkChange/Push_100_Changes 14965441 ns/op 575724 B/op 6655 allocs/op 14729756 ns/op 568487 B/op 6654 allocs/op 1.02
BenchmarkChange/Push_100_Changes - ns/op 14965441 ns/op 14729756 ns/op 1.02
BenchmarkChange/Push_100_Changes - B/op 575724 B/op 568487 B/op 1.01
BenchmarkChange/Push_100_Changes - allocs/op 6655 allocs/op 6654 allocs/op 1.00
BenchmarkChange/Push_1000_Changes 118608812 ns/op 5272651 B/op 63151 allocs/op 118786109 ns/op 5344002 B/op 63153 allocs/op 1.00
BenchmarkChange/Push_1000_Changes - ns/op 118608812 ns/op 118786109 ns/op 1.00
BenchmarkChange/Push_1000_Changes - B/op 5272651 B/op 5344002 B/op 0.99
BenchmarkChange/Push_1000_Changes - allocs/op 63151 allocs/op 63153 allocs/op 1.00
BenchmarkChange/Pull_10_Changes 3004898 ns/op 100567 B/op 1005 allocs/op 2951124 ns/op 100308 B/op 1005 allocs/op 1.02
BenchmarkChange/Pull_10_Changes - ns/op 3004898 ns/op 2951124 ns/op 1.02
BenchmarkChange/Pull_10_Changes - B/op 100567 B/op 100308 B/op 1.00
BenchmarkChange/Pull_10_Changes - allocs/op 1005 allocs/op 1005 allocs/op 1
BenchmarkChange/Pull_100_Changes 4491785 ns/op 265418 B/op 3475 allocs/op 4456693 ns/op 264969 B/op 3475 allocs/op 1.01
BenchmarkChange/Pull_100_Changes - ns/op 4491785 ns/op 4456693 ns/op 1.01
BenchmarkChange/Pull_100_Changes - B/op 265418 B/op 264969 B/op 1.00
BenchmarkChange/Pull_100_Changes - allocs/op 3475 allocs/op 3475 allocs/op 1
BenchmarkChange/Pull_1000_Changes 8944322 ns/op 1492378 B/op 29850 allocs/op 8897935 ns/op 1491765 B/op 29853 allocs/op 1.01
BenchmarkChange/Pull_1000_Changes - ns/op 8944322 ns/op 8897935 ns/op 1.01
BenchmarkChange/Pull_1000_Changes - B/op 1492378 B/op 1491765 B/op 1.00
BenchmarkChange/Pull_1000_Changes - allocs/op 29850 allocs/op 29853 allocs/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot 17430437 ns/op 707944 B/op 6655 allocs/op 17116880 ns/op 712573 B/op 6657 allocs/op 1.02
BenchmarkSnapshot/Push_3KB_snapshot - ns/op 17430437 ns/op 17116880 ns/op 1.02
BenchmarkSnapshot/Push_3KB_snapshot - B/op 707944 B/op 712573 B/op 0.99
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op 6655 allocs/op 6657 allocs/op 1.00
BenchmarkSnapshot/Push_30KB_snapshot 121978557 ns/op 5585163 B/op 63210 allocs/op 121055447 ns/op 5550286 B/op 63161 allocs/op 1.01
BenchmarkSnapshot/Push_30KB_snapshot - ns/op 121978557 ns/op 121055447 ns/op 1.01
BenchmarkSnapshot/Push_30KB_snapshot - B/op 5585163 B/op 5550286 B/op 1.01
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op 63210 allocs/op 63161 allocs/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot 6567233 ns/op 920774 B/op 15510 allocs/op 6533225 ns/op 920858 B/op 15512 allocs/op 1.01
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op 6567233 ns/op 6533225 ns/op 1.01
BenchmarkSnapshot/Pull_3KB_snapshot - B/op 920774 B/op 920858 B/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op 15510 allocs/op 15512 allocs/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot 15632721 ns/op 7157532 B/op 150110 allocs/op 15695387 ns/op 7156559 B/op 150105 allocs/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op 15632721 ns/op 15695387 ns/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - B/op 7157532 B/op 7156559 B/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op 150110 allocs/op 150105 allocs/op 1.00
BenchmarkSync/memory_sync_10_test 6858 ns/op 1286 B/op 38 allocs/op 6857 ns/op 1286 B/op 38 allocs/op 1.00
BenchmarkSync/memory_sync_10_test - ns/op 6858 ns/op 6857 ns/op 1.00
BenchmarkSync/memory_sync_10_test - B/op 1286 B/op 1286 B/op 1
BenchmarkSync/memory_sync_10_test - allocs/op 38 allocs/op 38 allocs/op 1
BenchmarkSync/memory_sync_100_test 51430 ns/op 8636 B/op 273 allocs/op 51432 ns/op 8639 B/op 273 allocs/op 1.00
BenchmarkSync/memory_sync_100_test - ns/op 51430 ns/op 51432 ns/op 1.00
BenchmarkSync/memory_sync_100_test - B/op 8636 B/op 8639 B/op 1.00
BenchmarkSync/memory_sync_100_test - allocs/op 273 allocs/op 273 allocs/op 1
BenchmarkSync/memory_sync_1000_test 590499 ns/op 74054 B/op 2106 allocs/op 587062 ns/op 73963 B/op 2099 allocs/op 1.01
BenchmarkSync/memory_sync_1000_test - ns/op 590499 ns/op 587062 ns/op 1.01
BenchmarkSync/memory_sync_1000_test - B/op 74054 B/op 73963 B/op 1.00
BenchmarkSync/memory_sync_1000_test - allocs/op 2106 allocs/op 2099 allocs/op 1.00
BenchmarkSync/memory_sync_10000_test 7119553 ns/op 743531 B/op 20414 allocs/op 7366780 ns/op 739207 B/op 20246 allocs/op 0.97
BenchmarkSync/memory_sync_10000_test - ns/op 7119553 ns/op 7366780 ns/op 0.97
BenchmarkSync/memory_sync_10000_test - B/op 743531 B/op 739207 B/op 1.01
BenchmarkSync/memory_sync_10000_test - allocs/op 20414 allocs/op 20246 allocs/op 1.01
BenchmarkTextEditing 18627016740 ns/op 9041694928 B/op 19921676 allocs/op 18157267169 ns/op 9042293288 B/op 19924516 allocs/op 1.03
BenchmarkTextEditing - ns/op 18627016740 ns/op 18157267169 ns/op 1.03
BenchmarkTextEditing - B/op 9041694928 B/op 9042293288 B/op 1.00
BenchmarkTextEditing - allocs/op 19921676 allocs/op 19924516 allocs/op 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@raararaara raararaara requested a review from hackerwins May 13, 2024 12:23
Copy link
Member

@hackerwins hackerwins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution.

@raararaara raararaara changed the title Move ToMXL from RHT to TreeNode Move ToXML from RHT to TreeNode May 13, 2024
@hackerwins hackerwins merged commit 18224f1 into main May 13, 2024
4 checks passed
@hackerwins hackerwins deleted the refactor-xml branch May 13, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants