Skip to content

Commit

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

t.Run("length test", func(t *testing.T) {
t.Run("reflects changes in treeNodes' length accurately with DeepCopy test", func(t *testing.T) {
// 01. Create a tree and insert a paragraph with text.
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))
Expand All @@ -445,13 +442,59 @@ func TestTreeEdit(t *testing.T) {
assert.Equal(t, "<r><p>hello</p></r>", tree.ToXML())
assert.Equal(t, 7, tree.Root().Len())

// 03. Makes a deep copy of root.
// 03. Makes a deep copy of crdt.Tree.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())
})

// TODO: identify test name, define step
t.Run("insPrevId test", func(t *testing.T) {
root := helper.TestRoot()
ctx := helper.TextChangeContext(root)
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())

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

_, err = tree.EditT(3, 3, nil, 0, helper.TimeT(ctx), issueTimeTicket(ctx))
assert.NoError(t, err)
assert.Equal(t, "<r><p>hello</p></r>", tree.ToXML())

left, err := pNode.Child(0)
assert.NoError(t, err)
right, err := pNode.Child(1)
assert.NoError(t, err)

assert.Equal(t, left.InsNextID, right.ID)
assert.Equal(t, right.InsPrevID, left.ID)

copyRoot, err := tree.Root().DeepCopy()
assert.NoError(t, err)

para, err := copyRoot.Child(0)
assert.NoError(t, err)

left, err = para.Child(0)
assert.NoError(t, err)
right, err = para.Child(1)
assert.NoError(t, err)

assert.Equal(t, left.InsNextID, right.ID)
assert.Equal(t, right.InsPrevID, left.ID)
})
}

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

1 comment on commit 8be1886

