-
-
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.
Add encodeID for mongo and add FindUserInfoByID test
- Loading branch information
1 parent
f1cb1d8
commit 6c2c9ee
Showing
4 changed files
with
48 additions
and
17 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
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
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
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
6c2c9ee
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
1407
ns/op1348
ns/op1.04
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
791.2
ns/op774.9
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
7162
ns/op7095
ns/op1.01
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
16351
ns/op18023
ns/op0.91
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
22149
ns/op21860
ns/op1.01
BenchmarkDocument/delete_test - B/op
15188
B/op15188
B/op1
BenchmarkDocument/delete_test - allocs/op
333
allocs/op333
allocs/op1
BenchmarkDocument/object_test - ns/op
9686
ns/op8299
ns/op1.17
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
29123
ns/op28416
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
30926
ns/op30734
ns/op1.01
BenchmarkDocument/text_test - B/op
14886
B/op14795
B/op1.01
BenchmarkDocument/text_test - allocs/op
468
allocs/op468
allocs/op1
BenchmarkDocument/text_composition_test - ns/op
28966
ns/op28436
ns/op1.02
BenchmarkDocument/text_composition_test - B/op
18396
B/op18278
B/op1.01
BenchmarkDocument/text_composition_test - allocs/op
477
allocs/op477
allocs/op1
BenchmarkDocument/rich_text_test - ns/op
81617
ns/op79377
ns/op1.03
BenchmarkDocument/rich_text_test - B/op
38645
B/op38540
B/op1.00
BenchmarkDocument/rich_text_test - allocs/op
1147
allocs/op1147
allocs/op1
BenchmarkDocument/counter_test - ns/op
16890
ns/op16429
ns/op1.03
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
2940029
ns/op2870698
ns/op1.02
BenchmarkDocument/text_edit_gc_100 - B/op
1658702
B/op1655216
B/op1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op
17092
allocs/op17091
allocs/op1.00
BenchmarkDocument/text_edit_gc_1000 - ns/op
238194127
ns/op227911236
ns/op1.05
BenchmarkDocument/text_edit_gc_1000 - B/op
144363644
B/op144348859
B/op1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op
200855
allocs/op200920
allocs/op1.00
BenchmarkDocument/text_split_gc_100 - ns/op
3424261
ns/op3341420
ns/op1.02
BenchmarkDocument/text_split_gc_100 - B/op
2317140
B/op2313404
B/op1.00
BenchmarkDocument/text_split_gc_100 - allocs/op
16197
allocs/op16193
allocs/op1.00
BenchmarkDocument/text_split_gc_1000 - ns/op
295314834
ns/op284979132
ns/op1.04
BenchmarkDocument/text_split_gc_1000 - B/op
228925684
B/op228892912
B/op1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op
203974
allocs/op203950
allocs/op1.00
BenchmarkDocument/text_delete_all_10000 - ns/op
11746112
ns/op10649517
ns/op1.10
BenchmarkDocument/text_delete_all_10000 - B/op
5811201
B/op5809883
B/op1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op
40678
allocs/op40671
allocs/op1.00
BenchmarkDocument/text_delete_all_100000 - ns/op
201098387
ns/op186393795
ns/op1.08
BenchmarkDocument/text_delete_all_100000 - B/op
81906354
B/op81904469
B/op1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op
411647
allocs/op411644
allocs/op1.00
BenchmarkDocument/text_100 - ns/op
223504
ns/op216510
ns/op1.03
BenchmarkDocument/text_100 - B/op
120107
B/op118483
B/op1.01
BenchmarkDocument/text_100 - allocs/op
5080
allocs/op5080
allocs/op1
BenchmarkDocument/text_1000 - ns/op
2428463
ns/op2354446
ns/op1.03
BenchmarkDocument/text_1000 - B/op
1169093
B/op1153053
B/op1.01
BenchmarkDocument/text_1000 - allocs/op
50084
allocs/op50084
allocs/op1
BenchmarkDocument/array_1000 - ns/op
1244081
ns/op1167715
ns/op1.07
BenchmarkDocument/array_1000 - B/op
1091224
B/op1091275
B/op1.00
BenchmarkDocument/array_1000 - allocs/op
11825
allocs/op11825
allocs/op1
BenchmarkDocument/array_10000 - ns/op
13400414
ns/op12925120
ns/op1.04
BenchmarkDocument/array_10000 - B/op
9797943
B/op9799997
B/op1.00
BenchmarkDocument/array_10000 - allocs/op
120283
allocs/op120290
allocs/op1.00
BenchmarkDocument/array_gc_100 - ns/op
144182
ns/op143218
ns/op1.01
BenchmarkDocument/array_gc_100 - B/op
132484
B/op132500
B/op1.00
BenchmarkDocument/array_gc_100 - allocs/op
1248
allocs/op1249
allocs/op1.00
BenchmarkDocument/array_gc_1000 - ns/op
1382594
ns/op1362603
ns/op1.01
BenchmarkDocument/array_gc_1000 - B/op
1158871
B/op1158952
B/op1.00
BenchmarkDocument/array_gc_1000 - allocs/op
12864
allocs/op12865
allocs/op1.00
BenchmarkDocument/counter_1000 - ns/op
198272
ns/op192998
ns/op1.03
BenchmarkDocument/counter_1000 - B/op
192852
B/op192852
B/op1
BenchmarkDocument/counter_1000 - allocs/op
5765
allocs/op5765
allocs/op1
BenchmarkDocument/counter_10000 - ns/op
2163265
ns/op2121356
ns/op1.02
BenchmarkDocument/counter_10000 - B/op
2087768
B/op2087765
B/op1.00
BenchmarkDocument/counter_10000 - allocs/op
59772
allocs/op59772
allocs/op1
BenchmarkDocument/object_1000 - ns/op
1341051
ns/op1323428
ns/op1.01
BenchmarkDocument/object_1000 - B/op
1428038
B/op1427932
B/op1.00
BenchmarkDocument/object_1000 - allocs/op
9845
allocs/op9844
allocs/op1.00
BenchmarkDocument/object_10000 - ns/op
15200029
ns/op14952592
ns/op1.02
BenchmarkDocument/object_10000 - B/op
12169336
B/op12166471
B/op1.00
BenchmarkDocument/object_10000 - allocs/op
100569
allocs/op100558
allocs/op1.00
BenchmarkDocument/tree_100 - ns/op
1082516
ns/op998783
ns/op1.08
BenchmarkDocument/tree_100 - B/op
943680
B/op943673
B/op1.00
BenchmarkDocument/tree_100 - allocs/op
6099
allocs/op6099
allocs/op1
BenchmarkDocument/tree_1000 - ns/op
79887795
ns/op74036459
ns/op1.08
BenchmarkDocument/tree_1000 - B/op
86460520
B/op86460238
B/op1.00
BenchmarkDocument/tree_1000 - allocs/op
60113
allocs/op60112
allocs/op1.00
BenchmarkDocument/tree_10000 - ns/op
9870024879
ns/op9238843028
ns/op1.07
BenchmarkDocument/tree_10000 - B/op
8580987672
B/op8580993112
B/op1.00
BenchmarkDocument/tree_10000 - allocs/op
600214
allocs/op600251
allocs/op1.00
BenchmarkDocument/tree_delete_all_1000 - ns/op
74887710
ns/op71588951
ns/op1.05
BenchmarkDocument/tree_delete_all_1000 - B/op
86990832
B/op86990417
B/op1.00
BenchmarkDocument/tree_delete_all_1000 - allocs/op
67752
allocs/op67750
allocs/op1.00
BenchmarkDocument/tree_edit_gc_100 - ns/op
3711059
ns/op3588143
ns/op1.03
BenchmarkDocument/tree_edit_gc_100 - B/op
4121018
B/op4120927
B/op1.00
BenchmarkDocument/tree_edit_gc_100 - allocs/op
14356
allocs/op14355
allocs/op1.00
BenchmarkDocument/tree_edit_gc_1000 - ns/op
308047220
ns/op292095970
ns/op1.05
BenchmarkDocument/tree_edit_gc_1000 - B/op
383464122
B/op383466214
B/op1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op
145404
allocs/op145408
allocs/op1.00
BenchmarkDocument/tree_split_gc_100 - ns/op
2523895
ns/op2419488
ns/op1.04
BenchmarkDocument/tree_split_gc_100 - B/op
2386835
B/op2386838
B/op1.00
BenchmarkDocument/tree_split_gc_100 - allocs/op
10341
allocs/op10341
allocs/op1
BenchmarkDocument/tree_split_gc_1000 - ns/op
189014382
ns/op175905530
ns/op1.07
BenchmarkDocument/tree_split_gc_1000 - B/op
221990293
B/op221990052
B/op1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op
112247
allocs/op112245
allocs/op1.00
BenchmarkRPC/client_to_server - ns/op
364948976
ns/op345650310
ns/op1.06
BenchmarkRPC/client_to_server - B/op
17529781
B/op16395133
B/op1.07
BenchmarkRPC/client_to_server - allocs/op
166877
allocs/op166812
allocs/op1.00
BenchmarkRPC/client_to_client_via_server - ns/op
622619564
ns/op599230474
ns/op1.04
BenchmarkRPC/client_to_client_via_server - B/op
31239008
B/op31200524
B/op1.00
BenchmarkRPC/client_to_client_via_server - allocs/op
312432
allocs/op312356
allocs/op1.00
BenchmarkRPC/attach_large_document - ns/op
1338352398
ns/op1320790007
ns/op1.01
BenchmarkRPC/attach_large_document - B/op
1890023872
B/op1889214992
B/op1.00
BenchmarkRPC/attach_large_document - allocs/op
7557
allocs/op7549
allocs/op1.00
BenchmarkRPC/adminCli_to_server - ns/op
549444394
ns/op524792658
ns/op1.05
BenchmarkRPC/adminCli_to_server - B/op
38011964
B/op35979672
B/op1.06
BenchmarkRPC/adminCli_to_server - allocs/op
289694
allocs/op289662
allocs/op1.00
BenchmarkLocker - ns/op
65.49
ns/op64.08
ns/op1.02
BenchmarkLocker - B/op
16
B/op16
B/op1
BenchmarkLocker - allocs/op
1
allocs/op1
allocs/op1
BenchmarkLockerParallel - ns/op
46.05
ns/op37.88
ns/op1.22
BenchmarkLockerParallel - B/op
0
B/op0
B/opNaN
BenchmarkLockerParallel - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkLockerMoreKeys - ns/op
144.5
ns/op138.8
ns/op1.04
BenchmarkLockerMoreKeys - B/op
15
B/op15
B/op1
BenchmarkLockerMoreKeys - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkChange/Push_10_Changes - ns/op
3854274
ns/op3738509
ns/op1.03
BenchmarkChange/Push_10_Changes - B/op
125880
B/op127083
B/op0.99
BenchmarkChange/Push_10_Changes - allocs/op
1254
allocs/op1254
allocs/op1
BenchmarkChange/Push_100_Changes - ns/op
14300967
ns/op13951923
ns/op1.03
BenchmarkChange/Push_100_Changes - B/op
642036
B/op646730
B/op0.99
BenchmarkChange/Push_100_Changes - allocs/op
6539
allocs/op6540
allocs/op1.00
BenchmarkChange/Push_1000_Changes - ns/op
114198557
ns/op111633212
ns/op1.02
BenchmarkChange/Push_1000_Changes - B/op
6133474
B/op6052291
B/op1.01
BenchmarkChange/Push_1000_Changes - allocs/op
62158
allocs/op62156
allocs/op1.00
BenchmarkChange/Pull_10_Changes - ns/op
2880964
ns/op2807725
ns/op1.03
BenchmarkChange/Pull_10_Changes - B/op
100033
B/op101299
B/op0.99
BenchmarkChange/Pull_10_Changes - allocs/op
952
allocs/op951
allocs/op1.00
BenchmarkChange/Pull_100_Changes - ns/op
4355535
ns/op4259998
ns/op1.02
BenchmarkChange/Pull_100_Changes - B/op
256474
B/op259044
B/op0.99
BenchmarkChange/Pull_100_Changes - allocs/op
3155
allocs/op3154
allocs/op1.00
BenchmarkChange/Pull_1000_Changes - ns/op
8534947
ns/op8186496
ns/op1.04
BenchmarkChange/Pull_1000_Changes - B/op
1396773
B/op1399630
B/op1.00
BenchmarkChange/Pull_1000_Changes - allocs/op
26865
allocs/op26877
allocs/op1.00
BenchmarkSnapshot/Push_3KB_snapshot - ns/op
16944966
ns/op16788712
ns/op1.01
BenchmarkSnapshot/Push_3KB_snapshot - B/op
804264
B/op814611
B/op0.99
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op
6542
allocs/op6542
allocs/op1
BenchmarkSnapshot/Push_30KB_snapshot - ns/op
117362978
ns/op116153491
ns/op1.01
BenchmarkSnapshot/Push_30KB_snapshot - B/op
6149621
B/op6295727
B/op0.98
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op
62161
allocs/op62346
allocs/op1.00
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op
6620068
ns/op6588486
ns/op1.00
BenchmarkSnapshot/Pull_3KB_snapshot - B/op
903200
B/op908101
B/op0.99
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op
14879
allocs/op14882
allocs/op1.00
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op
14598541
ns/op14361476
ns/op1.02
BenchmarkSnapshot/Pull_30KB_snapshot - B/op
6984420
B/op6995643
B/op1.00
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op
144140
allocs/op144141
allocs/op1.00
BenchmarkSync/memory_sync_10_test - ns/op
6737
ns/op6687
ns/op1.01
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
51185
ns/op52081
ns/op0.98
BenchmarkSync/memory_sync_100_test - B/op
8658
B/op8642
B/op1.00
BenchmarkSync/memory_sync_100_test - allocs/op
274
allocs/op273
allocs/op1.00
BenchmarkSync/memory_sync_1000_test - ns/op
595156
ns/op587862
ns/op1.01
BenchmarkSync/memory_sync_1000_test - B/op
74201
B/op74357
B/op1.00
BenchmarkSync/memory_sync_1000_test - allocs/op
2102
allocs/op2110
allocs/op1.00
BenchmarkSync/memory_sync_10000_test - ns/op
7133085
ns/op6961544
ns/op1.02
BenchmarkSync/memory_sync_10000_test - B/op
760708
B/op764082
B/op1.00
BenchmarkSync/memory_sync_10000_test - allocs/op
20497
allocs/op20603
allocs/op0.99
BenchmarkTextEditing - ns/op
18715952566
ns/op18032931695
ns/op1.04
BenchmarkTextEditing - B/op
9042117776
B/op9038055344
B/op1.00
BenchmarkTextEditing - allocs/op
19923244
allocs/op19923783
allocs/op1.00
This comment was automatically generated by workflow using github-action-benchmark.