Skip to content

Commit

Permalink
Add test code related to treeNode.Length patch
Browse files Browse the repository at this point in the history
  • Loading branch information
raararaara committed Mar 20, 2024
1 parent 69d12b0 commit 891840b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkg/document/crdt/tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,42 @@ func TestTreeEdit(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, 0, idx)
})

t.Run("length test", func(t *testing.T) {
root := helper.TestRoot()
ctx := helper.TextChangeContext(root)

// 01. Create a tree and insert a paragraph with text.
tree := crdt.NewTree(crdt.NewTreeNode(helper.PosT(ctx), "r", nil), helper.TimeT(ctx))
assert.Equal(t, 0, tree.Root().Len())
assert.Equal(t, "<r></r>", tree.ToXML())

_, err := tree.EditT(0, 0, []*crdt.TreeNode{crdt.NewTreeNode(helper.
PosT(ctx), "p", nil)}, 0, helper.TimeT(ctx), issueTimeTicket(ctx))
assert.NoError(t, err)
assert.Equal(t, "<r><p></p></r>", tree.ToXML())
assert.Equal(t, 2, tree.Root().Len())

_, err = tree.EditT(1, 1, []*crdt.TreeNode{
crdt.NewTreeNode(helper.PosT(ctx), "text", nil, "hel_lo"),
}, 0, helper.TimeT(ctx), issueTimeTicket(ctx))
assert.NoError(t, err)
assert.Equal(t, "<r><p>hel_lo</p></r>", tree.ToXML())
assert.Equal(t, 8, tree.Root().Len())

// 02. Erase 3rd character from the text.
_, err = tree.EditT(4, 5, nil, 0, helper.TimeT(ctx), issueTimeTicket(ctx))
assert.NoError(t, err)
assert.Equal(t, "<r><p>hello</p></r>", tree.ToXML())
assert.Equal(t, 7, tree.Root().Len())

// 03. Makes a deep copy of root.
copyRoot, err := tree.Root().DeepCopy()
assert.NoError(t, err)

// 04. Check if the length of the deep copied root is the same as the length of the original.
assert.Equal(t, 7, copyRoot.Len())
})
}