@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: 8be1886 Previous: ead0435 Ratio
BenchmarkDocument/constructor_test 1361 ns/op 1224 B/op 21 allocs/op 1367 ns/op 1224 B/op 21 allocs/op 1.00
BenchmarkDocument/constructor_test - ns/op 1361 ns/op 1367 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 838.8 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.8 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 7402 ns/op 6977 B/op 124 allocs/op 7356 ns/op 6977 B/op 124 allocs/op 1.01
BenchmarkDocument/equals_test - ns/op 7402 ns/op 7356 ns/op 1.01
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 16615 ns/op 12059 B/op 260 allocs/op 16679 ns/op 12059 B/op 260 allocs/op 1.00
BenchmarkDocument/nested_update_test - ns/op 16615 ns/op 16679 ns/op 1.00
BenchmarkDocument/nested_update_test - B/op 12059 B/op 12059 B/op 1
BenchmarkDocument/nested_update_test - allocs/op 260 allocs/op 260 allocs/op 1
BenchmarkDocument/delete_test 23601 ns/op 15284 B/op 339 allocs/op 22375 ns/op 15284 B/op 339 allocs/op 1.05
BenchmarkDocument/delete_test - ns/op 23601 ns/op 22375 ns/op 1.05
BenchmarkDocument/delete_test - B/op 15284 B/op 15284 B/op 1
BenchmarkDocument/delete_test - allocs/op 339 allocs/op 339 allocs/op 1
BenchmarkDocument/object_test 9265 ns/op 6753 B/op 118 allocs/op 8494 ns/op 6753 B/op 118 allocs/op 1.09
BenchmarkDocument/object_test - ns/op 9265 ns/op 8494 ns/op 1.09
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 28780 ns/op 11883 B/op 274 allocs/op 32383 ns/op 11883 B/op 274 allocs/op 0.89
BenchmarkDocument/array_test - ns/op 28780 ns/op 32383 ns/op 0.89
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 30580 ns/op 14916 B/op 470 allocs/op 30528 ns/op 14916 B/op 470 allocs/op 1.00
BenchmarkDocument/text_test - ns/op 30580 ns/op 30528 ns/op 1.00
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 29045 ns/op 18430 B/op 479 allocs/op 29442 ns/op 18429 B/op 479 allocs/op 0.99
BenchmarkDocument/text_composition_test - ns/op 29045 ns/op 29442 ns/op 0.99
BenchmarkDocument/text_composition_test - B/op 18430 B/op 18429 B/op 1.00
BenchmarkDocument/text_composition_test - allocs/op 479 allocs/op 479 allocs/op 1
BenchmarkDocument/rich_text_test 80880 ns/op 38677 B/op 1149 allocs/op 80963 ns/op 38677 B/op 1149 allocs/op 1.00
BenchmarkDocument/rich_text_test - ns/op 80880 ns/op 80963 ns/op 1.00
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 17234 ns/op 10658 B/op 242 allocs/op 17165 ns/op 10658 B/op 242 allocs/op 1.00
BenchmarkDocument/counter_test - ns/op 17234 ns/op 17165 ns/op 1.00
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 2875010 ns/op 1658360 B/op 17094 allocs/op 2896358 ns/op 1658593 B/op 17094 allocs/op 0.99
BenchmarkDocument/text_edit_gc_100 - ns/op 2875010 ns/op 2896358 ns/op 0.99
BenchmarkDocument/text_edit_gc_100 - B/op 1658360 B/op 1658593 B/op 1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op 17094 allocs/op 17094 allocs/op 1
BenchmarkDocument/text_edit_gc_1000 231897683 ns/op 144367248 B/op 200854 allocs/op 233281679 ns/op 144379088 B/op 200925 allocs/op 0.99
BenchmarkDocument/text_edit_gc_1000 - ns/op 231897683 ns/op 233281679 ns/op 0.99
BenchmarkDocument/text_edit_gc_1000 - B/op 144367248 B/op 144379088 B/op 1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op 200854 allocs/op 200925 allocs/op 1.00
BenchmarkDocument/text_split_gc_100 3381507 ns/op 2316905 B/op 16195 allocs/op 3431054 ns/op 2317032 B/op 16196 allocs/op 0.99
BenchmarkDocument/text_split_gc_100 - ns/op 3381507 ns/op 3431054 ns/op 0.99
BenchmarkDocument/text_split_gc_100 - B/op 2316905 B/op 2317032 B/op 1.00
BenchmarkDocument/text_split_gc_100 - allocs/op 16195 allocs/op 16196 allocs/op 1.00
BenchmarkDocument/text_split_gc_1000 291370945 ns/op 228937280 B/op 204024 allocs/op 295388054 ns/op 228921716 B/op 203957 allocs/op 0.99
BenchmarkDocument/text_split_gc_1000 - ns/op 291370945 ns/op 295388054 ns/op 0.99
BenchmarkDocument/text_split_gc_1000 - B/op 228937280 B/op 228921716 B/op 1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op 204024 allocs/op 203957 allocs/op 1.00
BenchmarkDocument/text_delete_all_10000 10649668 ns/op 5810045 B/op 40672 allocs/op 10885877 ns/op 5810348 B/op 40674 allocs/op 0.98
BenchmarkDocument/text_delete_all_10000 - ns/op 10649668 ns/op 10885877 ns/op 0.98
BenchmarkDocument/text_delete_all_10000 - B/op 5810045 B/op 5810348 B/op 1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op 40672 allocs/op 40674 allocs/op 1.00
BenchmarkDocument/text_delete_all_100000 180134377 ns/op 81908736 B/op 411671 allocs/op 190431495 ns/op 81882562 B/op 411539 allocs/op 0.95
BenchmarkDocument/text_delete_all_100000 - ns/op 180134377 ns/op 190431495 ns/op 0.95
BenchmarkDocument/text_delete_all_100000 - B/op 81908736 B/op 81882562 B/op 1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op 411671 allocs/op 411539 allocs/op 1.00
BenchmarkDocument/text_100 228569 ns/op 120139 B/op 5082 allocs/op 216483 ns/op 120137 B/op 5082 allocs/op 1.06
BenchmarkDocument/text_100 - ns/op 228569 ns/op 216483 ns/op 1.06
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 2462367 ns/op 1169128 B/op 50086 allocs/op 2367033 ns/op 1169125 B/op 50086 allocs/op 1.04
BenchmarkDocument/text_1000 - ns/op 2462367 ns/op 2367033 ns/op 1.04
BenchmarkDocument/text_1000 - B/op 1169128 B/op 1169125 B/op 1.00
BenchmarkDocument/text_1000 - allocs/op 50086 allocs/op 50086 allocs/op 1
BenchmarkDocument/array_1000 1268088 ns/op 1091289 B/op 11829 allocs/op 1199833 ns/op 1091448 B/op 11830 allocs/op 1.06
BenchmarkDocument/array_1000 - ns/op 1268088 ns/op 1199833 ns/op 1.06
BenchmarkDocument/array_1000 - B/op 1091289 B/op 1091448 B/op 1.00
BenchmarkDocument/array_1000 - allocs/op 11829 allocs/op 11830 allocs/op 1.00
BenchmarkDocument/array_10000 13254039 ns/op 9800552 B/op 120297 allocs/op 13238137 ns/op 9800334 B/op 120296 allocs/op 1.00
BenchmarkDocument/array_10000 - ns/op 13254039 ns/op 13238137 ns/op 1.00
BenchmarkDocument/array_10000 - B/op 9800552 B/op 9800334 B/op 1.00
BenchmarkDocument/array_10000 - allocs/op 120297 allocs/op 120296 allocs/op 1.00
BenchmarkDocument/array_gc_100 153043 ns/op 132665 B/op 1259 allocs/op 144816 ns/op 132661 B/op 1259 allocs/op 1.06
BenchmarkDocument/array_gc_100 - ns/op 153043 ns/op 144816 ns/op 1.06
BenchmarkDocument/array_gc_100 - B/op 132665 B/op 132661 B/op 1.00
BenchmarkDocument/array_gc_100 - allocs/op 1259 allocs/op 1259 allocs/op 1
BenchmarkDocument/array_gc_1000 1455207 ns/op 1159051 B/op 12874 allocs/op 1373130 ns/op 1159056 B/op 12874 allocs/op 1.06
BenchmarkDocument/array_gc_1000 - ns/op 1455207 ns/op 1373130 ns/op 1.06
BenchmarkDocument/array_gc_1000 - B/op 1159051 B/op 1159056 B/op 1.00
BenchmarkDocument/array_gc_1000 - allocs/op 12874 allocs/op 12874 allocs/op 1
BenchmarkDocument/counter_1000 211132 ns/op 193013 B/op 5769 allocs/op 197616 ns/op 193011 B/op 5769 allocs/op 1.07
BenchmarkDocument/counter_1000 - ns/op 211132 ns/op 197616 ns/op 1.07
BenchmarkDocument/counter_1000 - B/op 193013 B/op 193011 B/op 1.00
BenchmarkDocument/counter_1000 - allocs/op 5769 allocs/op 5769 allocs/op 1
BenchmarkDocument/counter_10000 2219989 ns/op 2087942 B/op 59776 allocs/op 2142066 ns/op 2087940 B/op 59776 allocs/op 1.04
BenchmarkDocument/counter_10000 - ns/op 2219989 ns/op 2142066 ns/op 1.04
BenchmarkDocument/counter_10000 - B/op 2087942 B/op 2087940 B/op 1.00
BenchmarkDocument/counter_10000 - allocs/op 59776 allocs/op 59776 allocs/op 1
BenchmarkDocument/object_1000 1426080 ns/op 1428077 B/op 9847 allocs/op 1349097 ns/op 1428086 B/op 9847 allocs/op 1.06
BenchmarkDocument/object_1000 - ns/op 1426080 ns/op 1349097 ns/op 1.06
BenchmarkDocument/object_1000 - B/op 1428077 B/op 1428086 B/op 1.00
BenchmarkDocument/object_1000 - allocs/op 9847 allocs/op 9847 allocs/op 1
BenchmarkDocument/object_10000 15278035 ns/op 12167246 B/op 100564 allocs/op 15050225 ns/op 12166576 B/op 100562 allocs/op 1.02
BenchmarkDocument/object_10000 - ns/op 15278035 ns/op 15050225 ns/op 1.02
BenchmarkDocument/object_10000 - B/op 12167246 B/op 12166576 B/op 1.00
BenchmarkDocument/object_10000 - allocs/op 100564 allocs/op 100562 allocs/op 1.00
BenchmarkDocument/tree_100 1071142 ns/op 943789 B/op 6102 allocs/op 1017983 ns/op 943779 B/op 6102 allocs/op 1.05
BenchmarkDocument/tree_100 - ns/op 1071142 ns/op 1017983 ns/op 1.05
BenchmarkDocument/tree_100 - B/op 943789 B/op 943779 B/op 1.00
BenchmarkDocument/tree_100 - allocs/op 6102 allocs/op 6102 allocs/op 1
BenchmarkDocument/tree_1000 77827333 ns/op 86460363 B/op 60115 allocs/op 73944890 ns/op 86460540 B/op 60117 allocs/op 1.05
BenchmarkDocument/tree_1000 - ns/op 77827333 ns/op 73944890 ns/op 1.05
BenchmarkDocument/tree_1000 - B/op 86460363 B/op 86460540 B/op 1.00
BenchmarkDocument/tree_1000 - allocs/op 60115 allocs/op 60117 allocs/op 1.00
BenchmarkDocument/tree_10000 9710675925 ns/op 8580975056 B/op 600249 allocs/op 9653371595 ns/op 8580981472 B/op 600231 allocs/op 1.01
BenchmarkDocument/tree_10000 - ns/op 9710675925 ns/op 9653371595 ns/op 1.01
BenchmarkDocument/tree_10000 - B/op 8580975056 B/op 8580981472 B/op 1.00
BenchmarkDocument/tree_10000 - allocs/op 600249 allocs/op 600231 allocs/op 1.00
BenchmarkDocument/tree_delete_all_1000 78932893 ns/op 86990954 B/op 67755 allocs/op 74281693 ns/op 86991202 B/op 67753 allocs/op 1.06
BenchmarkDocument/tree_delete_all_1000 - ns/op 78932893 ns/op 74281693 ns/op 1.06
BenchmarkDocument/tree_delete_all_1000 - B/op 86990954 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 3893740 ns/op 4121085 B/op 14359 allocs/op 3685711 ns/op 4121091 B/op 14359 allocs/op 1.06
BenchmarkDocument/tree_edit_gc_100 - ns/op 3893740 ns/op 3685711 ns/op 1.06
BenchmarkDocument/tree_edit_gc_100 - B/op 4121085 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 320993955 ns/op 383468914 B/op 145418 allocs/op 303851166 ns/op 383466494 B/op 145407 allocs/op 1.06
BenchmarkDocument/tree_edit_gc_1000 - ns/op 320993955 ns/op 303851166 ns/op 1.06
BenchmarkDocument/tree_edit_gc_1000 - B/op 383468914 B/op 383466494 B/op 1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op 145418 allocs/op 145407 allocs/op 1.00
BenchmarkDocument/tree_split_gc_100 2612435 ns/op 2386971 B/op 10344 allocs/op 2482098 ns/op 2386947 B/op 10344 allocs/op 1.05
BenchmarkDocument/tree_split_gc_100 - ns/op 2612435 ns/op 2482098 ns/op 1.05
BenchmarkDocument/tree_split_gc_100 - B/op 2386971 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 196150681 ns/op 221993485 B/op 112263 allocs/op 182379023 ns/op 221992142 B/op 112263 allocs/op 1.08
BenchmarkDocument/tree_split_gc_1000 - ns/op 196150681 ns/op 182379023 ns/op 1.08
BenchmarkDocument/tree_split_gc_1000 - B/op 221993485 B/op 221992142 B/op 1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op 112263 allocs/op 112263 allocs/op 1
BenchmarkRPC/client_to_server 364999700 ns/op 16549309 B/op 170582 allocs/op 371381586 ns/op 16547896 B/op 170591 allocs/op 0.98
BenchmarkRPC/client_to_server - ns/op 364999700 ns/op 371381586 ns/op 0.98
BenchmarkRPC/client_to_server - B/op 16549309 B/op 16547896 B/op 1.00
BenchmarkRPC/client_to_server - allocs/op 170582 allocs/op 170591 allocs/op 1.00
BenchmarkRPC/client_to_client_via_server 626632648 ns/op 32681376 B/op 318676 allocs/op 638448000 ns/op 31109264 B/op 319261 allocs/op 0.98
BenchmarkRPC/client_to_client_via_server - ns/op 626632648 ns/op 638448000 ns/op 0.98
BenchmarkRPC/client_to_client_via_server - B/op 32681376 B/op 31109264 B/op 1.05
BenchmarkRPC/client_to_client_via_server - allocs/op 318676 allocs/op 319261 allocs/op 1.00
BenchmarkRPC/attach_large_document 1244667978 ns/op 1891876976 B/op 7617 allocs/op 1192269992 ns/op 1915484712 B/op 7639 allocs/op 1.04
BenchmarkRPC/attach_large_document - ns/op 1244667978 ns/op 1192269992 ns/op 1.04
BenchmarkRPC/attach_large_document - B/op 1891876976 B/op 1915484712 B/op 0.99
BenchmarkRPC/attach_large_document - allocs/op 7617 allocs/op 7639 allocs/op 1.00
BenchmarkRPC/adminCli_to_server 540326444 ns/op 35982436 B/op 289681 allocs/op 549017954 ns/op 36016364 B/op 289688 allocs/op 0.98
BenchmarkRPC/adminCli_to_server - ns/op 540326444 ns/op 549017954 ns/op 0.98
BenchmarkRPC/adminCli_to_server - B/op 35982436 B/op 36016364 B/op 1.00
BenchmarkRPC/adminCli_to_server - allocs/op 289681 allocs/op 289688 allocs/op 1.00
BenchmarkLocker 67.47 ns/op 16 B/op 1 allocs/op 66.6 ns/op 16 B/op 1 allocs/op 1.01
BenchmarkLocker - ns/op 67.47 ns/op 66.6 ns/op 1.01
BenchmarkLocker - B/op 16 B/op 16 B/op 1
BenchmarkLocker - allocs/op 1 allocs/op 1 allocs/op 1
BenchmarkLockerParallel 38.64 ns/op 0 B/op 0 allocs/op 38.75 ns/op 0 B/op 0 allocs/op 1.00
BenchmarkLockerParallel - ns/op 38.64 ns/op 38.75 ns/op 1.00
BenchmarkLockerParallel - B/op 0 B/op 0 B/op 1
BenchmarkLockerParallel - allocs/op 0 allocs/op 0 allocs/op 1
BenchmarkLockerMoreKeys 152.5 ns/op 15 B/op 0 allocs/op 153.2 ns/op 15 B/op 0 allocs/op 1.00
BenchmarkLockerMoreKeys - ns/op 152.5 ns/op 153.2 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 3895450 ns/op 122611 B/op 1286 allocs/op 3945672 ns/op 122229 B/op 1285 allocs/op 0.99
BenchmarkChange/Push_10_Changes - ns/op 3895450 ns/op 3945672 ns/op 0.99
BenchmarkChange/Push_10_Changes - B/op 122611 B/op 122229 B/op 1.00
BenchmarkChange/Push_10_Changes - allocs/op 1286 allocs/op 1285 allocs/op 1.00
BenchmarkChange/Push_100_Changes 14552294 ns/op 600768 B/op 6660 allocs/op 14761047 ns/op 598123 B/op 6659 allocs/op 0.99
BenchmarkChange/Push_100_Changes - ns/op 14552294 ns/op 14761047 ns/op 0.99
BenchmarkChange/Push_100_Changes - B/op 600768 B/op 598123 B/op 1.00
BenchmarkChange/Push_100_Changes - allocs/op 6660 allocs/op 6659 allocs/op 1.00
BenchmarkChange/Push_1000_Changes 117563320 ns/op 5907799 B/op 63173 allocs/op 118725592 ns/op 5778244 B/op 63173 allocs/op 0.99
BenchmarkChange/Push_1000_Changes - ns/op 117563320 ns/op 118725592 ns/op 0.99
BenchmarkChange/Push_1000_Changes - B/op 5907799 B/op 5778244 B/op 1.02
BenchmarkChange/Push_1000_Changes - allocs/op 63173 allocs/op 63173 allocs/op 1
BenchmarkChange/Pull_10_Changes 2910828 ns/op 101235 B/op 1004 allocs/op 2951698 ns/op 100944 B/op 1005 allocs/op 0.99
BenchmarkChange/Pull_10_Changes - ns/op 2910828 ns/op 2951698 ns/op 0.99
BenchmarkChange/Pull_10_Changes - B/op 101235 B/op 100944 B/op 1.00
BenchmarkChange/Pull_10_Changes - allocs/op 1004 allocs/op 1005 allocs/op 1.00
BenchmarkChange/Pull_100_Changes 4344607 ns/op 267868 B/op 3477 allocs/op 4440625 ns/op 266628 B/op 3476 allocs/op 0.98
BenchmarkChange/Pull_100_Changes - ns/op 4344607 ns/op 4440625 ns/op 0.98
BenchmarkChange/Pull_100_Changes - B/op 267868 B/op 266628 B/op 1.00
BenchmarkChange/Pull_100_Changes - allocs/op 3477 allocs/op 3476 allocs/op 1.00
BenchmarkChange/Pull_1000_Changes 8766293 ns/op 1494154 B/op 29860 allocs/op 8957893 ns/op 1491084 B/op 29856 allocs/op 0.98
BenchmarkChange/Pull_1000_Changes - ns/op 8766293 ns/op 8957893 ns/op 0.98
BenchmarkChange/Pull_1000_Changes - B/op 1494154 B/op 1491084 B/op 1.00
BenchmarkChange/Pull_1000_Changes - allocs/op 29860 allocs/op 29856 allocs/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot 17169977 ns/op 755696 B/op 6666 allocs/op 17323957 ns/op 763780 B/op 6665 allocs/op 0.99
BenchmarkSnapshot/Push_3KB_snapshot - ns/op 17169977 ns/op 17323957 ns/op 0.99
BenchmarkSnapshot/Push_3KB_snapshot - B/op 755696 B/op 763780 B/op 0.99
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op 6666 allocs/op 6665 allocs/op 1.00
BenchmarkSnapshot/Push_30KB_snapshot 121809882 ns/op 5895714 B/op 63177 allocs/op 122883538 ns/op 5750820 B/op 63173 allocs/op 0.99
BenchmarkSnapshot/Push_30KB_snapshot - ns/op 121809882 ns/op 122883538 ns/op 0.99
BenchmarkSnapshot/Push_30KB_snapshot - B/op 5895714 B/op 5750820 B/op 1.03
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op 63177 allocs/op 63173 allocs/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot 6635189 ns/op 925327 B/op 15511 allocs/op 6703192 ns/op 923694 B/op 15514 allocs/op 0.99
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op 6635189 ns/op 6703192 ns/op 0.99
BenchmarkSnapshot/Pull_3KB_snapshot - B/op 925327 B/op 923694 B/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op 15511 allocs/op 15514 allocs/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot 15578646 ns/op 7181684 B/op 150129 allocs/op 15686228 ns/op 7178330 B/op 150120 allocs/op 0.99
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op 15578646 ns/op 15686228 ns/op 0.99
BenchmarkSnapshot/Pull_30KB_snapshot - B/op 7181684 B/op 7178330 B/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op 150129 allocs/op 150120 allocs/op 1.00
BenchmarkSync/memory_sync_10_test 6821 ns/op 1286 B/op 38 allocs/op 6991 ns/op 1286 B/op 38 allocs/op 0.98
BenchmarkSync/memory_sync_10_test - ns/op 6821 ns/op 6991 ns/op 0.98
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 51263 ns/op 8664 B/op 274 allocs/op 52118 ns/op 8656 B/op 274 allocs/op 0.98
BenchmarkSync/memory_sync_100_test - ns/op 51263 ns/op 52118 ns/op 0.98
BenchmarkSync/memory_sync_100_test - B/op 8664 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 586097 ns/op 74783 B/op 2134 allocs/op 591807 ns/op 74667 B/op 2126 allocs/op 0.99
BenchmarkSync/memory_sync_1000_test - ns/op 586097 ns/op 591807 ns/op 0.99
BenchmarkSync/memory_sync_1000_test - B/op 74783 B/op 74667 B/op 1.00
BenchmarkSync/memory_sync_1000_test - allocs/op 2134 allocs/op 2126 allocs/op 1.00
BenchmarkSync/memory_sync_10000_test 7135353 ns/op 761794 B/op 20523 allocs/op 7159530 ns/op 757631 B/op 20535 allocs/op 1.00
BenchmarkSync/memory_sync_10000_test - ns/op 7135353 ns/op 7159530 ns/op 1.00
BenchmarkSync/memory_sync_10000_test - B/op 761794 B/op 757631 B/op 1.01
BenchmarkSync/memory_sync_10000_test - allocs/op 20523 allocs/op 20535 allocs/op 1.00
BenchmarkTextEditing 18558187678 ns/op 9041994256 B/op 19923080 allocs/op 20537708488 ns/op 9042246592 B/op 19924523 allocs/op 0.90
BenchmarkTextEditing - ns/op 18558187678 ns/op 20537708488 ns/op 0.90
BenchmarkTextEditing - B/op 9041994256 B/op 9042246592 B/op 1.00
BenchmarkTextEditing - allocs/op 19923080 allocs/op 19924523 allocs/op 1.00

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

Please sign in to comment.