Skip to content

Commit

Permalink
Remove useless codes
Browse files Browse the repository at this point in the history
  • Loading branch information
JongBeom Lee committed Jan 8, 2024
1 parent 554fbd5 commit f73b6de
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/integration/housekeeping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ func TestHousekeeping(t *testing.T) {
fetchSize := 3
lastProjectID := database.DefaultProjectID

for i := 0; i < len(projects); i++ {
fmt.Println(projects[i].ID)
}
fmt.Println(len(projects))
for i := 0; i < len(projects)/fetchSize; i++ {
lastProjectID, _, err = h.FindDeactivateCandidates(
ctx,
Expand Down Expand Up @@ -127,9 +123,7 @@ func TestHousekeeping(t *testing.T) {
10,
database.DefaultProjectID,
)
for i := 0; i < len(candidates); i++ {
fmt.Println(candidates[i].ID)
}

assert.NoError(t, err)
assert.Len(t, candidates, 2)
assert.Equal(t, candidates[0].ID, clientA.ID)
Expand Down

1 comment on commit f73b6de

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go Benchmark

Benchmark suite Current: f73b6de Previous: 371c0bd Ratio
BenchmarkDocument/constructor_test - ns/op 1338 ns/op 1377 ns/op 0.97
BenchmarkDocument/constructor_test - B/op 1208 B/op 1208 B/op 1
BenchmarkDocument/constructor_test - allocs/op 20 allocs/op 20 allocs/op 1
BenchmarkDocument/status_test - ns/op 776.3 ns/op 789.4 ns/op 0.98
BenchmarkDocument/status_test - B/op 1176 B/op 1176 B/op 1
BenchmarkDocument/status_test - allocs/op 18 allocs/op 18 allocs/op 1
BenchmarkDocument/equals_test - ns/op 7116 ns/op 7111 ns/op 1.00
BenchmarkDocument/equals_test - B/op 6913 B/op 6913 B/op 1
BenchmarkDocument/equals_test - allocs/op 120 allocs/op 120 allocs/op 1
BenchmarkDocument/nested_update_test - ns/op 16177 ns/op 16193 ns/op 1.00
BenchmarkDocument/nested_update_test - B/op 11963 B/op 11963 B/op 1
BenchmarkDocument/nested_update_test - allocs/op 254 allocs/op 254 allocs/op 1
BenchmarkDocument/delete_test - ns/op 22088 ns/op 21946 ns/op 1.01
BenchmarkDocument/delete_test - B/op 15187 B/op 15188 B/op 1.00
BenchmarkDocument/delete_test - allocs/op 333 allocs/op 333 allocs/op 1
BenchmarkDocument/object_test - ns/op 8320 ns/op 8312 ns/op 1.00
BenchmarkDocument/object_test - B/op 6721 B/op 6721 B/op 1
BenchmarkDocument/object_test - allocs/op 116 allocs/op 116 allocs/op 1
BenchmarkDocument/array_test - ns/op 32658 ns/op 30000 ns/op 1.09
BenchmarkDocument/array_test - B/op 11819 B/op 11819 B/op 1
BenchmarkDocument/array_test - allocs/op 270 allocs/op 270 allocs/op 1
BenchmarkDocument/text_test - ns/op 30791 ns/op 30139 ns/op 1.02
BenchmarkDocument/text_test - B/op 14795 B/op 14795 B/op 1
BenchmarkDocument/text_test - allocs/op 468 allocs/op 468 allocs/op 1
BenchmarkDocument/text_composition_test - ns/op 28511 ns/op 28335 ns/op 1.01
BenchmarkDocument/text_composition_test - B/op 18276 B/op 18276 B/op 1
BenchmarkDocument/text_composition_test - allocs/op 477 allocs/op 477 allocs/op 1
BenchmarkDocument/rich_text_test - ns/op 79571 ns/op 79995 ns/op 0.99
BenchmarkDocument/rich_text_test - B/op 38540 B/op 38540 B/op 1
BenchmarkDocument/rich_text_test - allocs/op 1147 allocs/op 1147 allocs/op 1
BenchmarkDocument/counter_test - ns/op 16607 ns/op 16569 ns/op 1.00
BenchmarkDocument/counter_test - B/op 10210 B/op 10210 B/op 1
BenchmarkDocument/counter_test - allocs/op 236 allocs/op 236 allocs/op 1
BenchmarkDocument/text_edit_gc_100 - ns/op 2881935 ns/op 2880237 ns/op 1.00
BenchmarkDocument/text_edit_gc_100 - B/op 1655658 B/op 1655338 B/op 1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op 17094 allocs/op 17093 allocs/op 1.00
BenchmarkDocument/text_edit_gc_1000 - ns/op 236406101 ns/op 230665534 ns/op 1.02
BenchmarkDocument/text_edit_gc_1000 - B/op 144342529 B/op 144353982 B/op 1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op 200902 allocs/op 200922 allocs/op 1.00
BenchmarkDocument/text_split_gc_100 - ns/op 3360536 ns/op 3364482 ns/op 1.00
BenchmarkDocument/text_split_gc_100 - B/op 2313689 B/op 2313691 B/op 1.00
BenchmarkDocument/text_split_gc_100 - allocs/op 16195 allocs/op 16194 allocs/op 1.00
BenchmarkDocument/text_split_gc_1000 - ns/op 290049466 ns/op 287958336 ns/op 1.01
BenchmarkDocument/text_split_gc_1000 - B/op 228892264 B/op 228907444 B/op 1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op 203953 allocs/op 204038 allocs/op 1.00
BenchmarkDocument/text_delete_all_10000 - ns/op 11266278 ns/op 10745732 ns/op 1.05
BenchmarkDocument/text_delete_all_10000 - B/op 5810427 B/op 5811042 B/op 1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op 40674 allocs/op 40677 allocs/op 1.00
BenchmarkDocument/text_delete_all_100000 - ns/op 191998348 ns/op 182654438 ns/op 1.05
BenchmarkDocument/text_delete_all_100000 - B/op 81892904 B/op 81901874 B/op 1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op 411583 allocs/op 411632 allocs/op 1.00
BenchmarkDocument/text_100 - ns/op 218341 ns/op 233058 ns/op 0.94
BenchmarkDocument/text_100 - B/op 118480 B/op 118483 B/op 1.00
BenchmarkDocument/text_100 - allocs/op 5080 allocs/op 5080 allocs/op 1
BenchmarkDocument/text_1000 - ns/op 2367603 ns/op 2391484 ns/op 0.99
BenchmarkDocument/text_1000 - B/op 1153069 B/op 1153070 B/op 1.00
BenchmarkDocument/text_1000 - allocs/op 50084 allocs/op 50084 allocs/op 1
BenchmarkDocument/array_1000 - ns/op 1184733 ns/op 1224286 ns/op 0.97
BenchmarkDocument/array_1000 - B/op 1091290 B/op 1091326 B/op 1.00
BenchmarkDocument/array_1000 - allocs/op 11826 allocs/op 11826 allocs/op 1
BenchmarkDocument/array_10000 - ns/op 13273622 ns/op 13077903 ns/op 1.01
BenchmarkDocument/array_10000 - B/op 9800694 B/op 9800290 B/op 1.00
BenchmarkDocument/array_10000 - allocs/op 120294 allocs/op 120292 allocs/op 1.00
BenchmarkDocument/array_gc_100 - ns/op 143911 ns/op 151788 ns/op 0.95
BenchmarkDocument/array_gc_100 - B/op 132497 B/op 132488 B/op 1.00
BenchmarkDocument/array_gc_100 - allocs/op 1248 allocs/op 1248 allocs/op 1
BenchmarkDocument/array_gc_1000 - ns/op 1373378 ns/op 1404854 ns/op 0.98
BenchmarkDocument/array_gc_1000 - B/op 1158963 B/op 1158980 B/op 1.00
BenchmarkDocument/array_gc_1000 - allocs/op 12865 allocs/op 12865 allocs/op 1
BenchmarkDocument/counter_1000 - ns/op 195510 ns/op 206194 ns/op 0.95
BenchmarkDocument/counter_1000 - B/op 192853 B/op 192853 B/op 1
BenchmarkDocument/counter_1000 - allocs/op 5765 allocs/op 5765 allocs/op 1
BenchmarkDocument/counter_10000 - ns/op 2141900 ns/op 2162242 ns/op 0.99
BenchmarkDocument/counter_10000 - B/op 2087783 B/op 2087767 B/op 1.00
BenchmarkDocument/counter_10000 - allocs/op 59772 allocs/op 59772 allocs/op 1
BenchmarkDocument/object_1000 - ns/op 1329405 ns/op 1387175 ns/op 0.96
BenchmarkDocument/object_1000 - B/op 1427963 B/op 1427873 B/op 1.00
BenchmarkDocument/object_1000 - allocs/op 9845 allocs/op 9844 allocs/op 1.00
BenchmarkDocument/object_10000 - ns/op 14743520 ns/op 14940872 ns/op 0.99
BenchmarkDocument/object_10000 - B/op 12165101 B/op 12167844 B/op 1.00
BenchmarkDocument/object_10000 - allocs/op 100557 allocs/op 100565 allocs/op 1.00
BenchmarkDocument/tree_100 - ns/op 1066344 ns/op 1063528 ns/op 1.00
BenchmarkDocument/tree_100 - B/op 943678 B/op 943676 B/op 1.00
BenchmarkDocument/tree_100 - allocs/op 6099 allocs/op 6099 allocs/op 1
BenchmarkDocument/tree_1000 - ns/op 78298641 ns/op 76919106 ns/op 1.02
BenchmarkDocument/tree_1000 - B/op 86460911 B/op 86460483 B/op 1.00
BenchmarkDocument/tree_1000 - allocs/op 60113 allocs/op 60113 allocs/op 1
BenchmarkDocument/tree_10000 - ns/op 9705129138 ns/op 9455598211 ns/op 1.03
BenchmarkDocument/tree_10000 - B/op 8580983000 B/op 8580974952 B/op 1.00
BenchmarkDocument/tree_10000 - allocs/op 600238 allocs/op 600241 allocs/op 1.00
BenchmarkDocument/tree_delete_all_1000 - ns/op 72624645 ns/op 76041550 ns/op 0.96
BenchmarkDocument/tree_delete_all_1000 - B/op 86990568 B/op 86990093 B/op 1.00
BenchmarkDocument/tree_delete_all_1000 - allocs/op 67751 allocs/op 67750 allocs/op 1.00
BenchmarkDocument/tree_edit_gc_100 - ns/op 3658444 ns/op 3788184 ns/op 0.97
BenchmarkDocument/tree_edit_gc_100 - B/op 4121043 B/op 4120975 B/op 1.00
BenchmarkDocument/tree_edit_gc_100 - allocs/op 14356 allocs/op 14356 allocs/op 1
BenchmarkDocument/tree_edit_gc_1000 - ns/op 303090549 ns/op 311628432 ns/op 0.97
BenchmarkDocument/tree_edit_gc_1000 - B/op 383466630 B/op 383466072 B/op 1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op 145407 allocs/op 145408 allocs/op 1.00
BenchmarkDocument/tree_split_gc_100 - ns/op 2435070 ns/op 2537211 ns/op 0.96
BenchmarkDocument/tree_split_gc_100 - B/op 2386821 B/op 2386834 B/op 1.00
BenchmarkDocument/tree_split_gc_100 - allocs/op 10341 allocs/op 10341 allocs/op 1
BenchmarkDocument/tree_split_gc_1000 - ns/op 182331558 ns/op 186579060 ns/op 0.98
BenchmarkDocument/tree_split_gc_1000 - B/op 221990845 B/op 221992948 B/op 1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op 112251 allocs/op 112269 allocs/op 1.00
BenchmarkRPC/client_to_server - ns/op 359388336 ns/op 357207335 ns/op 1.01
BenchmarkRPC/client_to_server - B/op 17497680 B/op 17780002 B/op 0.98
BenchmarkRPC/client_to_server - allocs/op 166852 allocs/op 166893 allocs/op 1.00
BenchmarkRPC/client_to_client_via_server - ns/op 608265694 ns/op 609889492 ns/op 1.00
BenchmarkRPC/client_to_client_via_server - B/op 32040048 B/op 36970424 B/op 0.87
BenchmarkRPC/client_to_client_via_server - allocs/op 312364 allocs/op 312196 allocs/op 1.00
BenchmarkRPC/attach_large_document - ns/op 1436028240 ns/op 1311110292 ns/op 1.10
BenchmarkRPC/attach_large_document - B/op 1889218920 B/op 1890028136 B/op 1.00
BenchmarkRPC/attach_large_document - allocs/op 7532 allocs/op 7522 allocs/op 1.00
BenchmarkRPC/adminCli_to_server - ns/op 543336397 ns/op 542890036 ns/op 1.00
BenchmarkRPC/adminCli_to_server - B/op 35978876 B/op 35988828 B/op 1.00
BenchmarkRPC/adminCli_to_server - allocs/op 289653 allocs/op 289666 allocs/op 1.00
BenchmarkLocker - ns/op 65.5 ns/op 68.75 ns/op 0.95
BenchmarkLocker - B/op 16 B/op 16 B/op 1
BenchmarkLocker - allocs/op 1 allocs/op 1 allocs/op 1
BenchmarkLockerParallel - ns/op 38.93 ns/op 40.48 ns/op 0.96
BenchmarkLockerParallel - B/op 0 B/op 0 B/op NaN
BenchmarkLockerParallel - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkLockerMoreKeys - ns/op 150.1 ns/op 147.6 ns/op 1.02
BenchmarkLockerMoreKeys - B/op 15 B/op 15 B/op 1
BenchmarkLockerMoreKeys - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkChange/Push_10_Changes - ns/op 3777300 ns/op 3805155 ns/op 0.99
BenchmarkChange/Push_10_Changes - B/op 125557 B/op 126109 B/op 1.00
BenchmarkChange/Push_10_Changes - allocs/op 1253 allocs/op 1248 allocs/op 1.00
BenchmarkChange/Push_100_Changes - ns/op 14040719 ns/op 14183166 ns/op 0.99
BenchmarkChange/Push_100_Changes - B/op 654095 B/op 642196 B/op 1.02
BenchmarkChange/Push_100_Changes - allocs/op 6540 allocs/op 6533 allocs/op 1.00
BenchmarkChange/Push_1000_Changes - ns/op 113037965 ns/op 113839698 ns/op 0.99
BenchmarkChange/Push_1000_Changes - B/op 6158726 B/op 6143264 B/op 1.00
BenchmarkChange/Push_1000_Changes - allocs/op 62162 allocs/op 62159 allocs/op 1.00
BenchmarkChange/Pull_10_Changes - ns/op 2860467 ns/op 2849854 ns/op 1.00
BenchmarkChange/Pull_10_Changes - B/op 100475 B/op 100526 B/op 1.00
BenchmarkChange/Pull_10_Changes - allocs/op 952 allocs/op 952 allocs/op 1
BenchmarkChange/Pull_100_Changes - ns/op 4343007 ns/op 4343669 ns/op 1.00
BenchmarkChange/Pull_100_Changes - B/op 257494 B/op 257709 B/op 1.00
BenchmarkChange/Pull_100_Changes - allocs/op 3155 allocs/op 3154 allocs/op 1.00
BenchmarkChange/Pull_1000_Changes - ns/op 8613919 ns/op 8312148 ns/op 1.04
BenchmarkChange/Pull_1000_Changes - B/op 1394755 B/op 1399193 B/op 1.00
BenchmarkChange/Pull_1000_Changes - allocs/op 26867 allocs/op 26872 allocs/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot - ns/op 16871906 ns/op 16961319 ns/op 0.99
BenchmarkSnapshot/Push_3KB_snapshot - B/op 806021 B/op 808475 B/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op 6542 allocs/op 6543 allocs/op 1.00
BenchmarkSnapshot/Push_30KB_snapshot - ns/op 117064286 ns/op 118594721 ns/op 0.99
BenchmarkSnapshot/Push_30KB_snapshot - B/op 6252334 B/op 6352788 B/op 0.98
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op 62170 allocs/op 62161 allocs/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op 6714249 ns/op 6716744 ns/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - B/op 904883 B/op 904978 B/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op 14880 allocs/op 14877 allocs/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op 14960683 ns/op 15139900 ns/op 0.99
BenchmarkSnapshot/Pull_30KB_snapshot - B/op 6982396 B/op 6988512 B/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op 144141 allocs/op 144138 allocs/op 1.00
BenchmarkSync/memory_sync_10_test - ns/op 6890 ns/op 6857 ns/op 1.00
BenchmarkSync/memory_sync_10_test - B/op 1286 B/op 1286 B/op 1
BenchmarkSync/memory_sync_10_test - allocs/op 38 allocs/op 38 allocs/op 1
BenchmarkSync/memory_sync_100_test - ns/op 52111 ns/op 52028 ns/op 1.00
BenchmarkSync/memory_sync_100_test - B/op 8650 B/op 8648 B/op 1.00
BenchmarkSync/memory_sync_100_test - allocs/op 273 allocs/op 273 allocs/op 1
BenchmarkSync/memory_sync_1000_test - ns/op 596351 ns/op 589322 ns/op 1.01
BenchmarkSync/memory_sync_1000_test - B/op 74420 B/op 74649 B/op 1.00
BenchmarkSync/memory_sync_1000_test - allocs/op 2112 allocs/op 2127 allocs/op 0.99
BenchmarkSync/memory_sync_10000_test - ns/op 8038151 ns/op 7070870 ns/op 1.14
BenchmarkSync/memory_sync_10000_test - B/op 757479 B/op 756421 B/op 1.00
BenchmarkSync/memory_sync_10000_test - allocs/op 20496 allocs/op 20513 allocs/op 1.00
BenchmarkTextEditing - ns/op 18794533326 ns/op 18441616550 ns/op 1.02
BenchmarkTextEditing - B/op 9037460552 B/op 9037573648 B/op 1.00
BenchmarkTextEditing - allocs/op 19921219 allocs/op 19921799 allocs/op 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.