Skip to content

Commit

Permalink
Add description of each step about test
Browse files Browse the repository at this point in the history
  • Loading branch information
raararaara committed Mar 18, 2024
1 parent 0374c9c commit da744f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/index/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ func (n *Node[V]) InsertAfter(newNode, referenceNode *Node[V]) error {

// HasTextChild returns true if the node's children consist of only text children.
func (n *Node[V]) HasTextChild() bool {
if len(n.children) > 0 {
if len(n.Children()) > 0 {
for _, child := range n.Children() {
if !child.IsText() {
return false
Expand Down
9 changes: 8 additions & 1 deletion test/integration/tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ func TestTree(t *testing.T) {
d2 := document.New(helper.TestDocKey(t))
assert.NoError(t, c2.Attach(ctx, d2))

// 01. Create a tree and insert a paragraph with text.
assert.NoError(t, d1.Update(func(root *json.Object, p *presence.Presence) error {
root.SetNewTree("t", &json.TreeNode{
Type: "r",
Expand All @@ -401,6 +402,7 @@ func TestTree(t *testing.T) {
assert.Equal(t, "<r><p>hello</p></r>", d1.Root().GetTree("t").ToXML())
assert.Equal(t, "<r><p>hello</p></r>", d2.Root().GetTree("t").ToXML())

// 02. Insert additional character between 3rd character and 4th character.
assert.NoError(t, d1.Update(func(root *json.Object, p *presence.Presence) error {
root.GetTree("t").EditByPath([]int{0, 3}, []int{0, 3}, &json.TreeNode{
Type: "text",
Expand All @@ -409,19 +411,22 @@ func TestTree(t *testing.T) {

return nil
}))

assert.NoError(t, c1.Sync(ctx))
assert.NoError(t, c2.Sync(ctx))
assert.Equal(t, "<r><p>hel3lo</p></r>", d1.Root().GetTree("t").ToXML())
assert.Equal(t, "<r><p>hel3lo</p></r>", d2.Root().GetTree("t").ToXML())

// 03. Get fromParent, fromLeft node from path [0, 5] before fix
fromPos, _ := d2.Root().GetTree("t").PathToPos([]int{0, 5})
fromParent, fromLeft := d2.Root().GetTree("t").ToTreeNodes(fromPos)

// 04. Apply modification
assert.NoError(t, d2.Update(func(root *json.Object, p *presence.Presence) error {
// 04-1. Erase 3rd character from the text, which immediately preceding the treePos obtained above.
root.GetTree("t").EditByPath([]int{0, 4}, []int{0, 5}, nil, 0)
assert.Equal(t, "<r><p>hel3o</p></r>", d2.Root().GetTree("t").ToXML())

// 04-2. Insert character between 3rd character and 4th character.
root.GetTree("t").EditByPath([]int{0, 4}, []int{0, 4}, &json.TreeNode{
Type: "text",
Value: "m",
Expand All @@ -430,6 +435,8 @@ func TestTree(t *testing.T) {

return nil
}))

// 05. Check if the path is identical when re-obtaining the path from `fromParent` and `fromLeft` after fix.
fromPath, err := d2.Root().GetTree("t").ToPath(fromParent, fromLeft)
assert.NoError(t, err)
assert.Equal(t, []int{0, 5}, fromPath)
Expand Down

1 comment on commit da744f9

@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: da744f9 Previous: 79ead0f Ratio
BenchmarkDocument/constructor_test 1433 ns/op 1224 B/op 21 allocs/op 1451 ns/op 1224 B/op 21 allocs/op 0.99
BenchmarkDocument/constructor_test - ns/op 1433 ns/op 1451 ns/op 0.99
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 824.9 ns/op 1192 B/op 19 allocs/op 864.4 ns/op 1192 B/op 19 allocs/op 0.95
BenchmarkDocument/status_test - ns/op 824.9 ns/op 864.4 ns/op 0.95
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 7281 ns/op 6977 B/op 124 allocs/op 7440 ns/op 6977 B/op 124 allocs/op 0.98
BenchmarkDocument/equals_test - ns/op 7281 ns/op 7440 ns/op 0.98
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 18327 ns/op 12059 B/op 260 allocs/op 19340 ns/op 12059 B/op 260 allocs/op 0.95
BenchmarkDocument/nested_update_test - ns/op 18327 ns/op 19340 ns/op 0.95
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 22302 ns/op 15283 B/op 339 allocs/op 22626 ns/op 15284 B/op 339 allocs/op 0.99
BenchmarkDocument/delete_test - ns/op 22302 ns/op 22626 ns/op 0.99
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 8385 ns/op 6753 B/op 118 allocs/op 8724 ns/op 6753 B/op 118 allocs/op 0.96
BenchmarkDocument/object_test - ns/op 8385 ns/op 8724 ns/op 0.96
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 28886 ns/op 11883 B/op 274 allocs/op 28688 ns/op 11883 B/op 274 allocs/op 1.01
BenchmarkDocument/array_test - ns/op 28886 ns/op 28688 ns/op 1.01
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 30851 ns/op 14915 B/op 470 allocs/op 30890 ns/op 14916 B/op 470 allocs/op 1.00
BenchmarkDocument/text_test - ns/op 30851 ns/op 30890 ns/op 1.00
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 28550 ns/op 18430 B/op 479 allocs/op 28937 ns/op 18430 B/op 479 allocs/op 0.99
BenchmarkDocument/text_composition_test - ns/op 28550 ns/op 28937 ns/op 0.99
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 80027 ns/op 38675 B/op 1149 allocs/op 81019 ns/op 38676 B/op 1149 allocs/op 0.99
BenchmarkDocument/rich_text_test - ns/op 80027 ns/op 81019 ns/op 0.99
BenchmarkDocument/rich_text_test - B/op 38675 B/op 38676 B/op 1.00
BenchmarkDocument/rich_text_test - allocs/op 1149 allocs/op 1149 allocs/op 1
BenchmarkDocument/counter_test 17228 ns/op 10658 B/op 242 allocs/op 17360 ns/op 10658 B/op 242 allocs/op 0.99
BenchmarkDocument/counter_test - ns/op 17228 ns/op 17360 ns/op 0.99
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 2865967 ns/op 1658519 B/op 17093 allocs/op 2926107 ns/op 1658727 B/op 17096 allocs/op 0.98
BenchmarkDocument/text_edit_gc_100 - ns/op 2865967 ns/op 2926107 ns/op 0.98
BenchmarkDocument/text_edit_gc_100 - B/op 1658519 B/op 1658727 B/op 1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op 17093 allocs/op 17096 allocs/op 1.00
BenchmarkDocument/text_edit_gc_1000 228156552 ns/op 144391593 B/op 200971 allocs/op 233516244 ns/op 144381155 B/op 200933 allocs/op 0.98
BenchmarkDocument/text_edit_gc_1000 - ns/op 228156552 ns/op 233516244 ns/op 0.98
BenchmarkDocument/text_edit_gc_1000 - B/op 144391593 B/op 144381155 B/op 1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op 200971 allocs/op 200933 allocs/op 1.00
BenchmarkDocument/text_split_gc_100 3400512 ns/op 2316912 B/op 16197 allocs/op 3432423 ns/op 2316779 B/op 16195 allocs/op 0.99
BenchmarkDocument/text_split_gc_100 - ns/op 3400512 ns/op 3432423 ns/op 0.99
BenchmarkDocument/text_split_gc_100 - B/op 2316912 B/op 2316779 B/op 1.00
BenchmarkDocument/text_split_gc_100 - allocs/op 16197 allocs/op 16195 allocs/op 1.00
BenchmarkDocument/text_split_gc_1000 290850306 ns/op 228932848 B/op 204008 allocs/op 294113880 ns/op 228906872 B/op 203880 allocs/op 0.99
BenchmarkDocument/text_split_gc_1000 - ns/op 290850306 ns/op 294113880 ns/op 0.99
BenchmarkDocument/text_split_gc_1000 - B/op 228932848 B/op 228906872 B/op 1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op 204008 allocs/op 203880 allocs/op 1.00
BenchmarkDocument/text_delete_all_10000 11024899 ns/op 5810664 B/op 40675 allocs/op 11599476 ns/op 5811308 B/op 40678 allocs/op 0.95
BenchmarkDocument/text_delete_all_10000 - ns/op 11024899 ns/op 11599476 ns/op 0.95
BenchmarkDocument/text_delete_all_10000 - B/op 5810664 B/op 5811308 B/op 1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op 40675 allocs/op 40678 allocs/op 1.00
BenchmarkDocument/text_delete_all_100000 186025268 ns/op 81899461 B/op 411620 allocs/op 190475818 ns/op 81893962 B/op 411587 allocs/op 0.98
BenchmarkDocument/text_delete_all_100000 - ns/op 186025268 ns/op 190475818 ns/op 0.98
BenchmarkDocument/text_delete_all_100000 - B/op 81899461 B/op 81893962 B/op 1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op 411620 allocs/op 411587 allocs/op 1.00
BenchmarkDocument/text_100 222253 ns/op 120140 B/op 5082 allocs/op 220984 ns/op 120139 B/op 5082 allocs/op 1.01
BenchmarkDocument/text_100 - ns/op 222253 ns/op 220984 ns/op 1.01
BenchmarkDocument/text_100 - B/op 120140 B/op 120139 B/op 1.00
BenchmarkDocument/text_100 - allocs/op 5082 allocs/op 5082 allocs/op 1
BenchmarkDocument/text_1000 2397811 ns/op 1169126 B/op 50086 allocs/op 2421906 ns/op 1169125 B/op 50086 allocs/op 0.99
BenchmarkDocument/text_1000 - ns/op 2397811 ns/op 2421906 ns/op 0.99
BenchmarkDocument/text_1000 - B/op 1169126 B/op 1169125 B/op 1.00
BenchmarkDocument/text_1000 - allocs/op 50086 allocs/op 50086 allocs/op 1
BenchmarkDocument/array_1000 1231404 ns/op 1091390 B/op 11830 allocs/op 1203524 ns/op 1091328 B/op 11829 allocs/op 1.02
BenchmarkDocument/array_1000 - ns/op 1231404 ns/op 1203524 ns/op 1.02
BenchmarkDocument/array_1000 - B/op 1091390 B/op 1091328 B/op 1.00
BenchmarkDocument/array_1000 - allocs/op 11830 allocs/op 11829 allocs/op 1.00
BenchmarkDocument/array_10000 13148949 ns/op 9800076 B/op 120295 allocs/op 13343595 ns/op 9800355 B/op 120296 allocs/op 0.99
BenchmarkDocument/array_10000 - ns/op 13148949 ns/op 13343595 ns/op 0.99
BenchmarkDocument/array_10000 - B/op 9800076 B/op 9800355 B/op 1.00
BenchmarkDocument/array_10000 - allocs/op 120295 allocs/op 120296 allocs/op 1.00
BenchmarkDocument/array_gc_100 149791 ns/op 132664 B/op 1259 allocs/op 144218 ns/op 132656 B/op 1258 allocs/op 1.04
BenchmarkDocument/array_gc_100 - ns/op 149791 ns/op 144218 ns/op 1.04
BenchmarkDocument/array_gc_100 - B/op 132664 B/op 132656 B/op 1.00
BenchmarkDocument/array_gc_100 - allocs/op 1259 allocs/op 1258 allocs/op 1.00
BenchmarkDocument/array_gc_1000 1402447 ns/op 1159130 B/op 12875 allocs/op 1386490 ns/op 1159098 B/op 12874 allocs/op 1.01
BenchmarkDocument/array_gc_1000 - ns/op 1402447 ns/op 1386490 ns/op 1.01
BenchmarkDocument/array_gc_1000 - B/op 1159130 B/op 1159098 B/op 1.00
BenchmarkDocument/array_gc_1000 - allocs/op 12875 allocs/op 12874 allocs/op 1.00
BenchmarkDocument/counter_1000 204208 ns/op 193012 B/op 5769 allocs/op 200635 ns/op 193013 B/op 5769 allocs/op 1.02
BenchmarkDocument/counter_1000 - ns/op 204208 ns/op 200635 ns/op 1.02
BenchmarkDocument/counter_1000 - B/op 193012 B/op 193013 B/op 1.00
BenchmarkDocument/counter_1000 - allocs/op 5769 allocs/op 5769 allocs/op 1
BenchmarkDocument/counter_10000 2188338 ns/op 2087927 B/op 59776 allocs/op 2162572 ns/op 2087942 B/op 59776 allocs/op 1.01
BenchmarkDocument/counter_10000 - ns/op 2188338 ns/op 2162572 ns/op 1.01
BenchmarkDocument/counter_10000 - B/op 2087927 B/op 2087942 B/op 1.00
BenchmarkDocument/counter_10000 - allocs/op 59776 allocs/op 59776 allocs/op 1
BenchmarkDocument/object_1000 1376631 ns/op 1427890 B/op 9846 allocs/op 1365656 ns/op 1428237 B/op 9847 allocs/op 1.01
BenchmarkDocument/object_1000 - ns/op 1376631 ns/op 1365656 ns/op 1.01
BenchmarkDocument/object_1000 - B/op 1427890 B/op 1428237 B/op 1.00
BenchmarkDocument/object_1000 - allocs/op 9846 allocs/op 9847 allocs/op 1.00
BenchmarkDocument/object_10000 15029816 ns/op 12168761 B/op 100567 allocs/op 15105323 ns/op 12166729 B/op 100562 allocs/op 1.00
BenchmarkDocument/object_10000 - ns/op 15029816 ns/op 15105323 ns/op 1.00
BenchmarkDocument/object_10000 - B/op 12168761 B/op 12166729 B/op 1.00
BenchmarkDocument/object_10000 - allocs/op 100567 allocs/op 100562 allocs/op 1.00
BenchmarkDocument/tree_100 1050503 ns/op 943780 B/op 6102 allocs/op 1024218 ns/op 943778 B/op 6102 allocs/op 1.03
BenchmarkDocument/tree_100 - ns/op 1050503 ns/op 1024218 ns/op 1.03
BenchmarkDocument/tree_100 - B/op 943780 B/op 943778 B/op 1.00
BenchmarkDocument/tree_100 - allocs/op 6102 allocs/op 6102 allocs/op 1
BenchmarkDocument/tree_1000 76061973 ns/op 86460346 B/op 60115 allocs/op 74641197 ns/op 86460440 B/op 60116 allocs/op 1.02
BenchmarkDocument/tree_1000 - ns/op 76061973 ns/op 74641197 ns/op 1.02
BenchmarkDocument/tree_1000 - B/op 86460346 B/op 86460440 B/op 1.00
BenchmarkDocument/tree_1000 - allocs/op 60115 allocs/op 60116 allocs/op 1.00
BenchmarkDocument/tree_10000 9350031981 ns/op 8580673072 B/op 600250 allocs/op 9668248984 ns/op 8580655408 B/op 600238 allocs/op 0.97
BenchmarkDocument/tree_10000 - ns/op 9350031981 ns/op 9668248984 ns/op 0.97
BenchmarkDocument/tree_10000 - B/op 8580673072 B/op 8580655408 B/op 1.00
BenchmarkDocument/tree_10000 - allocs/op 600250 allocs/op 600238 allocs/op 1.00
BenchmarkDocument/tree_delete_all_1000 76256393 ns/op 87013820 B/op 67755 allocs/op 73065373 ns/op 87012183 B/op 67755 allocs/op 1.04
BenchmarkDocument/tree_delete_all_1000 - ns/op 76256393 ns/op 73065373 ns/op 1.04
BenchmarkDocument/tree_delete_all_1000 - B/op 87013820 B/op 87012183 B/op 1.00
BenchmarkDocument/tree_delete_all_1000 - allocs/op 67755 allocs/op 67755 allocs/op 1
BenchmarkDocument/tree_edit_gc_100 3716817 ns/op 4121127 B/op 14359 allocs/op 3681344 ns/op 4121163 B/op 14359 allocs/op 1.01
BenchmarkDocument/tree_edit_gc_100 - ns/op 3716817 ns/op 3681344 ns/op 1.01
BenchmarkDocument/tree_edit_gc_100 - B/op 4121127 B/op 4121163 B/op 1.00
BenchmarkDocument/tree_edit_gc_100 - allocs/op 14359 allocs/op 14359 allocs/op 1
BenchmarkDocument/tree_edit_gc_1000 300560468 ns/op 383466322 B/op 145410 allocs/op 297856722 ns/op 383467306 B/op 145418 allocs/op 1.01
BenchmarkDocument/tree_edit_gc_1000 - ns/op 300560468 ns/op 297856722 ns/op 1.01
BenchmarkDocument/tree_edit_gc_1000 - B/op 383466322 B/op 383467306 B/op 1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op 145410 allocs/op 145418 allocs/op 1.00
BenchmarkDocument/tree_split_gc_100 2494846 ns/op 2386972 B/op 10344 allocs/op 2518259 ns/op 2386911 B/op 10344 allocs/op 0.99
BenchmarkDocument/tree_split_gc_100 - ns/op 2494846 ns/op 2518259 ns/op 0.99
BenchmarkDocument/tree_split_gc_100 - B/op 2386972 B/op 2386911 B/op 1.00
BenchmarkDocument/tree_split_gc_100 - allocs/op 10344 allocs/op 10344 allocs/op 1
BenchmarkDocument/tree_split_gc_1000 183828602 ns/op 221992336 B/op 112266 allocs/op 187462611 ns/op 221994256 B/op 112259 allocs/op 0.98
BenchmarkDocument/tree_split_gc_1000 - ns/op 183828602 ns/op 187462611 ns/op 0.98
BenchmarkDocument/tree_split_gc_1000 - B/op 221992336 B/op 221994256 B/op 1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op 112266 allocs/op 112259 allocs/op 1.00
BenchmarkRPC/client_to_server 365952794 ns/op 17922421 B/op 170649 allocs/op 372292014 ns/op 17944720 B/op 170684 allocs/op 0.98
BenchmarkRPC/client_to_server - ns/op 365952794 ns/op 372292014 ns/op 0.98
BenchmarkRPC/client_to_server - B/op 17922421 B/op 17944720 B/op 1.00
BenchmarkRPC/client_to_server - allocs/op 170649 allocs/op 170684 allocs/op 1.00
BenchmarkRPC/client_to_client_via_server 623673304 ns/op 32780992 B/op 319719 allocs/op 631799664 ns/op 32366436 B/op 319590 allocs/op 0.99
BenchmarkRPC/client_to_client_via_server - ns/op 623673304 ns/op 631799664 ns/op 0.99
BenchmarkRPC/client_to_client_via_server - B/op 32780992 B/op 32366436 B/op 1.01
BenchmarkRPC/client_to_client_via_server - allocs/op 319719 allocs/op 319590 allocs/op 1.00
BenchmarkRPC/attach_large_document 1551786001 ns/op 1891861968 B/op 7608 allocs/op 1294105120 ns/op 1904966360 B/op 7614 allocs/op 1.20
BenchmarkRPC/attach_large_document - ns/op 1551786001 ns/op 1294105120 ns/op 1.20
BenchmarkRPC/attach_large_document - B/op 1891861968 B/op 1904966360 B/op 0.99
BenchmarkRPC/attach_large_document - allocs/op 7608 allocs/op 7614 allocs/op 1.00
BenchmarkRPC/adminCli_to_server 539089582 ns/op 36798124 B/op 289664 allocs/op 541598412 ns/op 37270460 B/op 289674 allocs/op 1.00
BenchmarkRPC/adminCli_to_server - ns/op 539089582 ns/op 541598412 ns/op 1.00
BenchmarkRPC/adminCli_to_server - B/op 36798124 B/op 37270460 B/op 0.99
BenchmarkRPC/adminCli_to_server - allocs/op 289664 allocs/op 289674 allocs/op 1.00
BenchmarkLocker 64.97 ns/op 16 B/op 1 allocs/op 64.9 ns/op 16 B/op 1 allocs/op 1.00
BenchmarkLocker - ns/op 64.97 ns/op 64.9 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.67 ns/op 0 B/op 0 allocs/op 39.18 ns/op 0 B/op 0 allocs/op 0.99
BenchmarkLockerParallel - ns/op 38.67 ns/op 39.18 ns/op 0.99
BenchmarkLockerParallel - B/op 0 B/op 0 B/op 1
BenchmarkLockerParallel - allocs/op 0 allocs/op 0 allocs/op 1
BenchmarkLockerMoreKeys 157.3 ns/op 15 B/op 0 allocs/op 158.9 ns/op 15 B/op 0 allocs/op 0.99
BenchmarkLockerMoreKeys - ns/op 157.3 ns/op 158.9 ns/op 0.99
BenchmarkLockerMoreKeys - B/op 15 B/op 15 B/op 1
BenchmarkLockerMoreKeys - allocs/op 0 allocs/op 0 allocs/op 1
BenchmarkChange/Push_10_Changes 3865922 ns/op 122405 B/op 1285 allocs/op 3929924 ns/op 122150 B/op 1280 allocs/op 0.98
BenchmarkChange/Push_10_Changes - ns/op 3865922 ns/op 3929924 ns/op 0.98
BenchmarkChange/Push_10_Changes - B/op 122405 B/op 122150 B/op 1.00
BenchmarkChange/Push_10_Changes - allocs/op 1285 allocs/op 1280 allocs/op 1.00
BenchmarkChange/Push_100_Changes 14452667 ns/op 595750 B/op 6659 allocs/op 14718640 ns/op 591773 B/op 6654 allocs/op 0.98
BenchmarkChange/Push_100_Changes - ns/op 14452667 ns/op 14718640 ns/op 0.98
BenchmarkChange/Push_100_Changes - B/op 595750 B/op 591773 B/op 1.01
BenchmarkChange/Push_100_Changes - allocs/op 6659 allocs/op 6654 allocs/op 1.00
BenchmarkChange/Push_1000_Changes 116578858 ns/op 5826934 B/op 63167 allocs/op 118720472 ns/op 5642247 B/op 63168 allocs/op 0.98
BenchmarkChange/Push_1000_Changes - ns/op 116578858 ns/op 118720472 ns/op 0.98
BenchmarkChange/Push_1000_Changes - B/op 5826934 B/op 5642247 B/op 1.03
BenchmarkChange/Push_1000_Changes - allocs/op 63167 allocs/op 63168 allocs/op 1.00
BenchmarkChange/Pull_10_Changes 2876393 ns/op 101343 B/op 1004 allocs/op 2906134 ns/op 101217 B/op 1005 allocs/op 0.99
BenchmarkChange/Pull_10_Changes - ns/op 2876393 ns/op 2906134 ns/op 0.99
BenchmarkChange/Pull_10_Changes - B/op 101343 B/op 101217 B/op 1.00
BenchmarkChange/Pull_10_Changes - allocs/op 1004 allocs/op 1005 allocs/op 1.00
BenchmarkChange/Pull_100_Changes 4316706 ns/op 268041 B/op 3476 allocs/op 4342247 ns/op 267486 B/op 3476 allocs/op 0.99
BenchmarkChange/Pull_100_Changes - ns/op 4316706 ns/op 4342247 ns/op 0.99
BenchmarkChange/Pull_100_Changes - B/op 268041 B/op 267486 B/op 1.00
BenchmarkChange/Pull_100_Changes - allocs/op 3476 allocs/op 3476 allocs/op 1
BenchmarkChange/Pull_1000_Changes 8560889 ns/op 1493174 B/op 29866 allocs/op 8920513 ns/op 1495585 B/op 29860 allocs/op 0.96
BenchmarkChange/Pull_1000_Changes - ns/op 8560889 ns/op 8920513 ns/op 0.96
BenchmarkChange/Pull_1000_Changes - B/op 1493174 B/op 1495585 B/op 1.00
BenchmarkChange/Pull_1000_Changes - allocs/op 29866 allocs/op 29860 allocs/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot 17119237 ns/op 753466 B/op 6661 allocs/op 17118256 ns/op 743167 B/op 6666 allocs/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot - ns/op 17119237 ns/op 17118256 ns/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot - B/op 753466 B/op 743167 B/op 1.01
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op 6661 allocs/op 6666 allocs/op 1.00
BenchmarkSnapshot/Push_30KB_snapshot 120931812 ns/op 5905322 B/op 63178 allocs/op 122151570 ns/op 6015183 B/op 63178 allocs/op 0.99
BenchmarkSnapshot/Push_30KB_snapshot - ns/op 120931812 ns/op 122151570 ns/op 0.99
BenchmarkSnapshot/Push_30KB_snapshot - B/op 5905322 B/op 6015183 B/op 0.98
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op 63178 allocs/op 63178 allocs/op 1
BenchmarkSnapshot/Pull_3KB_snapshot 6510479 ns/op 926358 B/op 15515 allocs/op 6602138 ns/op 925743 B/op 15518 allocs/op 0.99
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op 6510479 ns/op 6602138 ns/op 0.99
BenchmarkSnapshot/Pull_3KB_snapshot - B/op 926358 B/op 925743 B/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op 15515 allocs/op 15518 allocs/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot 15369178 ns/op 7174366 B/op 150120 allocs/op 15291750 ns/op 7182659 B/op 150121 allocs/op 1.01
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op 15369178 ns/op 15291750 ns/op 1.01
BenchmarkSnapshot/Pull_30KB_snapshot - B/op 7174366 B/op 7182659 B/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op 150120 allocs/op 150121 allocs/op 1.00
BenchmarkSync/memory_sync_10_test 6877 ns/op 1287 B/op 38 allocs/op 6852 ns/op 1286 B/op 38 allocs/op 1.00
BenchmarkSync/memory_sync_10_test - ns/op 6877 ns/op 6852 ns/op 1.00
BenchmarkSync/memory_sync_10_test - B/op 1287 B/op 1286 B/op 1.00
BenchmarkSync/memory_sync_10_test - allocs/op 38 allocs/op 38 allocs/op 1
BenchmarkSync/memory_sync_100_test 50590 ns/op 8661 B/op 274 allocs/op 51386 ns/op 8643 B/op 273 allocs/op 0.98
BenchmarkSync/memory_sync_100_test - ns/op 50590 ns/op 51386 ns/op 0.98
BenchmarkSync/memory_sync_100_test - B/op 8661 B/op 8643 B/op 1.00
BenchmarkSync/memory_sync_100_test - allocs/op 274 allocs/op 273 allocs/op 1.00
BenchmarkSync/memory_sync_1000_test 592932 ns/op 74326 B/op 2106 allocs/op 588548 ns/op 74490 B/op 2115 allocs/op 1.01
BenchmarkSync/memory_sync_1000_test - ns/op 592932 ns/op 588548 ns/op 1.01
BenchmarkSync/memory_sync_1000_test - B/op 74326 B/op 74490 B/op 1.00
BenchmarkSync/memory_sync_1000_test - allocs/op 2106 allocs/op 2115 allocs/op 1.00
BenchmarkSync/memory_sync_10000_test 7202147 ns/op 769898 B/op 20743 allocs/op 7496468 ns/op 749383 B/op 20453 allocs/op 0.96
BenchmarkSync/memory_sync_10000_test - ns/op 7202147 ns/op 7496468 ns/op 0.96
BenchmarkSync/memory_sync_10000_test - B/op 769898 B/op 749383 B/op 1.03
BenchmarkSync/memory_sync_10000_test - allocs/op 20743 allocs/op 20453 allocs/op 1.01
BenchmarkTextEditing 19909964953 ns/op 9042091712 B/op 19923773 allocs/op 18741087180 ns/op 9042506856 B/op 19925731 allocs/op 1.06
BenchmarkTextEditing - ns/op 19909964953 ns/op 18741087180 ns/op 1.06
BenchmarkTextEditing - B/op 9042091712 B/op 9042506856 B/op 1.00
BenchmarkTextEditing - allocs/op 19923773 allocs/op 19925731 allocs/op 1.00

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

Please sign in to comment.