-
-
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 test for converting array to bytes
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 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
a85ff4b
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
1355
ns/op1488
ns/op0.91
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
762
ns/op784.1
ns/op0.97
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
7019
ns/op7051
ns/op1.00
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
15993
ns/op16134
ns/op0.99
BenchmarkDocument/nested_update_test - B/op
11962
B/op11963
B/op1.00
BenchmarkDocument/nested_update_test - allocs/op
254
allocs/op254
allocs/op1
BenchmarkDocument/delete_test - ns/op
21826
ns/op21934
ns/op1.00
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
8298
ns/op8286
ns/op1.00
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
28530
ns/op28774
ns/op0.99
BenchmarkDocument/array_test - B/op
11819
B/op11818
B/op1.00
BenchmarkDocument/array_test - allocs/op
270
allocs/op270
allocs/op1
BenchmarkDocument/text_test - ns/op
34203
ns/op30569
ns/op1.12
BenchmarkDocument/text_test - B/op
14795
B/op14795
B/op1
BenchmarkDocument/text_test - allocs/op
468
allocs/op468
allocs/op1
BenchmarkDocument/text_composition_test - ns/op
28421
ns/op28544
ns/op1.00
BenchmarkDocument/text_composition_test - B/op
18278
B/op18278
B/op1
BenchmarkDocument/text_composition_test - allocs/op
477
allocs/op477
allocs/op1
BenchmarkDocument/rich_text_test - ns/op
81543
ns/op80785
ns/op1.01
BenchmarkDocument/rich_text_test - B/op
38540
B/op38539
B/op1.00
BenchmarkDocument/rich_text_test - allocs/op
1147
allocs/op1147
allocs/op1
BenchmarkDocument/counter_test - ns/op
16278
ns/op16566
ns/op0.98
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
2873679
ns/op2939098
ns/op0.98
BenchmarkDocument/text_edit_gc_100 - B/op
1655238
B/op1655407
B/op1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op
17093
allocs/op17093
allocs/op1
BenchmarkDocument/text_edit_gc_1000 - ns/op
226376652
ns/op230413475
ns/op0.98
BenchmarkDocument/text_edit_gc_1000 - B/op
144352827
B/op144365604
B/op1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op
200936
allocs/op201000
allocs/op1.00
BenchmarkDocument/text_split_gc_100 - ns/op
3334024
ns/op3393132
ns/op0.98
BenchmarkDocument/text_split_gc_100 - B/op
2313535
B/op2313643
B/op1.00
BenchmarkDocument/text_split_gc_100 - allocs/op
16195
allocs/op16194
allocs/op1.00
BenchmarkDocument/text_split_gc_1000 - ns/op
287801460
ns/op288213918
ns/op1.00
BenchmarkDocument/text_split_gc_1000 - B/op
228896500
B/op228907952
B/op1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op
203971
allocs/op204030
allocs/op1.00
BenchmarkDocument/text_delete_all_10000 - ns/op
10521415
ns/op10817436
ns/op0.97
BenchmarkDocument/text_delete_all_10000 - B/op
5810705
B/op5810188
B/op1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op
40676
allocs/op40674
allocs/op1.00
BenchmarkDocument/text_delete_all_100000 - ns/op
183491980
ns/op191610049
ns/op0.96
BenchmarkDocument/text_delete_all_100000 - B/op
81892938
B/op81895673
B/op1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op
411589
allocs/op411602
allocs/op1.00
BenchmarkDocument/text_100 - ns/op
230911
ns/op219994
ns/op1.05
BenchmarkDocument/text_100 - B/op
118483
B/op118481
B/op1.00
BenchmarkDocument/text_100 - allocs/op
5080
allocs/op5080
allocs/op1
BenchmarkDocument/text_1000 - ns/op
2451381
ns/op2406405
ns/op1.02
BenchmarkDocument/text_1000 - B/op
1153071
B/op1153054
B/op1.00
BenchmarkDocument/text_1000 - allocs/op
50084
allocs/op50084
allocs/op1
BenchmarkDocument/array_1000 - ns/op
1225411
ns/op1167007
ns/op1.05
BenchmarkDocument/array_1000 - B/op
1091239
B/op1091235
B/op1.00
BenchmarkDocument/array_1000 - allocs/op
11825
allocs/op11825
allocs/op1
BenchmarkDocument/array_10000 - ns/op
12946457
ns/op12839456
ns/op1.01
BenchmarkDocument/array_10000 - B/op
9799505
B/op9799830
B/op1.00
BenchmarkDocument/array_10000 - allocs/op
120289
allocs/op120291
allocs/op1.00
BenchmarkDocument/array_gc_100 - ns/op
151311
ns/op141341
ns/op1.07
BenchmarkDocument/array_gc_100 - B/op
132495
B/op132492
B/op1.00
BenchmarkDocument/array_gc_100 - allocs/op
1248
allocs/op1248
allocs/op1
BenchmarkDocument/array_gc_1000 - ns/op
1401953
ns/op1348431
ns/op1.04
BenchmarkDocument/array_gc_1000 - B/op
1158892
B/op1158846
B/op1.00
BenchmarkDocument/array_gc_1000 - allocs/op
12864
allocs/op12864
allocs/op1
BenchmarkDocument/counter_1000 - ns/op
208427
ns/op197167
ns/op1.06
BenchmarkDocument/counter_1000 - B/op
192853
B/op192852
B/op1.00
BenchmarkDocument/counter_1000 - allocs/op
5765
allocs/op5765
allocs/op1
BenchmarkDocument/counter_10000 - ns/op
2203735
ns/op2196543
ns/op1.00
BenchmarkDocument/counter_10000 - B/op
2087767
B/op2087781
B/op1.00
BenchmarkDocument/counter_10000 - allocs/op
59772
allocs/op59772
allocs/op1
BenchmarkDocument/object_1000 - ns/op
1397542
ns/op1333033
ns/op1.05
BenchmarkDocument/object_1000 - B/op
1428095
B/op1428047
B/op1.00
BenchmarkDocument/object_1000 - allocs/op
9845
allocs/op9845
allocs/op1
BenchmarkDocument/object_10000 - ns/op
14301267
ns/op14483706
ns/op0.99
BenchmarkDocument/object_10000 - B/op
12166182
B/op12166294
B/op1.00
BenchmarkDocument/object_10000 - allocs/op
100560
allocs/op100561
allocs/op1.00
BenchmarkDocument/tree_100 - ns/op
721503
ns/op680790
ns/op1.06
BenchmarkDocument/tree_100 - B/op
442889
B/op442889
B/op1
BenchmarkDocument/tree_100 - allocs/op
4506
allocs/op4506
allocs/op1
BenchmarkDocument/tree_1000 - ns/op
48316327
ns/op45574042
ns/op1.06
BenchmarkDocument/tree_1000 - B/op
35222835
B/op35222215
B/op1.00
BenchmarkDocument/tree_1000 - allocs/op
44119
allocs/op44119
allocs/op1
BenchmarkDocument/tree_10000 - ns/op
6332647945
ns/op6141330354
ns/op1.03
BenchmarkDocument/tree_10000 - B/op
3439185440
B/op3439201792
B/op1.00
BenchmarkDocument/tree_10000 - allocs/op
440204
allocs/op440203
allocs/op1.00
BenchmarkDocument/tree_delete_all_1000 - ns/op
49081042
ns/op46475796
ns/op1.06
BenchmarkDocument/tree_delete_all_1000 - B/op
35687417
B/op35687295
B/op1.00
BenchmarkDocument/tree_delete_all_1000 - allocs/op
51745
allocs/op51745
allocs/op1
BenchmarkDocument/tree_edit_gc_100 - ns/op
2614316
ns/op2518582
ns/op1.04
BenchmarkDocument/tree_edit_gc_100 - B/op
2099493
B/op2099464
B/op1.00
BenchmarkDocument/tree_edit_gc_100 - allocs/op
11165
allocs/op11165
allocs/op1
BenchmarkDocument/tree_edit_gc_1000 - ns/op
195668108
ns/op190747753
ns/op1.03
BenchmarkDocument/tree_edit_gc_1000 - B/op
180290894
B/op180290390
B/op1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op
113348
allocs/op113345
allocs/op1.00
BenchmarkDocument/tree_split_gc_100 - ns/op
1950029
ns/op1841536
ns/op1.06
BenchmarkDocument/tree_split_gc_100 - B/op
1363442
B/op1363427
B/op1.00
BenchmarkDocument/tree_split_gc_100 - allocs/op
8735
allocs/op8735
allocs/op1
BenchmarkDocument/tree_split_gc_1000 - ns/op
132186007
ns/op122820849
ns/op1.08
BenchmarkDocument/tree_split_gc_1000 - B/op
120283098
B/op120283632
B/op1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op
96188
allocs/op96183
allocs/op1.00
BenchmarkRPC/client_to_server - ns/op
354957511
ns/op354814859
ns/op1.00
BenchmarkRPC/client_to_server - B/op
12316738
B/op12313989
B/op1.00
BenchmarkRPC/client_to_server - allocs/op
172787
allocs/op172792
allocs/op1.00
BenchmarkRPC/client_to_client_via_server - ns/op
592646708
ns/op599768970
ns/op0.99
BenchmarkRPC/client_to_client_via_server - B/op
22692328
B/op22775644
B/op1.00
BenchmarkRPC/client_to_client_via_server - allocs/op
323417
allocs/op324586
allocs/op1.00
BenchmarkRPC/attach_large_document - ns/op
1146410404
ns/op1053858038
ns/op1.09
BenchmarkRPC/attach_large_document - B/op
1818064856
B/op1796352520
B/op1.01
BenchmarkRPC/attach_large_document - allocs/op
10253
allocs/op10712
allocs/op0.96
BenchmarkRPC/adminCli_to_server - ns/op
502532056
ns/op509044021
ns/op0.99
BenchmarkRPC/adminCli_to_server - B/op
20186460
B/op20194464
B/op1.00
BenchmarkRPC/adminCli_to_server - allocs/op
318205
allocs/op318251
allocs/op1.00
BenchmarkLocker - ns/op
63.56
ns/op64.82
ns/op0.98
BenchmarkLocker - B/op
16
B/op16
B/op1
BenchmarkLocker - allocs/op
1
allocs/op1
allocs/op1
BenchmarkLockerParallel - ns/op
38
ns/op38.88
ns/op0.98
BenchmarkLockerParallel - B/op
0
B/op0
B/opNaN
BenchmarkLockerParallel - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkLockerMoreKeys - ns/op
144.3
ns/op147.7
ns/op0.98
BenchmarkLockerMoreKeys - B/op
15
B/op15
B/op1
BenchmarkLockerMoreKeys - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkChange/Push_10_Changes - ns/op
3778074
ns/op3838245
ns/op0.98
BenchmarkChange/Push_10_Changes - B/op
125681
B/op125419
B/op1.00
BenchmarkChange/Push_10_Changes - allocs/op
1254
allocs/op1253
allocs/op1.00
BenchmarkChange/Push_100_Changes - ns/op
13953061
ns/op14240274
ns/op0.98
BenchmarkChange/Push_100_Changes - B/op
643934
B/op637472
B/op1.01
BenchmarkChange/Push_100_Changes - allocs/op
6539
allocs/op6539
allocs/op1
BenchmarkChange/Push_1000_Changes - ns/op
111976583
ns/op114033632
ns/op0.98
BenchmarkChange/Push_1000_Changes - B/op
6086280
B/op6053229
B/op1.01
BenchmarkChange/Push_1000_Changes - allocs/op
62156
allocs/op62159
allocs/op1.00
BenchmarkChange/Pull_10_Changes - ns/op
2869823
ns/op2913567
ns/op0.98
BenchmarkChange/Pull_10_Changes - B/op
100853
B/op100319
B/op1.01
BenchmarkChange/Pull_10_Changes - allocs/op
952
allocs/op952
allocs/op1
BenchmarkChange/Pull_100_Changes - ns/op
4375636
ns/op4463212
ns/op0.98
BenchmarkChange/Pull_100_Changes - B/op
258239
B/op256830
B/op1.01
BenchmarkChange/Pull_100_Changes - allocs/op
3154
allocs/op3153
allocs/op1.00
BenchmarkChange/Pull_1000_Changes - ns/op
8329315
ns/op8680896
ns/op0.96
BenchmarkChange/Pull_1000_Changes - B/op
1398440
B/op1391823
B/op1.00
BenchmarkChange/Pull_1000_Changes - allocs/op
26869
allocs/op26863
allocs/op1.00
BenchmarkSnapshot/Push_3KB_snapshot - ns/op
16450046
ns/op17124193
ns/op0.96
BenchmarkSnapshot/Push_3KB_snapshot - B/op
801924
B/op795662
B/op1.01
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op
6540
allocs/op6541
allocs/op1.00
BenchmarkSnapshot/Push_30KB_snapshot - ns/op
116883485
ns/op118550380
ns/op0.99
BenchmarkSnapshot/Push_30KB_snapshot - B/op
6306355
B/op6092004
B/op1.04
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op
62161
allocs/op62351
allocs/op1.00
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op
6481538
ns/op6682125
ns/op0.97
BenchmarkSnapshot/Pull_3KB_snapshot - B/op
894896
B/op893100
B/op1.00
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op
14877
allocs/op14878
allocs/op1.00
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op
14157006
ns/op14320788
ns/op0.99
BenchmarkSnapshot/Pull_30KB_snapshot - B/op
6890814
B/op6885147
B/op1.00
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op
144139
allocs/op144139
allocs/op1
BenchmarkSync/memory_sync_10_test - ns/op
6661
ns/op6890
ns/op0.97
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
51268
ns/op51823
ns/op0.99
BenchmarkSync/memory_sync_100_test - B/op
8652
B/op8653
B/op1.00
BenchmarkSync/memory_sync_100_test - allocs/op
273
allocs/op273
allocs/op1
BenchmarkSync/memory_sync_1000_test - ns/op
594166
ns/op599565
ns/op0.99
BenchmarkSync/memory_sync_1000_test - B/op
74394
B/op74417
B/op1.00
BenchmarkSync/memory_sync_1000_test - allocs/op
2112
allocs/op2112
allocs/op1
BenchmarkSync/memory_sync_10000_test - ns/op
7074246
ns/op7298454
ns/op0.97
BenchmarkSync/memory_sync_10000_test - B/op
764098
B/op758673
B/op1.01
BenchmarkSync/memory_sync_10000_test - allocs/op
20559
allocs/op20563
allocs/op1.00
BenchmarkTextEditing - ns/op
18382521571
ns/op18965669662
ns/op0.97
BenchmarkTextEditing - B/op
9037805536
B/op9037913976
B/op1.00
BenchmarkTextEditing - allocs/op
19922472
allocs/op19922963
allocs/op1.00
This comment was automatically generated by workflow using github-action-benchmark.