Skip to content

Commit

Permalink
Merge branch 'main' into introduce-sharding-rules-to-clients-collection
Browse files Browse the repository at this point in the history
  • Loading branch information
sejongk committed Jan 22, 2024
2 parents 2248c3a + 7b3df9d commit f07f121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/backend/database/testcases/testcases.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const (
dummyOwnerID = types.ID("000000000000000000000000")
otherOwnerID = types.ID("000000000000000000000001")
dummyDocID = types.ID("000000000000000000000000")
dummyClientID = types.ID("000000000000000000000000")
clientDeactivateThreshold = "1h"
)

Expand Down
1 change: 1 addition & 0 deletions test/sharding/mongo_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const (
projectOneID = types.ID("000000000000000000000001")
projectTwoID = types.ID("000000000000000000000002")
dummyOwnerID = types.ID("000000000000000000000000")
dummyClientID = types.ID("000000000000000000000000")
clientDeactivateThreshold = "1h"
)

Expand Down

1 comment on commit f07f121

@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: f07f121 Previous: db5c891 Ratio
BenchmarkDocument/constructor_test - ns/op 1441 ns/op 1462 ns/op 0.99
BenchmarkDocument/constructor_test - B/op 1224 B/op 1224 B/op 1
BenchmarkDocument/constructor_test - allocs/op 21 allocs/op 21 allocs/op 1
BenchmarkDocument/status_test - ns/op 837.5 ns/op 870.6 ns/op 0.96
BenchmarkDocument/status_test - B/op 1192 B/op 1192 B/op 1
BenchmarkDocument/status_test - allocs/op 19 allocs/op 19 allocs/op 1
BenchmarkDocument/equals_test - ns/op 7562 ns/op 7457 ns/op 1.01
BenchmarkDocument/equals_test - B/op 6977 B/op 6977 B/op 1
BenchmarkDocument/equals_test - allocs/op 124 allocs/op 124 allocs/op 1
BenchmarkDocument/nested_update_test - ns/op 16711 ns/op 18773 ns/op 0.89
BenchmarkDocument/nested_update_test - B/op 12058 B/op 12059 B/op 1.00
BenchmarkDocument/nested_update_test - allocs/op 260 allocs/op 260 allocs/op 1
BenchmarkDocument/delete_test - ns/op 23782 ns/op 22731 ns/op 1.05
BenchmarkDocument/delete_test - B/op 15283 B/op 15283 B/op 1
BenchmarkDocument/delete_test - allocs/op 339 allocs/op 339 allocs/op 1
BenchmarkDocument/object_test - ns/op 9206 ns/op 8683 ns/op 1.06
BenchmarkDocument/object_test - B/op 6753 B/op 6753 B/op 1
BenchmarkDocument/object_test - allocs/op 118 allocs/op 118 allocs/op 1
BenchmarkDocument/array_test - ns/op 28920 ns/op 29725 ns/op 0.97
BenchmarkDocument/array_test - B/op 11883 B/op 11883 B/op 1
BenchmarkDocument/array_test - allocs/op 274 allocs/op 274 allocs/op 1
BenchmarkDocument/text_test - ns/op 30618 ns/op 31277 ns/op 0.98
BenchmarkDocument/text_test - B/op 14915 B/op 14916 B/op 1.00
BenchmarkDocument/text_test - allocs/op 470 allocs/op 470 allocs/op 1
BenchmarkDocument/text_composition_test - ns/op 29080 ns/op 29368 ns/op 0.99
BenchmarkDocument/text_composition_test - B/op 18430 B/op 18428 B/op 1.00
BenchmarkDocument/text_composition_test - allocs/op 479 allocs/op 479 allocs/op 1
BenchmarkDocument/rich_text_test - ns/op 80056 ns/op 82199 ns/op 0.97
BenchmarkDocument/rich_text_test - B/op 38677 B/op 38677 B/op 1
BenchmarkDocument/rich_text_test - allocs/op 1149 allocs/op 1149 allocs/op 1
BenchmarkDocument/counter_test - ns/op 16968 ns/op 17189 ns/op 0.99
BenchmarkDocument/counter_test - B/op 10466 B/op 10466 B/op 1
BenchmarkDocument/counter_test - allocs/op 238 allocs/op 238 allocs/op 1
BenchmarkDocument/text_edit_gc_100 - ns/op 2865519 ns/op 2902272 ns/op 0.99
BenchmarkDocument/text_edit_gc_100 - B/op 1658537 B/op 1658565 B/op 1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op 17093 allocs/op 17095 allocs/op 1.00
BenchmarkDocument/text_edit_gc_1000 - ns/op 229760701 ns/op 233644200 ns/op 0.98
BenchmarkDocument/text_edit_gc_1000 - B/op 144394601 B/op 144376121 B/op 1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op 201009 allocs/op 200903 allocs/op 1.00
BenchmarkDocument/text_split_gc_100 - ns/op 3373264 ns/op 3424928 ns/op 0.98
BenchmarkDocument/text_split_gc_100 - B/op 2316804 B/op 2316906 B/op 1.00
BenchmarkDocument/text_split_gc_100 - allocs/op 16196 allocs/op 16197 allocs/op 1.00
BenchmarkDocument/text_split_gc_1000 - ns/op 288947724 ns/op 305953207 ns/op 0.94
BenchmarkDocument/text_split_gc_1000 - B/op 228930108 B/op 228920972 B/op 1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op 203980 allocs/op 203935 allocs/op 1.00
BenchmarkDocument/text_delete_all_10000 - ns/op 11273796 ns/op 11350708 ns/op 0.99
BenchmarkDocument/text_delete_all_10000 - B/op 5810337 B/op 5811003 B/op 1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op 40674 allocs/op 40676 allocs/op 1.00
BenchmarkDocument/text_delete_all_100000 - ns/op 186354021 ns/op 202714518 ns/op 0.92
BenchmarkDocument/text_delete_all_100000 - B/op 81900184 B/op 81899501 B/op 1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op 411617 allocs/op 411608 allocs/op 1.00
BenchmarkDocument/text_100 - ns/op 221497 ns/op 233594 ns/op 0.95
BenchmarkDocument/text_100 - B/op 120138 B/op 120140 B/op 1.00
BenchmarkDocument/text_100 - allocs/op 5082 allocs/op 5082 allocs/op 1
BenchmarkDocument/text_1000 - ns/op 2419765 ns/op 2477047 ns/op 0.98
BenchmarkDocument/text_1000 - B/op 1169125 B/op 1169110 B/op 1.00
BenchmarkDocument/text_1000 - allocs/op 50086 allocs/op 50086 allocs/op 1
BenchmarkDocument/array_1000 - ns/op 1217545 ns/op 1267080 ns/op 0.96
BenchmarkDocument/array_1000 - B/op 1091266 B/op 1091237 B/op 1.00
BenchmarkDocument/array_1000 - allocs/op 11829 allocs/op 11829 allocs/op 1
BenchmarkDocument/array_10000 - ns/op 13196958 ns/op 13620720 ns/op 0.97
BenchmarkDocument/array_10000 - B/op 9799159 B/op 9799283 B/op 1.00
BenchmarkDocument/array_10000 - allocs/op 120291 allocs/op 120292 allocs/op 1.00
BenchmarkDocument/array_gc_100 - ns/op 146674 ns/op 156102 ns/op 0.94
BenchmarkDocument/array_gc_100 - B/op 132651 B/op 132672 B/op 1.00
BenchmarkDocument/array_gc_100 - allocs/op 1258 allocs/op 1259 allocs/op 1.00
BenchmarkDocument/array_gc_1000 - ns/op 1391046 ns/op 1474362 ns/op 0.94
BenchmarkDocument/array_gc_1000 - B/op 1159167 B/op 1159140 B/op 1.00
BenchmarkDocument/array_gc_1000 - allocs/op 12875 allocs/op 12875 allocs/op 1
BenchmarkDocument/counter_1000 - ns/op 204088 ns/op 227555 ns/op 0.90
BenchmarkDocument/counter_1000 - B/op 192915 B/op 192918 B/op 1.00
BenchmarkDocument/counter_1000 - allocs/op 5767 allocs/op 5767 allocs/op 1
BenchmarkDocument/counter_10000 - ns/op 2231507 ns/op 2356115 ns/op 0.95
BenchmarkDocument/counter_10000 - B/op 2087834 B/op 2087850 B/op 1.00
BenchmarkDocument/counter_10000 - allocs/op 59774 allocs/op 59774 allocs/op 1
BenchmarkDocument/object_1000 - ns/op 1376942 ns/op 1458163 ns/op 0.94
BenchmarkDocument/object_1000 - B/op 1428006 B/op 1427995 B/op 1.00
BenchmarkDocument/object_1000 - allocs/op 9847 allocs/op 9847 allocs/op 1
BenchmarkDocument/object_10000 - ns/op 15015747 ns/op 15315113 ns/op 0.98
BenchmarkDocument/object_10000 - B/op 12167246 B/op 12164930 B/op 1.00
BenchmarkDocument/object_10000 - allocs/op 100565 allocs/op 100557 allocs/op 1.00
BenchmarkDocument/tree_100 - ns/op 1054817 ns/op 1077654 ns/op 0.98
BenchmarkDocument/tree_100 - B/op 943781 B/op 943784 B/op 1.00
BenchmarkDocument/tree_100 - allocs/op 6102 allocs/op 6102 allocs/op 1
BenchmarkDocument/tree_1000 - ns/op 76150558 ns/op 79789440 ns/op 0.95
BenchmarkDocument/tree_1000 - B/op 86460413 B/op 86483290 B/op 1.00
BenchmarkDocument/tree_1000 - allocs/op 60116 allocs/op 60115 allocs/op 1.00
BenchmarkDocument/tree_10000 - ns/op 9574844892 ns/op 10035698778 ns/op 0.95
BenchmarkDocument/tree_10000 - B/op 8580663616 B/op 8580658784 B/op 1.00
BenchmarkDocument/tree_10000 - allocs/op 600238 allocs/op 600211 allocs/op 1.00
BenchmarkDocument/tree_delete_all_1000 - ns/op 74533000 ns/op 84272093 ns/op 0.88
BenchmarkDocument/tree_delete_all_1000 - B/op 86990938 B/op 86991508 B/op 1.00
BenchmarkDocument/tree_delete_all_1000 - allocs/op 67755 allocs/op 67756 allocs/op 1.00
BenchmarkDocument/tree_edit_gc_100 - ns/op 3661452 ns/op 4101233 ns/op 0.89
BenchmarkDocument/tree_edit_gc_100 - B/op 4121093 B/op 4121121 B/op 1.00
BenchmarkDocument/tree_edit_gc_100 - allocs/op 14359 allocs/op 14359 allocs/op 1
BenchmarkDocument/tree_edit_gc_1000 - ns/op 299683534 ns/op 329940615 ns/op 0.91
BenchmarkDocument/tree_edit_gc_1000 - B/op 383466826 B/op 383467576 B/op 1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op 145414 allocs/op 145422 allocs/op 1.00
BenchmarkDocument/tree_split_gc_100 - ns/op 2482067 ns/op 2678989 ns/op 0.93
BenchmarkDocument/tree_split_gc_100 - B/op 2386932 B/op 2386932 B/op 1
BenchmarkDocument/tree_split_gc_100 - allocs/op 10344 allocs/op 10344 allocs/op 1
BenchmarkDocument/tree_split_gc_1000 - ns/op 183444163 ns/op 205038291 ns/op 0.89
BenchmarkDocument/tree_split_gc_1000 - B/op 221991241 B/op 221991552 B/op 1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op 112259 allocs/op 112267 allocs/op 1.00
BenchmarkRPC/client_to_server - ns/op 369753852 ns/op 370061649 ns/op 1.00
BenchmarkRPC/client_to_server - B/op 16572656 B/op 17801160 B/op 0.93
BenchmarkRPC/client_to_server - allocs/op 171826 allocs/op 165882 allocs/op 1.04
BenchmarkRPC/client_to_client_via_server - ns/op 642471033 ns/op 631705484 ns/op 1.02
BenchmarkRPC/client_to_client_via_server - B/op 32697972 B/op 35787972 B/op 0.91
BenchmarkRPC/client_to_client_via_server - allocs/op 322351 allocs/op 310901 allocs/op 1.04
BenchmarkRPC/attach_large_document - ns/op 1240178780 ns/op 1304912523 ns/op 0.95
BenchmarkRPC/attach_large_document - B/op 1891864336 B/op 1890006000 B/op 1.00
BenchmarkRPC/attach_large_document - allocs/op 7642 allocs/op 7507 allocs/op 1.02
BenchmarkRPC/adminCli_to_server - ns/op 540375290 ns/op 556685648 ns/op 0.97
BenchmarkRPC/adminCli_to_server - B/op 35989892 B/op 35961492 B/op 1.00
BenchmarkRPC/adminCli_to_server - allocs/op 289662 allocs/op 288640 allocs/op 1.00
BenchmarkLocker - ns/op 66.59 ns/op 66.57 ns/op 1.00
BenchmarkLocker - B/op 16 B/op 16 B/op 1
BenchmarkLocker - allocs/op 1 allocs/op 1 allocs/op 1
BenchmarkLockerParallel - ns/op 38.59 ns/op 38.47 ns/op 1.00
BenchmarkLockerParallel - B/op 0 B/op 0 B/op NaN
BenchmarkLockerParallel - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkLockerMoreKeys - ns/op 148.7 ns/op 143.9 ns/op 1.03
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 4225689 ns/op 3824404 ns/op 1.10
BenchmarkChange/Push_10_Changes - B/op 147279 B/op 125670 B/op 1.17
BenchmarkChange/Push_10_Changes - allocs/op 1294 allocs/op 1253 allocs/op 1.03
BenchmarkChange/Push_100_Changes - ns/op 15570137 ns/op 14396562 ns/op 1.08
BenchmarkChange/Push_100_Changes - B/op 700944 B/op 646471 B/op 1.08
BenchmarkChange/Push_100_Changes - allocs/op 6755 allocs/op 6538 allocs/op 1.03
BenchmarkChange/Push_1000_Changes - ns/op 124136675 ns/op 115416962 ns/op 1.08
BenchmarkChange/Push_1000_Changes - B/op 6212240 B/op 6038304 B/op 1.03
BenchmarkChange/Push_1000_Changes - allocs/op 63379 allocs/op 62159 allocs/op 1.02
BenchmarkChange/Pull_10_Changes - ns/op 3206400 ns/op 2878743 ns/op 1.11
BenchmarkChange/Pull_10_Changes - B/op 124634 B/op 99782 B/op 1.25
BenchmarkChange/Pull_10_Changes - allocs/op 1011 allocs/op 952 allocs/op 1.06
BenchmarkChange/Pull_100_Changes - ns/op 5118124 ns/op 4395829 ns/op 1.16
BenchmarkChange/Pull_100_Changes - B/op 327617 B/op 255673 B/op 1.28
BenchmarkChange/Pull_100_Changes - allocs/op 3480 allocs/op 3155 allocs/op 1.10
BenchmarkChange/Pull_1000_Changes - ns/op 9828497 ns/op 8794063 ns/op 1.12
BenchmarkChange/Pull_1000_Changes - B/op 1639613 B/op 1394867 B/op 1.18
BenchmarkChange/Pull_1000_Changes - allocs/op 29845 allocs/op 26864 allocs/op 1.11
BenchmarkSnapshot/Push_3KB_snapshot - ns/op 19355964 ns/op 17155258 ns/op 1.13
BenchmarkSnapshot/Push_3KB_snapshot - B/op 955417 B/op 802395 B/op 1.19
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op 6768 allocs/op 6545 allocs/op 1.03
BenchmarkSnapshot/Push_30KB_snapshot - ns/op 129381155 ns/op 119057281 ns/op 1.09
BenchmarkSnapshot/Push_30KB_snapshot - B/op 6269167 B/op 6130075 B/op 1.02
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op 63194 allocs/op 62161 allocs/op 1.02
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op 7738870 ns/op 6682690 ns/op 1.16
BenchmarkSnapshot/Pull_3KB_snapshot - B/op 1027050 B/op 902357 B/op 1.14
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op 15510 allocs/op 14886 allocs/op 1.04
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op 17913297 ns/op 15488359 ns/op 1.16
BenchmarkSnapshot/Pull_30KB_snapshot - B/op 7431477 B/op 6979845 B/op 1.06
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op 150125 allocs/op 144144 allocs/op 1.04
BenchmarkSync/memory_sync_10_test - ns/op 6852 ns/op 6909 ns/op 0.99
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 52834 ns/op 51987 ns/op 1.02
BenchmarkSync/memory_sync_100_test - B/op 8646 B/op 8651 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 591012 ns/op 598943 ns/op 0.99
BenchmarkSync/memory_sync_1000_test - B/op 74687 B/op 74321 B/op 1.00
BenchmarkSync/memory_sync_1000_test - allocs/op 2127 allocs/op 2109 allocs/op 1.01
BenchmarkSync/memory_sync_10000_test - ns/op 7385758 ns/op 8040185 ns/op 0.92
BenchmarkSync/memory_sync_10000_test - B/op 764255 B/op 752410 B/op 1.02
BenchmarkSync/memory_sync_10000_test - allocs/op 20543 allocs/op 20450 allocs/op 1.00
BenchmarkTextEditing - ns/op 18415503296 ns/op 19692939313 ns/op 0.94
BenchmarkTextEditing - B/op 9042165848 B/op 9042488224 B/op 1.00
BenchmarkTextEditing - allocs/op 19924018 allocs/op 19922605 allocs/op 1.00

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

Please sign in to comment.