-
-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add election test for background routine handling
- Loading branch information
Showing
4 changed files
with
46 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,9 @@ | |
package mongo_test | ||
|
||
import ( | ||
"context" | ||
"testing" | ||
"time" | ||
|
||
"github.com/stretchr/testify/assert" | ||
|
||
|
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
23e9f1d
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
1259
ns/op1275
ns/op0.99
BenchmarkDocument/constructor_test - B/op
752
B/op752
B/op1
BenchmarkDocument/constructor_test - allocs/op
12
allocs/op12
allocs/op1
BenchmarkDocument/status_test - ns/op
642.2
ns/op946.9
ns/op0.68
BenchmarkDocument/status_test - B/op
720
B/op720
B/op1
BenchmarkDocument/status_test - allocs/op
10
allocs/op10
allocs/op1
BenchmarkDocument/equals_test - ns/op
10410
ns/op7299
ns/op1.43
BenchmarkDocument/equals_test - B/op
5072
B/op5072
B/op1
BenchmarkDocument/equals_test - allocs/op
85
allocs/op85
allocs/op1
BenchmarkDocument/nested_update_test - ns/op
21086
ns/op21177
ns/op1.00
BenchmarkDocument/nested_update_test - B/op
11033
B/op11033
B/op1
BenchmarkDocument/nested_update_test - allocs/op
235
allocs/op235
allocs/op1
BenchmarkDocument/delete_test - ns/op
27717
ns/op28530
ns/op0.97
BenchmarkDocument/delete_test - B/op
14162
B/op14162
B/op1
BenchmarkDocument/delete_test - allocs/op
310
allocs/op310
allocs/op1
BenchmarkDocument/object_test - ns/op
9816
ns/op9671
ns/op1.01
BenchmarkDocument/object_test - B/op
5793
B/op5792
B/op1.00
BenchmarkDocument/object_test - allocs/op
97
allocs/op97
allocs/op1
BenchmarkDocument/array_test - ns/op
34751
ns/op34819
ns/op1.00
BenchmarkDocument/array_test - B/op
10889
B/op10889
B/op1
BenchmarkDocument/array_test - allocs/op
251
allocs/op251
allocs/op1
BenchmarkDocument/text_test - ns/op
37330
ns/op37792
ns/op0.99
BenchmarkDocument/text_test - B/op
14058
B/op14058
B/op1
BenchmarkDocument/text_test - allocs/op
456
allocs/op456
allocs/op1
BenchmarkDocument/text_composition_test - ns/op
38102
ns/op38249
ns/op1.00
BenchmarkDocument/text_composition_test - B/op
17538
B/op17538
B/op1
BenchmarkDocument/text_composition_test - allocs/op
461
allocs/op461
allocs/op1
BenchmarkDocument/rich_text_test - ns/op
99238
ns/op102928
ns/op0.96
BenchmarkDocument/rich_text_test - B/op
36007
B/op36015
B/op1.00
BenchmarkDocument/rich_text_test - allocs/op
1108
allocs/op1108
allocs/op1
BenchmarkDocument/counter_test - ns/op
19725
ns/op19762
ns/op1.00
BenchmarkDocument/counter_test - B/op
9058
B/op9057
B/op1.00
BenchmarkDocument/counter_test - allocs/op
212
allocs/op212
allocs/op1
BenchmarkDocument/text_edit_gc_100 - ns/op
4031999
ns/op4040516
ns/op1.00
BenchmarkDocument/text_edit_gc_100 - B/op
1552534
B/op1552537
B/op1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op
17147
allocs/op17147
allocs/op1
BenchmarkDocument/text_edit_gc_1000 - ns/op
314080618
ns/op316295025
ns/op0.99
BenchmarkDocument/text_edit_gc_1000 - B/op
136642192
B/op136642972
B/op1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op
210737
allocs/op210741
allocs/op1.00
BenchmarkDocument/text_split_gc_100 - ns/op
4625619
ns/op4596780
ns/op1.01
BenchmarkDocument/text_split_gc_100 - B/op
2217349
B/op2216867
B/op1.00
BenchmarkDocument/text_split_gc_100 - allocs/op
16576
allocs/op16572
allocs/op1.00
BenchmarkDocument/text_split_gc_1000 - ns/op
373884041
ns/op368857070
ns/op1.01
BenchmarkDocument/text_split_gc_1000 - B/op
214897512
B/op214861816
B/op1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op
211608
allocs/op211441
allocs/op1.00
BenchmarkDocument/text_delete_all_10000 - ns/op
15745173
ns/op21021034
ns/op0.75
BenchmarkDocument/text_delete_all_10000 - B/op
5903089
B/op5904710
B/op1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op
41117
allocs/op41123
allocs/op1.00
BenchmarkDocument/text_delete_all_100000 - ns/op
194394746
ns/op280500940
ns/op0.69
BenchmarkDocument/text_delete_all_100000 - B/op
53851506
B/op53838868
B/op1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op
416026
allocs/op415985
allocs/op1.00
BenchmarkDocument/text_100 - ns/op
303529
ns/op326751
ns/op0.93
BenchmarkDocument/text_100 - B/op
117746
B/op117749
B/op1.00
BenchmarkDocument/text_100 - allocs/op
5064
allocs/op5064
allocs/op1
BenchmarkDocument/text_1000 - ns/op
3304295
ns/op3531932
ns/op0.94
BenchmarkDocument/text_1000 - B/op
1152349
B/op1152360
B/op1.00
BenchmarkDocument/text_1000 - allocs/op
50068
allocs/op50068
allocs/op1
BenchmarkDocument/array_1000 - ns/op
1712472
ns/op1783562
ns/op0.96
BenchmarkDocument/array_1000 - B/op
1102045
B/op1101945
B/op1.00
BenchmarkDocument/array_1000 - allocs/op
11854
allocs/op11854
allocs/op1
BenchmarkDocument/array_10000 - ns/op
18544280
ns/op20886913
ns/op0.89
BenchmarkDocument/array_10000 - B/op
9905058
B/op9905648
B/op1.00
BenchmarkDocument/array_10000 - allocs/op
120701
allocs/op120704
allocs/op1.00
BenchmarkDocument/array_gc_100 - ns/op
177738
ns/op182314
ns/op0.97
BenchmarkDocument/array_gc_100 - B/op
97426
B/op97418
B/op1.00
BenchmarkDocument/array_gc_100 - allocs/op
1227
allocs/op1226
allocs/op1.00
BenchmarkDocument/array_gc_1000 - ns/op
2014559
ns/op2023966
ns/op1.00
BenchmarkDocument/array_gc_1000 - B/op
1169549
B/op1169557
B/op1.00
BenchmarkDocument/array_gc_1000 - allocs/op
12889
allocs/op12889
allocs/op1
BenchmarkDocument/counter_1000 - ns/op
271286
ns/op291234
ns/op0.93
BenchmarkDocument/counter_1000 - B/op
197876
B/op197876
B/op1
BenchmarkDocument/counter_1000 - allocs/op
6490
allocs/op6490
allocs/op1
BenchmarkDocument/counter_10000 - ns/op
2905572
ns/op3160261
ns/op0.92
BenchmarkDocument/counter_10000 - B/op
2164796
B/op2164821
B/op1.00
BenchmarkDocument/counter_10000 - allocs/op
69497
allocs/op69497
allocs/op1
BenchmarkDocument/object_1000 - ns/op
1905094
ns/op1916070
ns/op0.99
BenchmarkDocument/object_1000 - B/op
1450758
B/op1450515
B/op1.00
BenchmarkDocument/object_1000 - allocs/op
9902
allocs/op9901
allocs/op1.00
BenchmarkDocument/object_10000 - ns/op
21157482
ns/op24081969
ns/op0.88
BenchmarkDocument/object_10000 - B/op
12368547
B/op12370050
B/op1.00
BenchmarkDocument/object_10000 - allocs/op
101204
allocs/op101208
allocs/op1.00
BenchmarkRPC/client_to_server - ns/op
404743863
ns/op454195849
ns/op0.89
BenchmarkRPC/client_to_server - B/op
18922306
B/op18895277
B/op1.00
BenchmarkRPC/client_to_server - allocs/op
308338
allocs/op307856
allocs/op1.00
BenchmarkRPC/client_to_client_via_server - ns/op
667713884
ns/op795188382
ns/op0.84
BenchmarkRPC/client_to_client_via_server - B/op
34933448
B/op34158392
B/op1.02
BenchmarkRPC/client_to_client_via_server - allocs/op
572706
allocs/op557902
allocs/op1.03
BenchmarkRPC/attach_large_document - ns/op
1536364639
ns/op1613558357
ns/op0.95
BenchmarkRPC/attach_large_document - B/op
2164301824
B/op2156784120
B/op1.00
BenchmarkRPC/attach_large_document - allocs/op
11112
allocs/op10070
allocs/op1.10
BenchmarkRPC/adminCli_to_server - ns/op
535208160
ns/op566988205
ns/op0.94
BenchmarkRPC/adminCli_to_server - B/op
20392576
B/op20392732
B/op1.00
BenchmarkRPC/adminCli_to_server - allocs/op
321594
allocs/op321623
allocs/op1.00
BenchmarkLocker - ns/op
123.6
ns/op124.5
ns/op0.99
BenchmarkLocker - B/op
16
B/op16
B/op1
BenchmarkLocker - allocs/op
1
allocs/op1
allocs/op1
BenchmarkLockerParallel - ns/op
114.9
ns/op135.9
ns/op0.85
BenchmarkLockerParallel - B/op
0
B/op0
B/opNaN
BenchmarkLockerParallel - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkLockerMoreKeys - ns/op
374.9
ns/op319.9
ns/op1.17
BenchmarkLockerMoreKeys - B/op
14
B/op14
B/op1
BenchmarkLockerMoreKeys - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkSync/memory_sync_10_test - ns/op
7261
ns/op7623
ns/op0.95
BenchmarkSync/memory_sync_10_test - B/op
1340
B/op1338
B/op1.00
BenchmarkSync/memory_sync_10_test - allocs/op
39
allocs/op39
allocs/op1
BenchmarkSync/memory_sync_100_test - ns/op
61642
ns/op67864
ns/op0.91
BenchmarkSync/memory_sync_100_test - B/op
9038
B/op8876
B/op1.02
BenchmarkSync/memory_sync_100_test - allocs/op
295
allocs/op285
allocs/op1.04
BenchmarkSync/memory_sync_1000_test - ns/op
634504
ns/op675295
ns/op0.94
BenchmarkSync/memory_sync_1000_test - B/op
84078
B/op81640
B/op1.03
BenchmarkSync/memory_sync_1000_test - allocs/op
2727
allocs/op2574
allocs/op1.06
BenchmarkSync/memory_sync_10000_test - ns/op
6573878
ns/op7464279
ns/op0.88
BenchmarkSync/memory_sync_10000_test - B/op
858531
B/op851108
B/op1.01
BenchmarkSync/memory_sync_10000_test - allocs/op
27951
allocs/op26725
allocs/op1.05
BenchmarkTextEditing - ns/op
24716840477
ns/op27333456807
ns/op0.90
BenchmarkTextEditing - B/op
8436115952
B/op8436351072
B/op1.00
BenchmarkTextEditing - allocs/op
19835031
allocs/op19836085
allocs/op1.00
This comment was automatically generated by workflow using github-action-benchmark.