func TestTreeSplit(t *testing.T) {
Expand Down

1 comment on commit 891840b

@github-actions
Copy link

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: 891840b Previous: ead0435 Ratio
BenchmarkDocument/constructor_test 1389 ns/op 1224 B/op 21 allocs/op 1367 ns/op 1224 B/op 21 allocs/op 1.02
BenchmarkDocument/constructor_test - ns/op 1389 ns/op 1367 ns/op 1.02
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 838.7 ns/op 1192 B/op 19 allocs/op 839.2 ns/op 1192 B/op 19 allocs/op 1.00
BenchmarkDocument/status_test - ns/op 838.7 ns/op 839.2 ns/op 1.00
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 7580 ns/op 6977 B/op 124 allocs/op 7356 ns/op 6977 B/op 124 allocs/op 1.03
BenchmarkDocument/equals_test - ns/op 7580 ns/op 7356 ns/op 1.03
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 17114 ns/op 12058 B/op 260 allocs/op 16679 ns/op 12059 B/op 260 allocs/op 1.03
BenchmarkDocument/nested_update_test - ns/op 17114 ns/op 16679 ns/op 1.03
BenchmarkDocument/nested_update_test - B/op 12058 B/op 12059 B/op 1.00
BenchmarkDocument/nested_update_test - allocs/op 260 allocs/op 260 allocs/op 1
BenchmarkDocument/delete_test 23057 ns/op 15283 B/op 339 allocs/op 22375 ns/op 15284 B/op 339 allocs/op 1.03
BenchmarkDocument/delete_test - ns/op 23057 ns/op 22375 ns/op 1.03
BenchmarkDocument/delete_test - B/op 15283 B/op 15284 B/op 1.00
BenchmarkDocument/delete_test - allocs/op 339 allocs/op 339 allocs/op 1
BenchmarkDocument/object_test 9099 ns/op 6753 B/op 118 allocs/op 8494 ns/op 6753 B/op 118 allocs/op 1.07
BenchmarkDocument/object_test - ns/op 9099 ns/op 8494 ns/op 1.07
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 29531 ns/op 11883 B/op 274 allocs/op 32383 ns/op 11883 B/op 274 allocs/op 0.91
BenchmarkDocument/array_test - ns/op 29531 ns/op 32383 ns/op 0.91
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 31111 ns/op 14916 B/op 470 allocs/op 30528 ns/op 14916 B/op 470 allocs/op 1.02
BenchmarkDocument/text_test - ns/op 31111 ns/op 30528 ns/op 1.02
BenchmarkDocument/text_test - B/op 14916 B/op 14916 B/op 1
BenchmarkDocument/text_test - allocs/op 470 allocs/op 470 allocs/op 1
BenchmarkDocument/text_composition_test 29717 ns/op 18428 B/op 479 allocs/op 29442 ns/op 18429 B/op 479 allocs/op 1.01
BenchmarkDocument/text_composition_test - ns/op 29717 ns/op 29442 ns/op 1.01
BenchmarkDocument/text_composition_test - B/op 18428 B/op 18429 B/op 1.00
BenchmarkDocument/text_composition_test - allocs/op 479 allocs/op 479 allocs/op 1
BenchmarkDocument/rich_text_test 82440 ns/op 38677 B/op 1149 allocs/op 80963 ns/op 38677 B/op 1149 allocs/op 1.02
BenchmarkDocument/rich_text_test - ns/op 82440 ns/op 80963 ns/op 1.02
BenchmarkDocument/rich_text_test - B/op 38677 B/op 38677 B/op 1
BenchmarkDocument/rich_text_test - allocs/op 1149 allocs/op 1149 allocs/op 1
BenchmarkDocument/counter_test 17611 ns/op 10658 B/op 242 allocs/op 17165 ns/op 10658 B/op 242 allocs/op 1.03
BenchmarkDocument/counter_test - ns/op 17611 ns/op 17165 ns/op 1.03
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 2978021 ns/op 1658656 B/op 17096 allocs/op 2896358 ns/op 1658593 B/op 17094 allocs/op 1.03
BenchmarkDocument/text_edit_gc_100 - ns/op 2978021 ns/op 2896358 ns/op 1.03
BenchmarkDocument/text_edit_gc_100 - B/op 1658656 B/op 1658593 B/op 1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op 17096 allocs/op 17094 allocs/op 1.00
BenchmarkDocument/text_edit_gc_1000 237595300 ns/op 144378310 B/op 200920 allocs/op 233281679 ns/op 144379088 B/op 200925 allocs/op 1.02
BenchmarkDocument/text_edit_gc_1000 - ns/op 237595300 ns/op 233281679 ns/op 1.02
BenchmarkDocument/text_edit_gc_1000 - B/op 144378310 B/op 144379088 B/op 1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op 200920 allocs/op 200925 allocs/op 1.00
BenchmarkDocument/text_split_gc_100 3507401 ns/op 2316838 B/op 16196 allocs/op 3431054 ns/op 2317032 B/op 16196 allocs/op 1.02
BenchmarkDocument/text_split_gc_100 - ns/op 3507401 ns/op 3431054 ns/op 1.02
BenchmarkDocument/text_split_gc_100 - B/op 2316838 B/op 2317032 B/op 1.00
BenchmarkDocument/text_split_gc_100 - allocs/op 16196 allocs/op 16196 allocs/op 1
BenchmarkDocument/text_split_gc_1000 301654326 ns/op 228903228 B/op 203865 allocs/op 295388054 ns/op 228921716 B/op 203957 allocs/op 1.02
BenchmarkDocument/text_split_gc_1000 - ns/op 301654326 ns/op 295388054 ns/op 1.02
BenchmarkDocument/text_split_gc_1000 - B/op 228903228 B/op 228921716 B/op 1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op 203865 allocs/op 203957 allocs/op 1.00
BenchmarkDocument/text_delete_all_10000 12466664 ns/op 5812336 B/op 40673 allocs/op 10885877 ns/op 5810348 B/op 40674 allocs/op 1.15
BenchmarkDocument/text_delete_all_10000 - ns/op 12466664 ns/op 10885877 ns/op 1.15
BenchmarkDocument/text_delete_all_10000 - B/op 5812336 B/op 5810348 B/op 1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op 40673 allocs/op 40674 allocs/op 1.00
BenchmarkDocument/text_delete_all_100000 204980258 ns/op 81892156 B/op 411583 allocs/op 190431495 ns/op 81882562 B/op 411539 allocs/op 1.08
BenchmarkDocument/text_delete_all_100000 - ns/op 204980258 ns/op 190431495 ns/op 1.08
BenchmarkDocument/text_delete_all_100000 - B/op 81892156 B/op 81882562 B/op 1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op 411583 allocs/op 411539 allocs/op 1.00
BenchmarkDocument/text_100 222052 ns/op 120139 B/op 5082 allocs/op 216483 ns/op 120137 B/op 5082 allocs/op 1.03
BenchmarkDocument/text_100 - ns/op 222052 ns/op 216483 ns/op 1.03
BenchmarkDocument/text_100 - B/op 120139 B/op 120137 B/op 1.00
BenchmarkDocument/text_100 - allocs/op 5082 allocs/op 5082 allocs/op 1
BenchmarkDocument/text_1000 2439271 ns/op 1169127 B/op 50086 allocs/op 2367033 ns/op 1169125 B/op 50086 allocs/op 1.03
BenchmarkDocument/text_1000 - ns/op 2439271 ns/op 2367033 ns/op 1.03
BenchmarkDocument/text_1000 - B/op 1169127 B/op 1169125 B/op 1.00
BenchmarkDocument/text_1000 - allocs/op 50086 allocs/op 50086 allocs/op 1
BenchmarkDocument/array_1000 1237554 ns/op 1091145 B/op 11829 allocs/op 1199833 ns/op 1091448 B/op 11830 allocs/op 1.03
BenchmarkDocument/array_1000 - ns/op 1237554 ns/op 1199833 ns/op 1.03
BenchmarkDocument/array_1000 - B/op 1091145 B/op 1091448 B/op 1.00
BenchmarkDocument/array_1000 - allocs/op 11829 allocs/op 11830 allocs/op 1.00
BenchmarkDocument/array_10000 13627429 ns/op 9799043 B/op 120290 allocs/op 13238137 ns/op 9800334 B/op 120296 allocs/op 1.03
BenchmarkDocument/array_10000 - ns/op 13627429 ns/op 13238137 ns/op 1.03
BenchmarkDocument/array_10000 - B/op 9799043 B/op 9800334 B/op 1.00
BenchmarkDocument/array_10000 - allocs/op 120290 allocs/op 120296 allocs/op 1.00
BenchmarkDocument/array_gc_100 148642 ns/op 132646 B/op 1258 allocs/op 144816 ns/op 132661 B/op 1259 allocs/op 1.03
BenchmarkDocument/array_gc_100 - ns/op 148642 ns/op 144816 ns/op 1.03
BenchmarkDocument/array_gc_100 - B/op 132646 B/op 132661 B/op 1.00
BenchmarkDocument/array_gc_100 - allocs/op 1258 allocs/op 1259 allocs/op 1.00
BenchmarkDocument/array_gc_1000 1402461 ns/op 1159112 B/op 12875 allocs/op 1373130 ns/op 1159056 B/op 12874 allocs/op 1.02
BenchmarkDocument/array_gc_1000 - ns/op 1402461 ns/op 1373130 ns/op 1.02
BenchmarkDocument/array_gc_1000 - B/op 1159112 B/op 1159056 B/op 1.00
BenchmarkDocument/array_gc_1000 - allocs/op 12875 allocs/op 12874 allocs/op 1.00
BenchmarkDocument/counter_1000 202176 ns/op 193011 B/op 5769 allocs/op 197616 ns/op 193011 B/op 5769 allocs/op 1.02
BenchmarkDocument/counter_1000 - ns/op 202176 ns/op 197616 ns/op 1.02
BenchmarkDocument/counter_1000 - B/op 193011 B/op 193011 B/op 1
BenchmarkDocument/counter_1000 - allocs/op 5769 allocs/op 5769 allocs/op 1
BenchmarkDocument/counter_10000 2219948 ns/op 2087927 B/op 59776 allocs/op 2142066 ns/op 2087940 B/op 59776 allocs/op 1.04
BenchmarkDocument/counter_10000 - ns/op 2219948 ns/op 2142066 ns/op 1.04
BenchmarkDocument/counter_10000 - B/op 2087927 B/op 2087940 B/op 1.00
BenchmarkDocument/counter_10000 - allocs/op 59776 allocs/op 59776 allocs/op 1
BenchmarkDocument/object_1000 1389124 ns/op 1428161 B/op 9847 allocs/op 1349097 ns/op 1428086 B/op 9847 allocs/op 1.03
BenchmarkDocument/object_1000 - ns/op 1389124 ns/op 1349097 ns/op 1.03
BenchmarkDocument/object_1000 - B/op 1428161 B/op 1428086 B/op 1.00
BenchmarkDocument/object_1000 - allocs/op 9847 allocs/op 9847 allocs/op 1
BenchmarkDocument/object_10000 15600258 ns/op 12167149 B/op 100564 allocs/op 15050225 ns/op 12166576 B/op 100562 allocs/op 1.04
BenchmarkDocument/object_10000 - ns/op 15600258 ns/op 15050225 ns/op 1.04
BenchmarkDocument/object_10000 - B/op 12167149 B/op 12166576 B/op 1.00
BenchmarkDocument/object_10000 - allocs/op 100564 allocs/op 100562 allocs/op 1.00
BenchmarkDocument/tree_100 1039683 ns/op 943778 B/op 6102 allocs/op 1017983 ns/op 943779 B/op 6102 allocs/op 1.02
BenchmarkDocument/tree_100 - ns/op 1039683 ns/op 1017983 ns/op 1.02
BenchmarkDocument/tree_100 - B/op 943778 B/op 943779 B/op 1.00
BenchmarkDocument/tree_100 - allocs/op 6102 allocs/op 6102 allocs/op 1
BenchmarkDocument/tree_1000 75665081 ns/op 86460382 B/op 60116 allocs/op 73944890 ns/op 86460540 B/op 60117 allocs/op 1.02
BenchmarkDocument/tree_1000 - ns/op 75665081 ns/op 73944890 ns/op 1.02
BenchmarkDocument/tree_1000 - B/op 86460382 B/op 86460540 B/op 1.00
BenchmarkDocument/tree_1000 - allocs/op 60116 allocs/op 60117 allocs/op 1.00
BenchmarkDocument/tree_10000 10039980648 ns/op 8580989008 B/op 600225 allocs/op 9653371595 ns/op 8580981472 B/op 600231 allocs/op 1.04
BenchmarkDocument/tree_10000 - ns/op 10039980648 ns/op 9653371595 ns/op 1.04
BenchmarkDocument/tree_10000 - B/op 8580989008 B/op 8580981472 B/op 1.00
BenchmarkDocument/tree_10000 - allocs/op 600225 allocs/op 600231 allocs/op 1.00
BenchmarkDocument/tree_delete_all_1000 75780211 ns/op 86990560 B/op 67755 allocs/op 74281693 ns/op 86991202 B/op 67753 allocs/op 1.02
BenchmarkDocument/tree_delete_all_1000 - ns/op 75780211 ns/op 74281693 ns/op 1.02
BenchmarkDocument/tree_delete_all_1000 - B/op 86990560 B/op 86991202 B/op 1.00
BenchmarkDocument/tree_delete_all_1000 - allocs/op 67755 allocs/op 67753 allocs/op 1.00
BenchmarkDocument/tree_edit_gc_100 3816267 ns/op 4121111 B/op 14359 allocs/op 3685711 ns/op 4121091 B/op 14359 allocs/op 1.04
BenchmarkDocument/tree_edit_gc_100 - ns/op 3816267 ns/op 3685711 ns/op 1.04
BenchmarkDocument/tree_edit_gc_100 - B/op 4121111 B/op 4121091 B/op 1.00
BenchmarkDocument/tree_edit_gc_100 - allocs/op 14359 allocs/op 14359 allocs/op 1
BenchmarkDocument/tree_edit_gc_1000 308338303 ns/op 383467940 B/op 145420 allocs/op 303851166 ns/op 383466494 B/op 145407 allocs/op 1.01
BenchmarkDocument/tree_edit_gc_1000 - ns/op 308338303 ns/op 303851166 ns/op 1.01
BenchmarkDocument/tree_edit_gc_1000 - B/op 383467940 B/op 383466494 B/op 1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op 145420 allocs/op 145407 allocs/op 1.00
BenchmarkDocument/tree_split_gc_100 2583332 ns/op 2386989 B/op 10344 allocs/op 2482098 ns/op 2386947 B/op 10344 allocs/op 1.04
BenchmarkDocument/tree_split_gc_100 - ns/op 2583332 ns/op 2482098 ns/op 1.04
BenchmarkDocument/tree_split_gc_100 - B/op 2386989 B/op 2386947 B/op 1.00
BenchmarkDocument/tree_split_gc_100 - allocs/op 10344 allocs/op 10344 allocs/op 1
BenchmarkDocument/tree_split_gc_1000 188564194 ns/op 221990805 B/op 112252 allocs/op 182379023 ns/op 221992142 B/op 112263 allocs/op 1.03
BenchmarkDocument/tree_split_gc_1000 - ns/op 188564194 ns/op 182379023 ns/op 1.03
BenchmarkDocument/tree_split_gc_1000 - B/op 221990805 B/op 221992142 B/op 1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op 112252 allocs/op 112263 allocs/op 1.00
BenchmarkRPC/client_to_server 378627637 ns/op 18243226 B/op 170664 allocs/op 371381586 ns/op 16547896 B/op 170591 allocs/op 1.02
BenchmarkRPC/client_to_server - ns/op 378627637 ns/op 371381586 ns/op 1.02
BenchmarkRPC/client_to_server - B/op 18243226 B/op 16547896 B/op 1.10
BenchmarkRPC/client_to_server - allocs/op 170664 allocs/op 170591 allocs/op 1.00
BenchmarkRPC/client_to_client_via_server 643892652 ns/op 31528724 B/op 319054 allocs/op 638448000 ns/op 31109264 B/op 319261 allocs/op 1.01
BenchmarkRPC/client_to_client_via_server - ns/op 643892652 ns/op 638448000 ns/op 1.01
BenchmarkRPC/client_to_client_via_server - B/op 31528724 B/op 31109264 B/op 1.01
BenchmarkRPC/client_to_client_via_server - allocs/op 319054 allocs/op 319261 allocs/op 1.00
BenchmarkRPC/attach_large_document 1405357706 ns/op 1913849384 B/op 7574 allocs/op 1192269992 ns/op 1915484712 B/op 7639 allocs/op 1.18
BenchmarkRPC/attach_large_document - ns/op 1405357706 ns/op 1192269992 ns/op 1.18
BenchmarkRPC/attach_large_document - B/op 1913849384 B/op 1915484712 B/op 1.00
BenchmarkRPC/attach_large_document - allocs/op 7574 allocs/op 7639 allocs/op 0.99
BenchmarkRPC/adminCli_to_server 550324622 ns/op 37216040 B/op 289695 allocs/op 549017954 ns/op 36016364 B/op 289688 allocs/op 1.00
BenchmarkRPC/adminCli_to_server - ns/op 550324622 ns/op 549017954 ns/op 1.00
BenchmarkRPC/adminCli_to_server - B/op 37216040 B/op 36016364 B/op 1.03
BenchmarkRPC/adminCli_to_server - allocs/op 289695 allocs/op 289688 allocs/op 1.00
BenchmarkLocker 67.99 ns/op 16 B/op 1 allocs/op 66.6 ns/op 16 B/op 1 allocs/op 1.02
BenchmarkLocker - ns/op 67.99 ns/op 66.6 ns/op 1.02
BenchmarkLocker - B/op 16 B/op 16 B/op 1
BenchmarkLocker - allocs/op 1 allocs/op 1 allocs/op 1
BenchmarkLockerParallel 38.97 ns/op 0 B/op 0 allocs/op 38.75 ns/op 0 B/op 0 allocs/op 1.01
BenchmarkLockerParallel - ns/op 38.97 ns/op 38.75 ns/op 1.01
BenchmarkLockerParallel - B/op 0 B/op 0 B/op 1
BenchmarkLockerParallel - allocs/op 0 allocs/op 0 allocs/op 1
BenchmarkLockerMoreKeys 155.1 ns/op 15 B/op 0 allocs/op 153.2 ns/op 15 B/op 0 allocs/op 1.01
BenchmarkLockerMoreKeys - ns/op 155.1 ns/op 153.2 ns/op 1.01
BenchmarkLockerMoreKeys - B/op 15 B/op 15 B/op 1
BenchmarkLockerMoreKeys - allocs/op 0 allocs/op 0 allocs/op 1
BenchmarkChange/Push_10_Changes 3987343 ns/op 122065 B/op 1285 allocs/op 3945672 ns/op 122229 B/op 1285 allocs/op 1.01
BenchmarkChange/Push_10_Changes - ns/op 3987343 ns/op 3945672 ns/op 1.01
BenchmarkChange/Push_10_Changes - B/op 122065 B/op 122229 B/op 1.00
BenchmarkChange/Push_10_Changes - allocs/op 1285 allocs/op 1285 allocs/op 1
BenchmarkChange/Push_100_Changes 15001982 ns/op 604181 B/op 6661 allocs/op 14761047 ns/op 598123 B/op 6659 allocs/op 1.02
BenchmarkChange/Push_100_Changes - ns/op 15001982 ns/op 14761047 ns/op 1.02
BenchmarkChange/Push_100_Changes - B/op 604181 B/op 598123 B/op 1.01
BenchmarkChange/Push_100_Changes - allocs/op 6661 allocs/op 6659 allocs/op 1.00
BenchmarkChange/Push_1000_Changes 119746833 ns/op 5639118 B/op 63169 allocs/op 118725592 ns/op 5778244 B/op 63173 allocs/op 1.01
BenchmarkChange/Push_1000_Changes - ns/op 119746833 ns/op 118725592 ns/op 1.01
BenchmarkChange/Push_1000_Changes - B/op 5639118 B/op 5778244 B/op 0.98
BenchmarkChange/Push_1000_Changes - allocs/op 63169 allocs/op 63173 allocs/op 1.00
BenchmarkChange/Pull_10_Changes 2986406 ns/op 100632 B/op 1005 allocs/op 2951698 ns/op 100944 B/op 1005 allocs/op 1.01
BenchmarkChange/Pull_10_Changes - ns/op 2986406 ns/op 2951698 ns/op 1.01
BenchmarkChange/Pull_10_Changes - B/op 100632 B/op 100944 B/op 1.00
BenchmarkChange/Pull_10_Changes - allocs/op 1005 allocs/op 1005 allocs/op 1
BenchmarkChange/Pull_100_Changes 4498264 ns/op 265359 B/op 3475 allocs/op 4440625 ns/op 266628 B/op 3476 allocs/op 1.01
BenchmarkChange/Pull_100_Changes - ns/op 4498264 ns/op 4440625 ns/op 1.01
BenchmarkChange/Pull_100_Changes - B/op 265359 B/op 266628 B/op 1.00
BenchmarkChange/Pull_100_Changes - allocs/op 3475 allocs/op 3476 allocs/op 1.00
BenchmarkChange/Pull_1000_Changes 9209794 ns/op 1490079 B/op 29850 allocs/op 8957893 ns/op 1491084 B/op 29856 allocs/op 1.03
BenchmarkChange/Pull_1000_Changes - ns/op 9209794 ns/op 8957893 ns/op 1.03
BenchmarkChange/Pull_1000_Changes - B/op 1490079 B/op 1491084 B/op 1.00
BenchmarkChange/Pull_1000_Changes - allocs/op 29850 allocs/op 29856 allocs/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot 17636725 ns/op 753054 B/op 6665 allocs/op 17323957 ns/op 763780 B/op 6665 allocs/op 1.02
BenchmarkSnapshot/Push_3KB_snapshot - ns/op 17636725 ns/op 17323957 ns/op 1.02
BenchmarkSnapshot/Push_3KB_snapshot - B/op 753054 B/op 763780 B/op 0.99
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op 6665 allocs/op 6665 allocs/op 1
BenchmarkSnapshot/Push_30KB_snapshot 123332911 ns/op 5919832 B/op 63178 allocs/op 122883538 ns/op 5750820 B/op 63173 allocs/op 1.00
BenchmarkSnapshot/Push_30KB_snapshot - ns/op 123332911 ns/op 122883538 ns/op 1.00
BenchmarkSnapshot/Push_30KB_snapshot - B/op 5919832 B/op 5750820 B/op 1.03
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op 63178 allocs/op 63173 allocs/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot 6746101 ns/op 922396 B/op 15515 allocs/op 6703192 ns/op 923694 B/op 15514 allocs/op 1.01
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op 6746101 ns/op 6703192 ns/op 1.01
BenchmarkSnapshot/Pull_3KB_snapshot - B/op 922396 B/op 923694 B/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op 15515 allocs/op 15514 allocs/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot 15995075 ns/op 7178274 B/op 150124 allocs/op 15686228 ns/op 7178330 B/op 150120 allocs/op 1.02
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op 15995075 ns/op 15686228 ns/op 1.02
BenchmarkSnapshot/Pull_30KB_snapshot - B/op 7178274 B/op 7178330 B/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op 150124 allocs/op 150120 allocs/op 1.00
BenchmarkSync/memory_sync_10_test 6938 ns/op 1286 B/op 38 allocs/op 6991 ns/op 1286 B/op 38 allocs/op 0.99
BenchmarkSync/memory_sync_10_test - ns/op 6938 ns/op 6991 ns/op 0.99
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 52672 ns/op 8662 B/op 274 allocs/op 52118 ns/op 8656 B/op 274 allocs/op 1.01
BenchmarkSync/memory_sync_100_test - ns/op 52672 ns/op 52118 ns/op 1.01
BenchmarkSync/memory_sync_100_test - B/op 8662 B/op 8656 B/op 1.00
BenchmarkSync/memory_sync_100_test - allocs/op 274 allocs/op 274 allocs/op 1
BenchmarkSync/memory_sync_1000_test 592716 ns/op 74546 B/op 2121 allocs/op 591807 ns/op 74667 B/op 2126 allocs/op 1.00
BenchmarkSync/memory_sync_1000_test - ns/op 592716 ns/op 591807 ns/op 1.00
BenchmarkSync/memory_sync_1000_test - B/op 74546 B/op 74667 B/op 1.00
BenchmarkSync/memory_sync_1000_test - allocs/op 2121 allocs/op 2126 allocs/op 1.00
BenchmarkSync/memory_sync_10000_test 8223118 ns/op 765438 B/op 20569 allocs/op 7159530 ns/op 757631 B/op 20535 allocs/op 1.15
BenchmarkSync/memory_sync_10000_test - ns/op 8223118 ns/op 7159530 ns/op 1.15
BenchmarkSync/memory_sync_10000_test - B/op 765438 B/op 757631 B/op 1.01
BenchmarkSync/memory_sync_10000_test - allocs/op 20569 allocs/op 20535 allocs/op 1.00
BenchmarkTextEditing 19470328727 ns/op 9042172072 B/op 19924135 allocs/op 20537708488 ns/op 9042246592 B/op 19924523 allocs/op 0.95
BenchmarkTextEditing - ns/op 19470328727 ns/op 20537708488 ns/op 0.95
BenchmarkTextEditing - B/op 9042172072 B/op 9042246592 B/op 1.00
BenchmarkTextEditing - allocs/op 19924135 allocs/op 19924523 allocs/op 1.00

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

Please sign in to comment.