Skip to content

Commit

Permalink
Revise test codes
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerwins committed Jan 17, 2024
1 parent 4ffdbf3 commit e6fc05d
Showing 1 changed file with 39 additions and 113 deletions.
152 changes: 39 additions & 113 deletions test/integration/object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,140 +166,66 @@ func TestObject(t *testing.T) {
syncClientsThenAssertEqual(t, []clientAndDocPair{{c1, d1}, {c2, d2}})
})

t.Run("Set new object with json literal test", func(t *testing.T) {
t.Run("object.set with json literal test", func(t *testing.T) {
ctx := context.Background()
d1 := document.New(helper.TestDocKey(t))
d2 := document.New(helper.TestDocKey(t))
err := c1.Attach(ctx, d1)
assert.NoError(t, err)
err = c2.Attach(ctx, d2)
assert.NoError(t, err)

err = d1.Update(func(root *json.Object, p *presence.Presence) error {
data := map[string]interface{}{ // 1 : object
"key": "value", // 1 : string
"key2": []interface{}{1, 2, "str"}, // 4 : array, 1, 2, "str"
"obj": map[string]interface{}{ // 2 : object, double
"key3": 42.2,
},
"cnt": json.NewCounter(0, crdt.LongCnt), // 1
"txt": json.NewText(), // 1
}
root.SetNewObject("shape", data)
root.GetObject("shape").SetString("key", "changed") // 1 tombstone
root.GetObject("shape").GetText("txt").Edit(0, 0, "ABCD")
root.GetObject("shape").GetCounter("cnt").Increase(7)
assert.NoError(t, c1.Attach(ctx, d1))
assert.NoError(t, c2.Attach(ctx, d2))

// 01. set new object with json literal. 10 elements will be created.
err := d1.Update(func(root *json.Object, p *presence.Presence) error {
root.SetNewObject("obj", map[string]interface{}{ // 1: object
"str": "v", // 1: string
"arr": []interface{}{1, "str"}, // 3: array, 1, "str"
"obj": map[string]interface{}{"key3": 42.2}, // 2: object, 42.2
"cnt": json.NewCounter(0, crdt.LongCnt), // 1: counter
"txt": json.NewText(), // 1: text
"tree": json.NewTree(&json.TreeNode{ // 1: tree
Type: "doc",
Children: []json.TreeNode{{
Type: "p", Children: []json.TreeNode{{Type: "text", Value: "ab"}},
}},
}),
})
return nil
})
assert.NoError(t, err)

// 02. set new object with same value by calling function.
err = d2.Update(func(root *json.Object, p *presence.Presence) error {
root.SetNewObject("shape").
SetString("key", "value").
SetNewArray("key2")

root.GetObject("shape").GetArray("key2").AddInteger(1, 2).AddString("str")

root.GetObject("shape").SetNewObject("obj").
SetDouble("key3", 42.2)

root.GetObject("shape").SetNewCounter("cnt", crdt.LongCnt, 0)
root.GetObject("shape").GetCounter("cnt").Increase(7)
root.GetObject("shape").SetString("key", "changed")

root.GetObject("shape").SetNewText("txt").Edit(0, 0, "ABCD")
root.SetNewObject("obj").SetString("str", "v")
root.GetObject("obj").SetNewArray("arr").AddInteger(1).AddString("str")
root.GetObject("obj").SetNewObject("obj").SetDouble("key3", 42.2)
root.GetObject("obj").SetNewCounter("cnt", crdt.LongCnt, 0)
root.GetObject("obj").SetNewText("txt")
root.GetObject("obj").SetNewTree("tree", &json.TreeNode{
Type: "doc",
Children: []json.TreeNode{{
Type: "p", Children: []json.TreeNode{{Type: "text", Value: "ab"}},
}},
})
return nil
})
assert.NoError(t, err)
assert.Equal(t, `{"obj":{"arr":[1,"str"],"cnt":0,"obj":{"key3":42.200000},"str":"v","tree":{"type":"doc","children":[{"type":"p","children":[{"type":"text","value":"ab"}]}]},"txt":[]}}`, d1.Marshal())
assert.Equal(t, d2.Marshal(), d1.Marshal())

assert.Equal(t, `{"shape":{"cnt":7,"key":"changed","key2":[1,2,"str"],"obj":{"key3":42.200000},"txt":[{"val":"ABCD"}]}}`, d1.Marshal())
assert.Equal(t, d2.Marshal(), d1.Marshal()) // d1 should be same with d2

// 03. remove the shape object and check the number of tombstones.
err = d1.Update(func(root *json.Object, p *presence.Presence) error {
root.Delete("shape")
root.Delete("obj")
return nil
})

assert.NoError(t, err)

err = d2.Update(func(root *json.Object, p *presence.Presence) error {
root.Delete("shape")
return nil
})

assert.NoError(t, err)

assert.Equal(t, 11, d1.GarbageLen())
assert.Equal(t, 11, d1.GarbageCollect(time.MaxTicket))

assert.Equal(t, 11, d2.GarbageLen())
assert.Equal(t, 11, d2.GarbageCollect(time.MaxTicket))

})

t.Run("Json object literal tree type test", func(t *testing.T) {

ctx := context.Background()
d1 := document.New(helper.TestDocKey(t))
err := c1.Attach(ctx, d1)

d2 := document.New(helper.TestDocKey(t))
err = c2.Attach(ctx, d2)

assert.NoError(t, err)

err = d1.Update(func(root *json.Object, p *presence.Presence) error {

data := map[string]interface{}{
"tree": json.NewTree(&json.TreeNode{
Type: "doc",
Children: []json.TreeNode{{
Type: "p", Children: []json.TreeNode{{
Type: "tn", Children: []json.TreeNode{{
Type: "text", Value: "a",
}, {
Type: "text", Value: "b",
}},
}, {
Type: "tn", Children: []json.TreeNode{{
Type: "text", Value: "cd",
}},
}},
}},
}),
}

root.SetNewObject("obj", data)
assert.Equal(t, `<doc><p><tn>ab</tn><tn>cd</tn></p></doc>`, root.GetObject("obj").GetTree("tree").ToXML())

root.GetObject("obj").GetTree("tree").EditByPath([]int{0, 0, 0}, []int{0, 0, 2}, &json.TreeNode{Type: "text", Value: "gh"}, 0)
assert.Equal(t, `<doc><p><tn>gh</tn><tn>cd</tn></p></doc>`, root.GetObject("obj").GetTree("tree").ToXML())

return nil
})

assert.NoError(t, err)
assert.Equal(t, 2, d1.GarbageLen())
assert.Equal(t, 2, d1.GarbageCollect(time.MaxTicket))
assert.Equal(t, 0, d1.GarbageLen())

err = c1.Sync(ctx)
assert.NoError(t, err)
err = c2.Sync(ctx)
assert.NoError(t, err)

assert.Equal(t, d1.Marshal(), d2.Marshal())

err = d1.Update(func(root *json.Object, p *presence.Presence) error {
root.Delete("obj")
return nil
})
assert.NoError(t, err)

assert.Equal(t, 2, d1.GarbageLen())
assert.Equal(t, 2, d1.GarbageCollect(time.MaxTicket))
assert.Equal(t, 2, d2.GarbageLen())
assert.Equal(t, 2, d2.GarbageCollect(time.MaxTicket))
assert.Equal(t, 10, d1.GarbageLen())
assert.Equal(t, 10, d1.GarbageCollect(time.MaxTicket))
assert.Equal(t, 10, d2.GarbageLen())
assert.Equal(t, 10, d2.GarbageCollect(time.MaxTicket))
})

t.Run("Set new object to json object literal sync test", func(t *testing.T) {
Expand Down

1 comment on commit e6fc05d

@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: e6fc05d Previous: a8c58f9 Ratio
BenchmarkDocument/constructor_test - ns/op 1429 ns/op 1457 ns/op 0.98
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 - ns/op 849.3 ns/op 849.5 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 - ns/op 7423 ns/op 7524 ns/op 0.99
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 - ns/op 16624 ns/op 18601 ns/op 0.89
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 - ns/op 22525 ns/op 22335 ns/op 1.01
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 - ns/op 8559 ns/op 8516 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 - ns/op 32509 ns/op 28781 ns/op 1.13
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 - ns/op 30835 ns/op 30487 ns/op 1.01
BenchmarkDocument/text_test - B/op 14915 B/op 14828 B/op 1.01
BenchmarkDocument/text_test - allocs/op 470 allocs/op 470 allocs/op 1
BenchmarkDocument/text_composition_test - ns/op 29097 ns/op 28865 ns/op 1.01
BenchmarkDocument/text_composition_test - B/op 18430 B/op 18310 B/op 1.01
BenchmarkDocument/text_composition_test - allocs/op 479 allocs/op 479 allocs/op 1
BenchmarkDocument/rich_text_test - ns/op 79887 ns/op 80677 ns/op 0.99
BenchmarkDocument/rich_text_test - B/op 38676 B/op 38572 B/op 1.00
BenchmarkDocument/rich_text_test - allocs/op 1149 allocs/op 1149 allocs/op 1
BenchmarkDocument/counter_test - ns/op 17053 ns/op 16759 ns/op 1.02
BenchmarkDocument/counter_test - B/op 10466 B/op 10242 B/op 1.02
BenchmarkDocument/counter_test - allocs/op 238 allocs/op 238 allocs/op 1
BenchmarkDocument/text_edit_gc_100 - ns/op 2878594 ns/op 2887897 ns/op 1.00
BenchmarkDocument/text_edit_gc_100 - B/op 1658528 B/op 1655169 B/op 1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op 17093 allocs/op 17094 allocs/op 1.00
BenchmarkDocument/text_edit_gc_1000 - ns/op 228182530 ns/op 229415441 ns/op 0.99
BenchmarkDocument/text_edit_gc_1000 - B/op 144395900 B/op 144344868 B/op 1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op 201005 allocs/op 200908 allocs/op 1.00
BenchmarkDocument/text_split_gc_100 - ns/op 3383686 ns/op 3374708 ns/op 1.00
BenchmarkDocument/text_split_gc_100 - B/op 2316912 B/op 2313351 B/op 1.00
BenchmarkDocument/text_split_gc_100 - allocs/op 16196 allocs/op 16195 allocs/op 1.00
BenchmarkDocument/text_split_gc_1000 - ns/op 290258812 ns/op 287430465 ns/op 1.01
BenchmarkDocument/text_split_gc_1000 - B/op 228925192 B/op 228891160 B/op 1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op 203997 allocs/op 203934 allocs/op 1.00
BenchmarkDocument/text_delete_all_10000 - ns/op 10855568 ns/op 10779697 ns/op 1.01
BenchmarkDocument/text_delete_all_10000 - B/op 5810745 B/op 5809238 B/op 1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op 40675 allocs/op 40669 allocs/op 1.00
BenchmarkDocument/text_delete_all_100000 - ns/op 183589452 ns/op 188925896 ns/op 0.97
BenchmarkDocument/text_delete_all_100000 - B/op 81902493 B/op 81910706 B/op 1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op 411629 allocs/op 411662 allocs/op 1.00
BenchmarkDocument/text_100 - ns/op 231705 ns/op 229354 ns/op 1.01
BenchmarkDocument/text_100 - B/op 120139 B/op 118514 B/op 1.01
BenchmarkDocument/text_100 - allocs/op 5082 allocs/op 5082 allocs/op 1
BenchmarkDocument/text_1000 - ns/op 2486438 ns/op 2502759 ns/op 0.99
BenchmarkDocument/text_1000 - B/op 1169127 B/op 1153102 B/op 1.01
BenchmarkDocument/text_1000 - allocs/op 50086 allocs/op 50086 allocs/op 1
BenchmarkDocument/array_1000 - ns/op 1285971 ns/op 1262770 ns/op 1.02
BenchmarkDocument/array_1000 - B/op 1091294 B/op 1091147 B/op 1.00
BenchmarkDocument/array_1000 - allocs/op 11829 allocs/op 11829 allocs/op 1
BenchmarkDocument/array_10000 - ns/op 13505375 ns/op 13221008 ns/op 1.02
BenchmarkDocument/array_10000 - B/op 9799669 B/op 9799195 B/op 1.00
BenchmarkDocument/array_10000 - allocs/op 120293 allocs/op 120291 allocs/op 1.00
BenchmarkDocument/array_gc_100 - ns/op 154905 ns/op 172372 ns/op 0.90
BenchmarkDocument/array_gc_100 - B/op 132645 B/op 139899 B/op 0.95
BenchmarkDocument/array_gc_100 - allocs/op 1258 allocs/op 1472 allocs/op 0.85
BenchmarkDocument/array_gc_1000 - ns/op 1462403 ns/op 1651513 ns/op 0.89
BenchmarkDocument/array_gc_1000 - B/op 1159037 B/op 1241466 B/op 0.93
BenchmarkDocument/array_gc_1000 - allocs/op 12874 allocs/op 14897 allocs/op 0.86
BenchmarkDocument/counter_1000 - ns/op 218952 ns/op 210894 ns/op 1.04
BenchmarkDocument/counter_1000 - B/op 192917 B/op 192884 B/op 1.00
BenchmarkDocument/counter_1000 - allocs/op 5767 allocs/op 5767 allocs/op 1
BenchmarkDocument/counter_10000 - ns/op 2283690 ns/op 2217464 ns/op 1.03
BenchmarkDocument/counter_10000 - B/op 2087831 B/op 2087814 B/op 1.00
BenchmarkDocument/counter_10000 - allocs/op 59774 allocs/op 59774 allocs/op 1
BenchmarkDocument/object_1000 - ns/op 1439338 ns/op 1442631 ns/op 1.00
BenchmarkDocument/object_1000 - B/op 1427978 B/op 1428083 B/op 1.00
BenchmarkDocument/object_1000 - allocs/op 9847 allocs/op 9847 allocs/op 1
BenchmarkDocument/object_10000 - ns/op 15284688 ns/op 15149865 ns/op 1.01
BenchmarkDocument/object_10000 - B/op 12168339 B/op 12166338 B/op 1.00
BenchmarkDocument/object_10000 - allocs/op 100568 allocs/op 100562 allocs/op 1.00
BenchmarkDocument/tree_100 - ns/op 1058026 ns/op 1068412 ns/op 0.99
BenchmarkDocument/tree_100 - B/op 943781 B/op 943709 B/op 1.00
BenchmarkDocument/tree_100 - allocs/op 6102 allocs/op 6101 allocs/op 1.00
BenchmarkDocument/tree_1000 - ns/op 77741325 ns/op 79029252 ns/op 0.98
BenchmarkDocument/tree_1000 - B/op 86460627 B/op 86460602 B/op 1.00
BenchmarkDocument/tree_1000 - allocs/op 60116 allocs/op 60116 allocs/op 1
BenchmarkDocument/tree_10000 - ns/op 9870688951 ns/op 9661149264 ns/op 1.02
BenchmarkDocument/tree_10000 - B/op 8580987392 B/op 8580973784 B/op 1.00
BenchmarkDocument/tree_10000 - allocs/op 600215 allocs/op 600230 allocs/op 1.00
BenchmarkDocument/tree_delete_all_1000 - ns/op 78991608 ns/op 79816852 ns/op 0.99
BenchmarkDocument/tree_delete_all_1000 - B/op 86990782 B/op 86990889 B/op 1.00
BenchmarkDocument/tree_delete_all_1000 - allocs/op 67753 allocs/op 67750 allocs/op 1.00
BenchmarkDocument/tree_edit_gc_100 - ns/op 3871691 ns/op 3866691 ns/op 1.00
BenchmarkDocument/tree_edit_gc_100 - B/op 4121150 B/op 4121023 B/op 1.00
BenchmarkDocument/tree_edit_gc_100 - allocs/op 14359 allocs/op 14358 allocs/op 1.00
BenchmarkDocument/tree_edit_gc_1000 - ns/op 315360792 ns/op 326051394 ns/op 0.97
BenchmarkDocument/tree_edit_gc_1000 - B/op 383465164 B/op 383466086 B/op 1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op 145405 allocs/op 145407 allocs/op 1.00
BenchmarkDocument/tree_split_gc_100 - ns/op 2605502 ns/op 2611696 ns/op 1.00
BenchmarkDocument/tree_split_gc_100 - B/op 2386950 B/op 2386898 B/op 1.00
BenchmarkDocument/tree_split_gc_100 - allocs/op 10344 allocs/op 10343 allocs/op 1.00
BenchmarkDocument/tree_split_gc_1000 - ns/op 192881434 ns/op 196739556 ns/op 0.98
BenchmarkDocument/tree_split_gc_1000 - B/op 221989360 B/op 221991590 B/op 1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op 112257 allocs/op 112260 allocs/op 1.00
BenchmarkRPC/client_to_server - ns/op 357411649 ns/op 356144469 ns/op 1.00
BenchmarkRPC/client_to_server - B/op 17509066 B/op 17801216 B/op 0.98
BenchmarkRPC/client_to_server - allocs/op 166893 allocs/op 166911 allocs/op 1.00
BenchmarkRPC/client_to_client_via_server - ns/op 608893823 ns/op 613079232 ns/op 0.99
BenchmarkRPC/client_to_client_via_server - B/op 35459804 B/op 31722656 B/op 1.12
BenchmarkRPC/client_to_client_via_server - allocs/op 313125 allocs/op 313048 allocs/op 1.00
BenchmarkRPC/attach_large_document - ns/op 1272024096 ns/op 1479934941 ns/op 0.86
BenchmarkRPC/attach_large_document - B/op 1877903104 B/op 1890029520 B/op 0.99
BenchmarkRPC/attach_large_document - allocs/op 7536 allocs/op 7567 allocs/op 1.00
BenchmarkRPC/adminCli_to_server - ns/op 535635002 ns/op 537051132 ns/op 1.00
BenchmarkRPC/adminCli_to_server - B/op 37198372 B/op 36806452 B/op 1.01
BenchmarkRPC/adminCli_to_server - allocs/op 289678 allocs/op 289659 allocs/op 1.00
BenchmarkLocker - ns/op 66.31 ns/op 65.34 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 - ns/op 38.76 ns/op 38.48 ns/op 1.01
BenchmarkLockerParallel - B/op 0 B/op 0 B/op NaN
BenchmarkLockerParallel - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkLockerMoreKeys - ns/op 147.7 ns/op 145.1 ns/op 1.02
BenchmarkLockerMoreKeys - B/op 15 B/op 15 B/op 1
BenchmarkLockerMoreKeys - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkChange/Push_10_Changes - ns/op 3804043 ns/op 3768343 ns/op 1.01
BenchmarkChange/Push_10_Changes - B/op 126054 B/op 126223 B/op 1.00
BenchmarkChange/Push_10_Changes - allocs/op 1254 allocs/op 1254 allocs/op 1
BenchmarkChange/Push_100_Changes - ns/op 14104734 ns/op 14005221 ns/op 1.01
BenchmarkChange/Push_100_Changes - B/op 645439 B/op 648654 B/op 1.00
BenchmarkChange/Push_100_Changes - allocs/op 6538 allocs/op 6539 allocs/op 1.00
BenchmarkChange/Push_1000_Changes - ns/op 112983703 ns/op 114047673 ns/op 0.99
BenchmarkChange/Push_1000_Changes - B/op 5977431 B/op 6036337 B/op 0.99
BenchmarkChange/Push_1000_Changes - allocs/op 62159 allocs/op 62157 allocs/op 1.00
BenchmarkChange/Pull_10_Changes - ns/op 2854327 ns/op 2839363 ns/op 1.01
BenchmarkChange/Pull_10_Changes - B/op 100797 B/op 100881 B/op 1.00
BenchmarkChange/Pull_10_Changes - allocs/op 952 allocs/op 952 allocs/op 1
BenchmarkChange/Pull_100_Changes - ns/op 4322582 ns/op 4308547 ns/op 1.00
BenchmarkChange/Pull_100_Changes - B/op 258022 B/op 258255 B/op 1.00
BenchmarkChange/Pull_100_Changes - allocs/op 3153 allocs/op 3154 allocs/op 1.00
BenchmarkChange/Pull_1000_Changes - ns/op 8414528 ns/op 8372656 ns/op 1.01
BenchmarkChange/Pull_1000_Changes - B/op 1395484 B/op 1396187 B/op 1.00
BenchmarkChange/Pull_1000_Changes - allocs/op 26870 allocs/op 26871 allocs/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot - ns/op 16728147 ns/op 16777319 ns/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot - B/op 799491 B/op 809995 B/op 0.99
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op 6540 allocs/op 6542 allocs/op 1.00
BenchmarkSnapshot/Push_30KB_snapshot - ns/op 117788802 ns/op 117069671 ns/op 1.01
BenchmarkSnapshot/Push_30KB_snapshot - B/op 6294640 B/op 6250016 B/op 1.01
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op 62195 allocs/op 62161 allocs/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op 6818458 ns/op 6563310 ns/op 1.04
BenchmarkSnapshot/Pull_3KB_snapshot - B/op 906534 B/op 905174 B/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op 14889 allocs/op 14882 allocs/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op 15171728 ns/op 15000336 ns/op 1.01
BenchmarkSnapshot/Pull_30KB_snapshot - B/op 6983418 B/op 6977754 B/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op 144149 allocs/op 144148 allocs/op 1.00
BenchmarkSync/memory_sync_10_test - ns/op 6781 ns/op 6824 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 - ns/op 51716 ns/op 51635 ns/op 1.00
BenchmarkSync/memory_sync_100_test - B/op 8644 B/op 8659 B/op 1.00
BenchmarkSync/memory_sync_100_test - allocs/op 273 allocs/op 274 allocs/op 1.00
BenchmarkSync/memory_sync_1000_test - ns/op 583449 ns/op 582724 ns/op 1.00
BenchmarkSync/memory_sync_1000_test - B/op 74826 B/op 74925 B/op 1.00
BenchmarkSync/memory_sync_1000_test - allocs/op 2137 allocs/op 2141 allocs/op 1.00
BenchmarkSync/memory_sync_10000_test - ns/op 7274143 ns/op 7320373 ns/op 0.99
BenchmarkSync/memory_sync_10000_test - B/op 766968 B/op 761425 B/op 1.01
BenchmarkSync/memory_sync_10000_test - allocs/op 20536 allocs/op 20593 allocs/op 1.00
BenchmarkTextEditing - ns/op 20194139974 ns/op 18585017456 ns/op 1.09
BenchmarkTextEditing - B/op 9042293792 B/op 9037385240 B/op 1.00
BenchmarkTextEditing - allocs/op 19924798 allocs/op 19920435 allocs/op 1.00

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

Please sign in to comment.