-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove checking updatedAt is nil, and Fix test code to use time ticke…
…t instead of nil
- Loading branch information
1 parent
7d0134e
commit ff391e9
Showing
2 changed files
with
218 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
ff391e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go Benchmark
BenchmarkDocument/constructor_test - ns/op
1420
ns/op1542
ns/op0.92
BenchmarkDocument/constructor_test - B/op
1208
B/op1208
B/op1
BenchmarkDocument/constructor_test - allocs/op
20
allocs/op20
allocs/op1
BenchmarkDocument/status_test - ns/op
793.6
ns/op780
ns/op1.02
BenchmarkDocument/status_test - B/op
1176
B/op1176
B/op1
BenchmarkDocument/status_test - allocs/op
18
allocs/op18
allocs/op1
BenchmarkDocument/equals_test - ns/op
7331
ns/op7138
ns/op1.03
BenchmarkDocument/equals_test - B/op
6913
B/op6913
B/op1
BenchmarkDocument/equals_test - allocs/op
120
allocs/op120
allocs/op1
BenchmarkDocument/nested_update_test - ns/op
17590
ns/op16248
ns/op1.08
BenchmarkDocument/nested_update_test - B/op
11963
B/op11963
B/op1
BenchmarkDocument/nested_update_test - allocs/op
254
allocs/op254
allocs/op1
BenchmarkDocument/delete_test - ns/op
25055
ns/op22078
ns/op1.13
BenchmarkDocument/delete_test - B/op
15189
B/op15188
B/op1.00
BenchmarkDocument/delete_test - allocs/op
333
allocs/op333
allocs/op1
BenchmarkDocument/object_test - ns/op
8661
ns/op8387
ns/op1.03
BenchmarkDocument/object_test - B/op
6721
B/op6721
B/op1
BenchmarkDocument/object_test - allocs/op
116
allocs/op116
allocs/op1
BenchmarkDocument/array_test - ns/op
29312
ns/op28691
ns/op1.02
BenchmarkDocument/array_test - B/op
11819
B/op11819
B/op1
BenchmarkDocument/array_test - allocs/op
270
allocs/op270
allocs/op1
BenchmarkDocument/text_test - ns/op
31347
ns/op31234
ns/op1.00
BenchmarkDocument/text_test - B/op
14884
B/op15412
B/op0.97
BenchmarkDocument/text_test - allocs/op
468
allocs/op479
allocs/op0.98
BenchmarkDocument/text_composition_test - ns/op
29264
ns/op28838
ns/op1.01
BenchmarkDocument/text_composition_test - B/op
18398
B/op18590
B/op0.99
BenchmarkDocument/text_composition_test - allocs/op
477
allocs/op481
allocs/op0.99
BenchmarkDocument/rich_text_test - ns/op
84040
ns/op84725
ns/op0.99
BenchmarkDocument/rich_text_test - B/op
38645
B/op47959
B/op0.81
BenchmarkDocument/rich_text_test - allocs/op
1147
allocs/op1216
allocs/op0.94
BenchmarkDocument/counter_test - ns/op
17346
ns/op16633
ns/op1.04
BenchmarkDocument/counter_test - B/op
10210
B/op10210
B/op1
BenchmarkDocument/counter_test - allocs/op
236
allocs/op236
allocs/op1
BenchmarkDocument/text_edit_gc_100 - ns/op
3024128
ns/op2896824
ns/op1.04
BenchmarkDocument/text_edit_gc_100 - B/op
1658574
B/op1658595
B/op1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op
17093
allocs/op17092
allocs/op1.00
BenchmarkDocument/text_edit_gc_1000 - ns/op
237273477
ns/op232593749
ns/op1.02
BenchmarkDocument/text_edit_gc_1000 - B/op
144370476
B/op144379059
B/op1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op
200883
allocs/op200906
allocs/op1.00
BenchmarkDocument/text_split_gc_100 - ns/op
3498023
ns/op3420377
ns/op1.02
BenchmarkDocument/text_split_gc_100 - B/op
2316962
B/op2316994
B/op1.00
BenchmarkDocument/text_split_gc_100 - allocs/op
16194
allocs/op16196
allocs/op1.00
BenchmarkDocument/text_split_gc_1000 - ns/op
304436304
ns/op291333302
ns/op1.04
BenchmarkDocument/text_split_gc_1000 - B/op
228909428
B/op228919328
B/op1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op
203869
allocs/op203934
allocs/op1.00
BenchmarkDocument/text_delete_all_10000 - ns/op
12215804
ns/op11818492
ns/op1.03
BenchmarkDocument/text_delete_all_10000 - B/op
5811670
B/op5810678
B/op1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op
40680
allocs/op40675
allocs/op1.00
BenchmarkDocument/text_delete_all_100000 - ns/op
209575712
ns/op201368223
ns/op1.04
BenchmarkDocument/text_delete_all_100000 - B/op
81905107
B/op81900570
B/op1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op
411637
allocs/op411626
allocs/op1.00
BenchmarkDocument/text_100 - ns/op
223928
ns/op220270
ns/op1.02
BenchmarkDocument/text_100 - B/op
120106
B/op120107
B/op1.00
BenchmarkDocument/text_100 - allocs/op
5080
allocs/op5080
allocs/op1
BenchmarkDocument/text_1000 - ns/op
2457555
ns/op2429840
ns/op1.01
BenchmarkDocument/text_1000 - B/op
1169094
B/op1169078
B/op1.00
BenchmarkDocument/text_1000 - allocs/op
50084
allocs/op50084
allocs/op1
BenchmarkDocument/array_1000 - ns/op
1207484
ns/op1191138
ns/op1.01
BenchmarkDocument/array_1000 - B/op
1091250
B/op1091341
B/op1.00
BenchmarkDocument/array_1000 - allocs/op
11825
allocs/op11826
allocs/op1.00
BenchmarkDocument/array_10000 - ns/op
13478800
ns/op13214012
ns/op1.02
BenchmarkDocument/array_10000 - B/op
9799478
B/op9800667
B/op1.00
BenchmarkDocument/array_10000 - allocs/op
120289
allocs/op120294
allocs/op1.00
BenchmarkDocument/array_gc_100 - ns/op
149178
ns/op144166
ns/op1.03
BenchmarkDocument/array_gc_100 - B/op
132488
B/op132489
B/op1.00
BenchmarkDocument/array_gc_100 - allocs/op
1248
allocs/op1248
allocs/op1
BenchmarkDocument/array_gc_1000 - ns/op
1452204
ns/op1375392
ns/op1.06
BenchmarkDocument/array_gc_1000 - B/op
1158831
B/op1158914
B/op1.00
BenchmarkDocument/array_gc_1000 - allocs/op
12864
allocs/op12864
allocs/op1
BenchmarkDocument/counter_1000 - ns/op
210358
ns/op198354
ns/op1.06
BenchmarkDocument/counter_1000 - B/op
192853
B/op192853
B/op1
BenchmarkDocument/counter_1000 - allocs/op
5765
allocs/op5765
allocs/op1
BenchmarkDocument/counter_10000 - ns/op
2228998
ns/op2157794
ns/op1.03
BenchmarkDocument/counter_10000 - B/op
2087770
B/op2087766
B/op1.00
BenchmarkDocument/counter_10000 - allocs/op
59772
allocs/op59772
allocs/op1
BenchmarkDocument/object_1000 - ns/op
1385539
ns/op1354096
ns/op1.02
BenchmarkDocument/object_1000 - B/op
1428003
B/op1428036
B/op1.00
BenchmarkDocument/object_1000 - allocs/op
9845
allocs/op9845
allocs/op1
BenchmarkDocument/object_10000 - ns/op
15520444
ns/op15028111
ns/op1.03
BenchmarkDocument/object_10000 - B/op
12167408
B/op12166744
B/op1.00
BenchmarkDocument/object_10000 - allocs/op
100564
allocs/op100559
allocs/op1.00
BenchmarkDocument/tree_100 - ns/op
1026742
ns/op1049112
ns/op0.98
BenchmarkDocument/tree_100 - B/op
943675
B/op943678
B/op1.00
BenchmarkDocument/tree_100 - allocs/op
6099
allocs/op6099
allocs/op1
BenchmarkDocument/tree_1000 - ns/op
75197018
ns/op79782715
ns/op0.94
BenchmarkDocument/tree_1000 - B/op
86460406
B/op86460627
B/op1.00
BenchmarkDocument/tree_1000 - allocs/op
60113
allocs/op60114
allocs/op1.00
BenchmarkDocument/tree_10000 - ns/op
10065805096
ns/op9957562898
ns/op1.01
BenchmarkDocument/tree_10000 - B/op
8580979928
B/op8580990424
B/op1.00
BenchmarkDocument/tree_10000 - allocs/op
600219
allocs/op600232
allocs/op1.00
BenchmarkDocument/tree_delete_all_1000 - ns/op
77199204
ns/op77379744
ns/op1.00
BenchmarkDocument/tree_delete_all_1000 - B/op
86990300
B/op86990891
B/op1.00
BenchmarkDocument/tree_delete_all_1000 - allocs/op
67749
allocs/op67751
allocs/op1.00
BenchmarkDocument/tree_edit_gc_100 - ns/op
3848317
ns/op3743356
ns/op1.03
BenchmarkDocument/tree_edit_gc_100 - B/op
4121006
B/op4120983
B/op1.00
BenchmarkDocument/tree_edit_gc_100 - allocs/op
14356
allocs/op14356
allocs/op1
BenchmarkDocument/tree_edit_gc_1000 - ns/op
315192871
ns/op311312288
ns/op1.01
BenchmarkDocument/tree_edit_gc_1000 - B/op
383465308
B/op383465558
B/op1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op
145398
allocs/op145406
allocs/op1.00
BenchmarkDocument/tree_split_gc_100 - ns/op
2576397
ns/op2564917
ns/op1.00
BenchmarkDocument/tree_split_gc_100 - B/op
2386837
B/op2386900
B/op1.00
BenchmarkDocument/tree_split_gc_100 - allocs/op
10341
allocs/op10341
allocs/op1
BenchmarkDocument/tree_split_gc_1000 - ns/op
190452899
ns/op194397785
ns/op0.98
BenchmarkDocument/tree_split_gc_1000 - B/op
221989321
B/op221990026
B/op1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op
112242
allocs/op112248
allocs/op1.00
BenchmarkRPC/client_to_server - ns/op
375693855
ns/op364396329
ns/op1.03
BenchmarkRPC/client_to_server - B/op
17831237
B/op18067424
B/op0.99
BenchmarkRPC/client_to_server - allocs/op
166891
allocs/op165863
allocs/op1.01
BenchmarkRPC/client_to_client_via_server - ns/op
641023908
ns/op625660123
ns/op1.02
BenchmarkRPC/client_to_client_via_server - B/op
37951584
B/op32815272
B/op1.16
BenchmarkRPC/client_to_client_via_server - allocs/op
312220
allocs/op310207
allocs/op1.01
BenchmarkRPC/attach_large_document - ns/op
1471678629
ns/op1355198048
ns/op1.09
BenchmarkRPC/attach_large_document - B/op
1889230128
B/op1868233624
B/op1.01
BenchmarkRPC/attach_large_document - allocs/op
7565
allocs/op7466
allocs/op1.01
BenchmarkRPC/adminCli_to_server - ns/op
551785137
ns/op549909416
ns/op1.00
BenchmarkRPC/adminCli_to_server - B/op
37214272
B/op36780108
B/op1.01
BenchmarkRPC/adminCli_to_server - allocs/op
289716
allocs/op288662
allocs/op1.00
BenchmarkLocker - ns/op
66.45
ns/op65.86
ns/op1.01
BenchmarkLocker - B/op
16
B/op16
B/op1
BenchmarkLocker - allocs/op
1
allocs/op1
allocs/op1
BenchmarkLockerParallel - ns/op
38.48
ns/op38.59
ns/op1.00
BenchmarkLockerParallel - B/op
0
B/op0
B/opNaN
BenchmarkLockerParallel - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkLockerMoreKeys - ns/op
155.7
ns/op148.9
ns/op1.05
BenchmarkLockerMoreKeys - B/op
15
B/op15
B/op1
BenchmarkLockerMoreKeys - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkChange/Push_10_Changes - ns/op
3913144
ns/op3838436
ns/op1.02
BenchmarkChange/Push_10_Changes - B/op
125536
B/op125677
B/op1.00
BenchmarkChange/Push_10_Changes - allocs/op
1254
allocs/op1254
allocs/op1
BenchmarkChange/Push_100_Changes - ns/op
14671257
ns/op14440415
ns/op1.02
BenchmarkChange/Push_100_Changes - B/op
636661
B/op647975
B/op0.98
BenchmarkChange/Push_100_Changes - allocs/op
6537
allocs/op6540
allocs/op1.00
BenchmarkChange/Push_1000_Changes - ns/op
115833937
ns/op115497921
ns/op1.00
BenchmarkChange/Push_1000_Changes - B/op
5991660
B/op6151829
B/op0.97
BenchmarkChange/Push_1000_Changes - allocs/op
62156
allocs/op62159
allocs/op1.00
BenchmarkChange/Pull_10_Changes - ns/op
2918970
ns/op2909758
ns/op1.00
BenchmarkChange/Pull_10_Changes - B/op
99694
B/op100076
B/op1.00
BenchmarkChange/Pull_10_Changes - allocs/op
952
allocs/op952
allocs/op1
BenchmarkChange/Pull_100_Changes - ns/op
4468011
ns/op4414877
ns/op1.01
BenchmarkChange/Pull_100_Changes - B/op
254981
B/op256121
B/op1.00
BenchmarkChange/Pull_100_Changes - allocs/op
3154
allocs/op3154
allocs/op1
BenchmarkChange/Pull_1000_Changes - ns/op
8925264
ns/op8566513
ns/op1.04
BenchmarkChange/Pull_1000_Changes - B/op
1391435
B/op1392837
B/op1.00
BenchmarkChange/Pull_1000_Changes - allocs/op
26860
allocs/op26865
allocs/op1.00
BenchmarkSnapshot/Push_3KB_snapshot - ns/op
17392450
ns/op17384863
ns/op1.00
BenchmarkSnapshot/Push_3KB_snapshot - B/op
806807
B/op802328
B/op1.01
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op
6543
allocs/op6549
allocs/op1.00
BenchmarkSnapshot/Push_30KB_snapshot - ns/op
120076397
ns/op118971166
ns/op1.01
BenchmarkSnapshot/Push_30KB_snapshot - B/op
6338794
B/op6156721
B/op1.03
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op
62165
allocs/op62158
allocs/op1.00
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op
6769933
ns/op6602183
ns/op1.03
BenchmarkSnapshot/Pull_3KB_snapshot - B/op
900740
B/op902235
B/op1.00
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op
14878
allocs/op14878
allocs/op1
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op
15330990
ns/op14754933
ns/op1.04
BenchmarkSnapshot/Pull_30KB_snapshot - B/op
6976165
B/op6981411
B/op1.00
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op
144140
allocs/op144131
allocs/op1.00
BenchmarkSync/memory_sync_10_test - ns/op
6989
ns/op6984
ns/op1.00
BenchmarkSync/memory_sync_10_test - B/op
1286
B/op1286
B/op1
BenchmarkSync/memory_sync_10_test - allocs/op
38
allocs/op38
allocs/op1
BenchmarkSync/memory_sync_100_test - ns/op
52644
ns/op51752
ns/op1.02
BenchmarkSync/memory_sync_100_test - B/op
8660
B/op8655
B/op1.00
BenchmarkSync/memory_sync_100_test - allocs/op
274
allocs/op274
allocs/op1
BenchmarkSync/memory_sync_1000_test - ns/op
599688
ns/op593943
ns/op1.01
BenchmarkSync/memory_sync_1000_test - B/op
74692
B/op74410
B/op1.00
BenchmarkSync/memory_sync_1000_test - allocs/op
2130
allocs/op2113
allocs/op1.01
BenchmarkSync/memory_sync_10000_test - ns/op
8420553
ns/op7699568
ns/op1.09
BenchmarkSync/memory_sync_10000_test - B/op
758168
B/op761656
B/op1.00
BenchmarkSync/memory_sync_10000_test - allocs/op
20460
allocs/op20495
allocs/op1.00
BenchmarkTextEditing - ns/op
20088120737
ns/op19296651559
ns/op1.04
BenchmarkTextEditing - B/op
9041660680
B/op9041594456
B/op1.00
BenchmarkTextEditing - allocs/op
19921092
allocs/op19920775
allocs/op1.00
This comment was automatically generated by workflow using github-action-benchmark.