-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
43 additions
and
11 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
dad28f9
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
1569
ns/op1275
ns/op1.23
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.5
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
7478
ns/op7299
ns/op1.02
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
21073
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
27588
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
9819
ns/op9671
ns/op1.02
BenchmarkDocument/object_test - B/op
5792
B/op5792
B/op1
BenchmarkDocument/object_test - allocs/op
97
allocs/op97
allocs/op1
BenchmarkDocument/array_test - ns/op
34966
ns/op34819
ns/op1.00
BenchmarkDocument/array_test - B/op
10890
B/op10889
B/op1.00
BenchmarkDocument/array_test - allocs/op
251
allocs/op251
allocs/op1
BenchmarkDocument/text_test - ns/op
37838
ns/op37792
ns/op1.00
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
38097
ns/op38249
ns/op1.00
BenchmarkDocument/text_composition_test - B/op
17539
B/op17538
B/op1.00
BenchmarkDocument/text_composition_test - allocs/op
461
allocs/op461
allocs/op1
BenchmarkDocument/rich_text_test - ns/op
100013
ns/op102928
ns/op0.97
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
19811
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
4155788
ns/op4040516
ns/op1.03
BenchmarkDocument/text_edit_gc_100 - B/op
1552688
B/op1552537
B/op1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op
17149
allocs/op17147
allocs/op1.00
BenchmarkDocument/text_edit_gc_1000 - ns/op
316014955
ns/op316295025
ns/op1.00
BenchmarkDocument/text_edit_gc_1000 - B/op
136648620
B/op136642972
B/op1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op
210767
allocs/op210741
allocs/op1.00
BenchmarkDocument/text_split_gc_100 - ns/op
4648118
ns/op4596780
ns/op1.01
BenchmarkDocument/text_split_gc_100 - B/op
2217576
B/op2216867
B/op1.00
BenchmarkDocument/text_split_gc_100 - allocs/op
16577
allocs/op16572
allocs/op1.00
BenchmarkDocument/text_split_gc_1000 - ns/op
413018773
ns/op368857070
ns/op1.12
BenchmarkDocument/text_split_gc_1000 - B/op
214848322
B/op214861816
B/op1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op
211404
allocs/op211441
allocs/op1.00
BenchmarkDocument/text_delete_all_10000 - ns/op
16960775
ns/op21021034
ns/op0.81
BenchmarkDocument/text_delete_all_10000 - B/op
5905059
B/op5904710
B/op1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op
41126
allocs/op41123
allocs/op1.00
BenchmarkDocument/text_delete_all_100000 - ns/op
211008217
ns/op280500940
ns/op0.75
BenchmarkDocument/text_delete_all_100000 - B/op
53855901
B/op53838868
B/op1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op
416066
allocs/op415985
allocs/op1.00
BenchmarkDocument/text_100 - ns/op
303552
ns/op326751
ns/op0.93
BenchmarkDocument/text_100 - B/op
117749
B/op117749
B/op1
BenchmarkDocument/text_100 - allocs/op
5064
allocs/op5064
allocs/op1
BenchmarkDocument/text_1000 - ns/op
3305501
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
1718980
ns/op1783562
ns/op0.96
BenchmarkDocument/array_1000 - B/op
1102202
B/op1101945
B/op1.00
BenchmarkDocument/array_1000 - allocs/op
11855
allocs/op11854
allocs/op1.00
BenchmarkDocument/array_10000 - ns/op
19300267
ns/op20886913
ns/op0.92
BenchmarkDocument/array_10000 - B/op
9906222
B/op9905648
B/op1.00
BenchmarkDocument/array_10000 - allocs/op
120705
allocs/op120704
allocs/op1.00
BenchmarkDocument/array_gc_100 - ns/op
179996
ns/op182314
ns/op0.99
BenchmarkDocument/array_gc_100 - B/op
97404
B/op97418
B/op1.00
BenchmarkDocument/array_gc_100 - allocs/op
1226
allocs/op1226
allocs/op1
BenchmarkDocument/array_gc_1000 - ns/op
1947172
ns/op2023966
ns/op0.96
BenchmarkDocument/array_gc_1000 - B/op
1169592
B/op1169557
B/op1.00
BenchmarkDocument/array_gc_1000 - allocs/op
12889
allocs/op12889
allocs/op1
BenchmarkDocument/counter_1000 - ns/op
266915
ns/op291234
ns/op0.92
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
2941458
ns/op3160261
ns/op0.93
BenchmarkDocument/counter_10000 - B/op
2164797
B/op2164821
B/op1.00
BenchmarkDocument/counter_10000 - allocs/op
69497
allocs/op69497
allocs/op1
BenchmarkDocument/object_1000 - ns/op
1887590
ns/op1916070
ns/op0.99
BenchmarkDocument/object_1000 - B/op
1450444
B/op1450515
B/op1.00
BenchmarkDocument/object_1000 - allocs/op
9901
allocs/op9901
allocs/op1
BenchmarkDocument/object_10000 - ns/op
21887933
ns/op24081969
ns/op0.91
BenchmarkDocument/object_10000 - B/op
12368881
B/op12370050
B/op1.00
BenchmarkDocument/object_10000 - allocs/op
101205
allocs/op101208
allocs/op1.00
BenchmarkRPC/client_to_server - ns/op
412068885
ns/op454195849
ns/op0.91
BenchmarkRPC/client_to_server - B/op
18911333
B/op18895277
B/op1.00
BenchmarkRPC/client_to_server - allocs/op
308332
allocs/op307856
allocs/op1.00
BenchmarkRPC/client_to_client_via_server - ns/op
687178061
ns/op795188382
ns/op0.86
BenchmarkRPC/client_to_client_via_server - B/op
34747956
B/op34158392
B/op1.02
BenchmarkRPC/client_to_client_via_server - allocs/op
569310
allocs/op557902
allocs/op1.02
BenchmarkRPC/attach_large_document - ns/op
1642364524
ns/op1613558357
ns/op1.02
BenchmarkRPC/attach_large_document - B/op
2152360416
B/op2156784120
B/op1.00
BenchmarkRPC/attach_large_document - allocs/op
10772
allocs/op10070
allocs/op1.07
BenchmarkRPC/adminCli_to_server - ns/op
528386138
ns/op566988205
ns/op0.93
BenchmarkRPC/adminCli_to_server - B/op
20383872
B/op20392732
B/op1.00
BenchmarkRPC/adminCli_to_server - allocs/op
321571
allocs/op321623
allocs/op1.00
BenchmarkLocker - ns/op
128.2
ns/op124.5
ns/op1.03
BenchmarkLocker - B/op
16
B/op16
B/op1
BenchmarkLocker - allocs/op
1
allocs/op1
allocs/op1
BenchmarkLockerParallel - ns/op
114.6
ns/op135.9
ns/op0.84
BenchmarkLockerParallel - B/op
0
B/op0
B/opNaN
BenchmarkLockerParallel - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkLockerMoreKeys - ns/op
367
ns/op319.9
ns/op1.15
BenchmarkLockerMoreKeys - B/op
14
B/op14
B/op1
BenchmarkLockerMoreKeys - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkSync/memory_sync_10_test - ns/op
7130
ns/op7623
ns/op0.94
BenchmarkSync/memory_sync_10_test - B/op
1341
B/op1338
B/op1.00
BenchmarkSync/memory_sync_10_test - allocs/op
39
allocs/op39
allocs/op1
BenchmarkSync/memory_sync_100_test - ns/op
59127
ns/op67864
ns/op0.87
BenchmarkSync/memory_sync_100_test - B/op
9089
B/op8876
B/op1.02
BenchmarkSync/memory_sync_100_test - allocs/op
298
allocs/op285
allocs/op1.05
BenchmarkSync/memory_sync_1000_test - ns/op
607310
ns/op675295
ns/op0.90
BenchmarkSync/memory_sync_1000_test - B/op
84007
B/op81640
B/op1.03
BenchmarkSync/memory_sync_1000_test - allocs/op
2724
allocs/op2574
allocs/op1.06
BenchmarkSync/memory_sync_10000_test - ns/op
6635898
ns/op7464279
ns/op0.89
BenchmarkSync/memory_sync_10000_test - B/op
869399
B/op851108
B/op1.02
BenchmarkSync/memory_sync_10000_test - allocs/op
27800
allocs/op26725
allocs/op1.04
BenchmarkTextEditing - ns/op
24186498904
ns/op27333456807
ns/op0.88
BenchmarkTextEditing - B/op
8436470432
B/op8436351072
B/op1.00
BenchmarkTextEditing - allocs/op
19836779
allocs/op19836085
allocs/op1.00
This comment was automatically generated by workflow using github-action-benchmark.