Skip to content

Commit

Permalink
Add test server wait helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
krapie committed Feb 7, 2024
1 parent 94d6e30 commit a270cf6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/rpc/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,12 @@ func TestMain(m *testing.M) {
log.Fatal(err)
}

if err := testRPCServer.Start(); err != nil {
if err = testRPCServer.Start(); err != nil {
log.Fatalf("failed rpc listen: %s\n", err)
}
if err = helper.WaitForServerToStart(testRPCAddr); err != nil {
log.Fatal(err)
}

authInterceptor := client.NewAuthInterceptor(project.PublicKey, "")

Expand Down
32 changes: 32 additions & 0 deletions test/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"context"
"fmt"
"log"
"net"
"strings"
"testing"
gotime "time"
Expand Down Expand Up @@ -454,3 +455,34 @@ func CreateDummyClientWithID(

return nil
}

// WaitForServerToStart waits for the server to start.
func WaitForServerToStart(addr string) error {
maxRetries := 10
initialDelay := 100 * gotime.Millisecond
maxDelay := 5 * gotime.Second

for attempt := 0; attempt < maxRetries; attempt++ {
// Exponential backoff calculation
delay := initialDelay * gotime.Duration(1<<uint(attempt))
fmt.Println("delay: ", delay)
if delay > maxDelay {
delay = maxDelay
}

conn, err := net.DialTimeout("tcp", addr, 1*gotime.Second)
if err != nil {
gotime.Sleep(delay)
continue
}

err = conn.Close()
if err != nil {
return fmt.Errorf("failed to close connection: %w", err)
}

return nil
}

return fmt.Errorf("failed to connect server via %s", addr)
}

1 comment on commit a270cf6

@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: a270cf6 Previous: ecf2b07 Ratio
BenchmarkDocument/constructor_test 1394 ns/op 1224 B/op 21 allocs/op 1433 ns/op 1224 B/op 21 allocs/op 0.97
BenchmarkDocument/constructor_test - ns/op 1394 ns/op 1433 ns/op 0.97
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 837.1 ns/op 1192 B/op 19 allocs/op 829.6 ns/op 1192 B/op 19 allocs/op 1.01
BenchmarkDocument/status_test - ns/op 837.1 ns/op 829.6 ns/op 1.01
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 7369 ns/op 6977 B/op 124 allocs/op 7347 ns/op 6977 B/op 124 allocs/op 1.00
BenchmarkDocument/equals_test - ns/op 7369 ns/op 7347 ns/op 1.00
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 19328 ns/op 12059 B/op 260 allocs/op 16592 ns/op 12058 B/op 260 allocs/op 1.16
BenchmarkDocument/nested_update_test - ns/op 19328 ns/op 16592 ns/op 1.16
BenchmarkDocument/nested_update_test - B/op 12059 B/op 12058 B/op 1.00
BenchmarkDocument/nested_update_test - allocs/op 260 allocs/op 260 allocs/op 1
BenchmarkDocument/delete_test 22636 ns/op 15283 B/op 339 allocs/op 23312 ns/op 15283 B/op 339 allocs/op 0.97
BenchmarkDocument/delete_test - ns/op 22636 ns/op 23312 ns/op 0.97
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 8607 ns/op 6753 B/op 118 allocs/op 9382 ns/op 6753 B/op 118 allocs/op 0.92
BenchmarkDocument/object_test - ns/op 8607 ns/op 9382 ns/op 0.92
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 29946 ns/op 11883 B/op 274 allocs/op 29165 ns/op 11883 B/op 274 allocs/op 1.03
BenchmarkDocument/array_test - ns/op 29946 ns/op 29165 ns/op 1.03
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 31002 ns/op 14916 B/op 470 allocs/op 30412 ns/op 14915 B/op 470 allocs/op 1.02
BenchmarkDocument/text_test - ns/op 31002 ns/op 30412 ns/op 1.02
BenchmarkDocument/text_test - B/op 14916 B/op 14915 B/op 1.00
BenchmarkDocument/text_test - allocs/op 470 allocs/op 470 allocs/op 1
BenchmarkDocument/text_composition_test 29388 ns/op 18430 B/op 479 allocs/op 28835 ns/op 18430 B/op 479 allocs/op 1.02
BenchmarkDocument/text_composition_test - ns/op 29388 ns/op 28835 ns/op 1.02
BenchmarkDocument/text_composition_test - B/op 18430 B/op 18430 B/op 1
BenchmarkDocument/text_composition_test - allocs/op 479 allocs/op 479 allocs/op 1
BenchmarkDocument/rich_text_test 81996 ns/op 38677 B/op 1149 allocs/op 81311 ns/op 38676 B/op 1149 allocs/op 1.01
BenchmarkDocument/rich_text_test - ns/op 81996 ns/op 81311 ns/op 1.01
BenchmarkDocument/rich_text_test - B/op 38677 B/op 38676 B/op 1.00
BenchmarkDocument/rich_text_test - allocs/op 1149 allocs/op 1149 allocs/op 1
BenchmarkDocument/counter_test 17840 ns/op 10658 B/op 242 allocs/op 17584 ns/op 10658 B/op 242 allocs/op 1.01
BenchmarkDocument/counter_test - ns/op 17840 ns/op 17584 ns/op 1.01
BenchmarkDocument/counter_test - B/op 10658 B/op 10658 B/op 1
BenchmarkDocument/counter_test - allocs/op 242 allocs/op 242 allocs/op 1
BenchmarkDocument/text_edit_gc_100 2925812 ns/op 1658568 B/op 17095 allocs/op 2879266 ns/op 1658738 B/op 17095 allocs/op 1.02
BenchmarkDocument/text_edit_gc_100 - ns/op 2925812 ns/op 2879266 ns/op 1.02
BenchmarkDocument/text_edit_gc_100 - B/op 1658568 B/op 1658738 B/op 1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op 17095 allocs/op 17095 allocs/op 1
BenchmarkDocument/text_edit_gc_1000 237017638 ns/op 144387564 B/op 200957 allocs/op 231029604 ns/op 144384198 B/op 200954 allocs/op 1.03
BenchmarkDocument/text_edit_gc_1000 - ns/op 237017638 ns/op 231029604 ns/op 1.03
BenchmarkDocument/text_edit_gc_1000 - B/op 144387564 B/op 144384198 B/op 1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op 200957 allocs/op 200954 allocs/op 1.00
BenchmarkDocument/text_split_gc_100 3414010 ns/op 2316939 B/op 16197 allocs/op 3373853 ns/op 2316787 B/op 16196 allocs/op 1.01
BenchmarkDocument/text_split_gc_100 - ns/op 3414010 ns/op 3373853 ns/op 1.01
BenchmarkDocument/text_split_gc_100 - B/op 2316939 B/op 2316787 B/op 1.00
BenchmarkDocument/text_split_gc_100 - allocs/op 16197 allocs/op 16196 allocs/op 1.00
BenchmarkDocument/text_split_gc_1000 293250548 ns/op 228921684 B/op 203930 allocs/op 285196296 ns/op 228942620 B/op 204043 allocs/op 1.03
BenchmarkDocument/text_split_gc_1000 - ns/op 293250548 ns/op 285196296 ns/op 1.03
BenchmarkDocument/text_split_gc_1000 - B/op 228921684 B/op 228942620 B/op 1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op 203930 allocs/op 204043 allocs/op 1.00
BenchmarkDocument/text_delete_all_10000 11699120 ns/op 5812242 B/op 40674 allocs/op 10705887 ns/op 5809786 B/op 40672 allocs/op 1.09
BenchmarkDocument/text_delete_all_10000 - ns/op 11699120 ns/op 10705887 ns/op 1.09
BenchmarkDocument/text_delete_all_10000 - B/op 5812242 B/op 5809786 B/op 1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op 40674 allocs/op 40672 allocs/op 1.00
BenchmarkDocument/text_delete_all_100000 181582842 ns/op 81898400 B/op 411622 allocs/op 180236741 ns/op 81902012 B/op 411639 allocs/op 1.01
BenchmarkDocument/text_delete_all_100000 - ns/op 181582842 ns/op 180236741 ns/op 1.01
BenchmarkDocument/text_delete_all_100000 - B/op 81898400 B/op 81902012 B/op 1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op 411622 allocs/op 411639 allocs/op 1.00
BenchmarkDocument/text_100 228126 ns/op 120139 B/op 5082 allocs/op 219684 ns/op 120139 B/op 5082 allocs/op 1.04
BenchmarkDocument/text_100 - ns/op 228126 ns/op 219684 ns/op 1.04
BenchmarkDocument/text_100 - B/op 120139 B/op 120139 B/op 1
BenchmarkDocument/text_100 - allocs/op 5082 allocs/op 5082 allocs/op 1
BenchmarkDocument/text_1000 2440834 ns/op 1169126 B/op 50086 allocs/op 2375409 ns/op 1169126 B/op 50086 allocs/op 1.03
BenchmarkDocument/text_1000 - ns/op 2440834 ns/op 2375409 ns/op 1.03
BenchmarkDocument/text_1000 - B/op 1169126 B/op 1169126 B/op 1
BenchmarkDocument/text_1000 - allocs/op 50086 allocs/op 50086 allocs/op 1
BenchmarkDocument/array_1000 1252725 ns/op 1091382 B/op 11830 allocs/op 1191915 ns/op 1091280 B/op 11829 allocs/op 1.05
BenchmarkDocument/array_1000 - ns/op 1252725 ns/op 1191915 ns/op 1.05
BenchmarkDocument/array_1000 - B/op 1091382 B/op 1091280 B/op 1.00
BenchmarkDocument/array_1000 - allocs/op 11830 allocs/op 11829 allocs/op 1.00
BenchmarkDocument/array_10000 13199951 ns/op 9799264 B/op 120291 allocs/op 13045629 ns/op 9799111 B/op 120291 allocs/op 1.01
BenchmarkDocument/array_10000 - ns/op 13199951 ns/op 13045629 ns/op 1.01
BenchmarkDocument/array_10000 - B/op 9799264 B/op 9799111 B/op 1.00
BenchmarkDocument/array_10000 - allocs/op 120291 allocs/op 120291 allocs/op 1
BenchmarkDocument/array_gc_100 153511 ns/op 132652 B/op 1258 allocs/op 153360 ns/op 132656 B/op 1258 allocs/op 1.00
BenchmarkDocument/array_gc_100 - ns/op 153511 ns/op 153360 ns/op 1.00
BenchmarkDocument/array_gc_100 - B/op 132652 B/op 132656 B/op 1.00
BenchmarkDocument/array_gc_100 - allocs/op 1258 allocs/op 1258 allocs/op 1
BenchmarkDocument/array_gc_1000 1432087 ns/op 1159084 B/op 12875 allocs/op 1420749 ns/op 1159102 B/op 12875 allocs/op 1.01
BenchmarkDocument/array_gc_1000 - ns/op 1432087 ns/op 1420749 ns/op 1.01
BenchmarkDocument/array_gc_1000 - B/op 1159084 B/op 1159102 B/op 1.00
BenchmarkDocument/array_gc_1000 - allocs/op 12875 allocs/op 12875 allocs/op 1
BenchmarkDocument/counter_1000 215075 ns/op 193013 B/op 5769 allocs/op 212889 ns/op 193013 B/op 5769 allocs/op 1.01
BenchmarkDocument/counter_1000 - ns/op 215075 ns/op 212889 ns/op 1.01
BenchmarkDocument/counter_1000 - B/op 193013 B/op 193013 B/op 1
BenchmarkDocument/counter_1000 - allocs/op 5769 allocs/op 5769 allocs/op 1
BenchmarkDocument/counter_10000 2268427 ns/op 2087929 B/op 59776 allocs/op 2242952 ns/op 2087929 B/op 59776 allocs/op 1.01
BenchmarkDocument/counter_10000 - ns/op 2268427 ns/op 2242952 ns/op 1.01
BenchmarkDocument/counter_10000 - B/op 2087929 B/op 2087929 B/op 1
BenchmarkDocument/counter_10000 - allocs/op 59776 allocs/op 59776 allocs/op 1
BenchmarkDocument/object_1000 1411487 ns/op 1427966 B/op 9846 allocs/op 1396822 ns/op 1427934 B/op 9846 allocs/op 1.01
BenchmarkDocument/object_1000 - ns/op 1411487 ns/op 1396822 ns/op 1.01
BenchmarkDocument/object_1000 - B/op 1427966 B/op 1427934 B/op 1.00
BenchmarkDocument/object_1000 - allocs/op 9846 allocs/op 9846 allocs/op 1
BenchmarkDocument/object_10000 15102927 ns/op 12167595 B/op 100564 allocs/op 14709219 ns/op 12167704 B/op 100567 allocs/op 1.03
BenchmarkDocument/object_10000 - ns/op 15102927 ns/op 14709219 ns/op 1.03
BenchmarkDocument/object_10000 - B/op 12167595 B/op 12167704 B/op 1.00
BenchmarkDocument/object_10000 - allocs/op 100564 allocs/op 100567 allocs/op 1.00
BenchmarkDocument/tree_100 1066901 ns/op 943784 B/op 6102 allocs/op 1084512 ns/op 943779 B/op 6102 allocs/op 0.98
BenchmarkDocument/tree_100 - ns/op 1066901 ns/op 1084512 ns/op 0.98
BenchmarkDocument/tree_100 - B/op 943784 B/op 943779 B/op 1.00
BenchmarkDocument/tree_100 - allocs/op 6102 allocs/op 6102 allocs/op 1
BenchmarkDocument/tree_1000 79413941 ns/op 86460514 B/op 60116 allocs/op 77316660 ns/op 86460898 B/op 60116 allocs/op 1.03
BenchmarkDocument/tree_1000 - ns/op 79413941 ns/op 77316660 ns/op 1.03
BenchmarkDocument/tree_1000 - B/op 86460514 B/op 86460898 B/op 1.00
BenchmarkDocument/tree_1000 - allocs/op 60116 allocs/op 60116 allocs/op 1
BenchmarkDocument/tree_10000 9534133533 ns/op 8580984336 B/op 600246 allocs/op 9565167389 ns/op 8580972944 B/op 600228 allocs/op 1.00
BenchmarkDocument/tree_10000 - ns/op 9534133533 ns/op 9565167389 ns/op 1.00
BenchmarkDocument/tree_10000 - B/op 8580984336 B/op 8580972944 B/op 1.00
BenchmarkDocument/tree_10000 - allocs/op 600246 allocs/op 600228 allocs/op 1.00
BenchmarkDocument/tree_delete_all_1000 76415086 ns/op 86991049 B/op 67756 allocs/op 82818312 ns/op 86989734 B/op 67754 allocs/op 0.92
BenchmarkDocument/tree_delete_all_1000 - ns/op 76415086 ns/op 82818312 ns/op 0.92
BenchmarkDocument/tree_delete_all_1000 - B/op 86991049 B/op 86989734 B/op 1.00
BenchmarkDocument/tree_delete_all_1000 - allocs/op 67756 allocs/op 67754 allocs/op 1.00
BenchmarkDocument/tree_edit_gc_100 3770952 ns/op 4121078 B/op 14359 allocs/op 3686345 ns/op 4121128 B/op 14359 allocs/op 1.02
BenchmarkDocument/tree_edit_gc_100 - ns/op 3770952 ns/op 3686345 ns/op 1.02
BenchmarkDocument/tree_edit_gc_100 - B/op 4121078 B/op 4121128 B/op 1.00
BenchmarkDocument/tree_edit_gc_100 - allocs/op 14359 allocs/op 14359 allocs/op 1
BenchmarkDocument/tree_edit_gc_1000 303806411 ns/op 383466214 B/op 145408 allocs/op 301877390 ns/op 383465898 B/op 145406 allocs/op 1.01
BenchmarkDocument/tree_edit_gc_1000 - ns/op 303806411 ns/op 301877390 ns/op 1.01
BenchmarkDocument/tree_edit_gc_1000 - B/op 383466214 B/op 383465898 B/op 1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op 145408 allocs/op 145406 allocs/op 1.00
BenchmarkDocument/tree_split_gc_100 2541135 ns/op 2386972 B/op 10344 allocs/op 2473562 ns/op 2386966 B/op 10344 allocs/op 1.03
BenchmarkDocument/tree_split_gc_100 - ns/op 2541135 ns/op 2473562 ns/op 1.03
BenchmarkDocument/tree_split_gc_100 - B/op 2386972 B/op 2386966 B/op 1.00
BenchmarkDocument/tree_split_gc_100 - allocs/op 10344 allocs/op 10344 allocs/op 1
BenchmarkDocument/tree_split_gc_1000 187799574 ns/op 221993388 B/op 112273 allocs/op 184489458 ns/op 221990336 B/op 112247 allocs/op 1.02
BenchmarkDocument/tree_split_gc_1000 - ns/op 187799574 ns/op 184489458 ns/op 1.02
BenchmarkDocument/tree_split_gc_1000 - B/op 221993388 B/op 221990336 B/op 1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op 112273 allocs/op 112247 allocs/op 1.00
BenchmarkRPC/client_to_server 364815137 ns/op 18457920 B/op 170657 allocs/op 366041361 ns/op 18197032 B/op 170659 allocs/op 1.00
BenchmarkRPC/client_to_server - ns/op 364815137 ns/op 366041361 ns/op 1.00
BenchmarkRPC/client_to_server - B/op 18457920 B/op 18197032 B/op 1.01
BenchmarkRPC/client_to_server - allocs/op 170657 allocs/op 170659 allocs/op 1.00
BenchmarkRPC/client_to_client_via_server 622392924 ns/op 32253076 B/op 318614 allocs/op 627508838 ns/op 32311368 B/op 319109 allocs/op 0.99
BenchmarkRPC/client_to_client_via_server - ns/op 622392924 ns/op 627508838 ns/op 0.99
BenchmarkRPC/client_to_client_via_server - B/op 32253076 B/op 32311368 B/op 1.00
BenchmarkRPC/client_to_client_via_server - allocs/op 318614 allocs/op 319109 allocs/op 1.00
BenchmarkRPC/attach_large_document 1405278810 ns/op 1892680056 B/op 7615 allocs/op 1096604911 ns/op 1915460912 B/op 7635 allocs/op 1.28
BenchmarkRPC/attach_large_document - ns/op 1405278810 ns/op 1096604911 ns/op 1.28
BenchmarkRPC/attach_large_document - B/op 1892680056 B/op 1915460912 B/op 0.99
BenchmarkRPC/attach_large_document - allocs/op 7615 allocs/op 7635 allocs/op 1.00
BenchmarkRPC/adminCli_to_server 538707152 ns/op 37615624 B/op 289715 allocs/op 542875386 ns/op 35982664 B/op 289633 allocs/op 0.99
BenchmarkRPC/adminCli_to_server - ns/op 538707152 ns/op 542875386 ns/op 0.99
BenchmarkRPC/adminCli_to_server - B/op 37615624 B/op 35982664 B/op 1.05
BenchmarkRPC/adminCli_to_server - allocs/op 289715 allocs/op 289633 allocs/op 1.00
BenchmarkLocker 68.09 ns/op 16 B/op 1 allocs/op 67.22 ns/op 16 B/op 1 allocs/op 1.01
BenchmarkLocker - ns/op 68.09 ns/op 67.22 ns/op 1.01
BenchmarkLocker - B/op 16 B/op 16 B/op 1
BenchmarkLocker - allocs/op 1 allocs/op 1 allocs/op 1
BenchmarkLockerParallel 38.56 ns/op 0 B/op 0 allocs/op 38.76 ns/op 0 B/op 0 allocs/op 0.99
BenchmarkLockerParallel - ns/op 38.56 ns/op 38.76 ns/op 0.99
BenchmarkLockerParallel - B/op 0 B/op 0 B/op 1
BenchmarkLockerParallel - allocs/op 0 allocs/op 0 allocs/op 1
BenchmarkLockerMoreKeys 148.8 ns/op 15 B/op 0 allocs/op 151.6 ns/op 15 B/op 0 allocs/op 0.98
BenchmarkLockerMoreKeys - ns/op 148.8 ns/op 151.6 ns/op 0.98
BenchmarkLockerMoreKeys - B/op 15 B/op 15 B/op 1
BenchmarkLockerMoreKeys - allocs/op 0 allocs/op 0 allocs/op 1
BenchmarkChange/Push_10_Changes 3898788 ns/op 122627 B/op 1286 allocs/op 3866814 ns/op 122700 B/op 1286 allocs/op 1.01
BenchmarkChange/Push_10_Changes - ns/op 3898788 ns/op 3866814 ns/op 1.01
BenchmarkChange/Push_10_Changes - B/op 122627 B/op 122700 B/op 1.00
BenchmarkChange/Push_10_Changes - allocs/op 1286 allocs/op 1286 allocs/op 1
BenchmarkChange/Push_100_Changes 14522949 ns/op 594517 B/op 6659 allocs/op 14530480 ns/op 590503 B/op 6658 allocs/op 1.00
BenchmarkChange/Push_100_Changes - ns/op 14522949 ns/op 14530480 ns/op 1.00
BenchmarkChange/Push_100_Changes - B/op 594517 B/op 590503 B/op 1.01
BenchmarkChange/Push_100_Changes - allocs/op 6659 allocs/op 6658 allocs/op 1.00
BenchmarkChange/Push_1000_Changes 117710570 ns/op 5806305 B/op 63174 allocs/op 117207029 ns/op 5729394 B/op 63172 allocs/op 1.00
BenchmarkChange/Push_1000_Changes - ns/op 117710570 ns/op 117207029 ns/op 1.00
BenchmarkChange/Push_1000_Changes - B/op 5806305 B/op 5729394 B/op 1.01
BenchmarkChange/Push_1000_Changes - allocs/op 63174 allocs/op 63172 allocs/op 1.00
BenchmarkChange/Pull_10_Changes 2927389 ns/op 101066 B/op 1004 allocs/op 2891347 ns/op 101543 B/op 1005 allocs/op 1.01
BenchmarkChange/Pull_10_Changes - ns/op 2927389 ns/op 2891347 ns/op 1.01
BenchmarkChange/Pull_10_Changes - B/op 101066 B/op 101543 B/op 1.00
BenchmarkChange/Pull_10_Changes - allocs/op 1004 allocs/op 1005 allocs/op 1.00
BenchmarkChange/Pull_100_Changes 4355380 ns/op 267147 B/op 3476 allocs/op 4345648 ns/op 268156 B/op 3476 allocs/op 1.00
BenchmarkChange/Pull_100_Changes - ns/op 4355380 ns/op 4345648 ns/op 1.00
BenchmarkChange/Pull_100_Changes - B/op 267147 B/op 268156 B/op 1.00
BenchmarkChange/Pull_100_Changes - allocs/op 3476 allocs/op 3476 allocs/op 1
BenchmarkChange/Pull_1000_Changes 8680345 ns/op 1496466 B/op 29862 allocs/op 8785320 ns/op 1494753 B/op 29862 allocs/op 0.99
BenchmarkChange/Pull_1000_Changes - ns/op 8680345 ns/op 8785320 ns/op 0.99
BenchmarkChange/Pull_1000_Changes - B/op 1496466 B/op 1494753 B/op 1.00
BenchmarkChange/Pull_1000_Changes - allocs/op 29862 allocs/op 29862 allocs/op 1
BenchmarkSnapshot/Push_3KB_snapshot 17039331 ns/op 751417 B/op 6665 allocs/op 17470593 ns/op 771023 B/op 6664 allocs/op 0.98
BenchmarkSnapshot/Push_3KB_snapshot - ns/op 17039331 ns/op 17470593 ns/op 0.98
BenchmarkSnapshot/Push_3KB_snapshot - B/op 751417 B/op 771023 B/op 0.97
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op 6665 allocs/op 6664 allocs/op 1.00
BenchmarkSnapshot/Push_30KB_snapshot 121342421 ns/op 6038145 B/op 63176 allocs/op 122651644 ns/op 5848383 B/op 63173 allocs/op 0.99
BenchmarkSnapshot/Push_30KB_snapshot - ns/op 121342421 ns/op 122651644 ns/op 0.99
BenchmarkSnapshot/Push_30KB_snapshot - B/op 6038145 B/op 5848383 B/op 1.03
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op 63176 allocs/op 63173 allocs/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot 6597779 ns/op 925296 B/op 15514 allocs/op 6647741 ns/op 926245 B/op 15515 allocs/op 0.99
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op 6597779 ns/op 6647741 ns/op 0.99
BenchmarkSnapshot/Pull_3KB_snapshot - B/op 925296 B/op 926245 B/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op 15514 allocs/op 15515 allocs/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot 15284437 ns/op 7184807 B/op 150120 allocs/op 15645077 ns/op 7179900 B/op 150115 allocs/op 0.98
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op 15284437 ns/op 15645077 ns/op 0.98
BenchmarkSnapshot/Pull_30KB_snapshot - B/op 7184807 B/op 7179900 B/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op 150120 allocs/op 150115 allocs/op 1.00
BenchmarkSync/memory_sync_10_test 6996 ns/op 1286 B/op 38 allocs/op 6888 ns/op 1286 B/op 38 allocs/op 1.02
BenchmarkSync/memory_sync_10_test - ns/op 6996 ns/op 6888 ns/op 1.02
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 53562 ns/op 8630 B/op 272 allocs/op 53089 ns/op 8633 B/op 272 allocs/op 1.01
BenchmarkSync/memory_sync_100_test - ns/op 53562 ns/op 53089 ns/op 1.01
BenchmarkSync/memory_sync_100_test - B/op 8630 B/op 8633 B/op 1.00
BenchmarkSync/memory_sync_100_test - allocs/op 272 allocs/op 272 allocs/op 1
BenchmarkSync/memory_sync_1000_test 588631 ns/op 74481 B/op 2117 allocs/op 586702 ns/op 74614 B/op 2125 allocs/op 1.00
BenchmarkSync/memory_sync_1000_test - ns/op 588631 ns/op 586702 ns/op 1.00
BenchmarkSync/memory_sync_1000_test - B/op 74481 B/op 74614 B/op 1.00
BenchmarkSync/memory_sync_1000_test - allocs/op 2117 allocs/op 2125 allocs/op 1.00
BenchmarkSync/memory_sync_10000_test 7154518 ns/op 756687 B/op 20478 allocs/op 7262376 ns/op 754179 B/op 20514 allocs/op 0.99
BenchmarkSync/memory_sync_10000_test - ns/op 7154518 ns/op 7262376 ns/op 0.99
BenchmarkSync/memory_sync_10000_test - B/op 756687 B/op 754179 B/op 1.00
BenchmarkSync/memory_sync_10000_test - allocs/op 20478 allocs/op 20514 allocs/op 1.00
BenchmarkTextEditing 18446036779 ns/op 9042624472 B/op 19926105 allocs/op 18877617883 ns/op 9042140392 B/op 19923978 allocs/op 0.98
BenchmarkTextEditing - ns/op 18446036779 ns/op 18877617883 ns/op 0.98
BenchmarkTextEditing - B/op 9042624472 B/op 9042140392 B/op 1.00
BenchmarkTextEditing - allocs/op 19926105 allocs/op 19923978 allocs/op 1.00

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

Please sign in to comment.