Skip to content

Commit

Permalink
Lint codes
Browse files Browse the repository at this point in the history
  • Loading branch information
krapie committed Dec 2, 2023
1 parent 745ad56 commit cff9804
Show file tree
Hide file tree
Showing 25 changed files with 74 additions and 42 deletions.
3 changes: 2 additions & 1 deletion admin/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
package admin

import (
"connectrpc.com/connect"
"context"

"connectrpc.com/connect"

"github.com/yorkie-team/yorkie/api/types"
"github.com/yorkie-team/yorkie/internal/version"
)
Expand Down
7 changes: 4 additions & 3 deletions admin/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
package admin

import (
"connectrpc.com/connect"
"context"
"fmt"
api "github.com/yorkie-team/yorkie/api/yorkie/v1"
"github.com/yorkie-team/yorkie/api/yorkie/v1/v1connect"
"net/http"
"strings"

"connectrpc.com/connect"
api "github.com/yorkie-team/yorkie/api/yorkie/v1"
"github.com/yorkie-team/yorkie/api/yorkie/v1/v1connect"

"go.uber.org/zap"
"google.golang.org/grpc/metadata"

Expand Down
1 change: 1 addition & 0 deletions api/converter/from_bytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package converter
import (
"errors"
"fmt"

"google.golang.org/protobuf/proto"

api "github.com/yorkie-team/yorkie/api/yorkie/v1"
Expand Down
1 change: 1 addition & 0 deletions api/converter/from_pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package converter

import (
"fmt"

"github.com/yorkie-team/yorkie/api/types"
api "github.com/yorkie-team/yorkie/api/yorkie/v1"
"github.com/yorkie-team/yorkie/pkg/document/change"
Expand Down
3 changes: 2 additions & 1 deletion api/converter/to_bytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ package converter

import (
"fmt"
"google.golang.org/protobuf/proto"
"reflect"

"google.golang.org/protobuf/proto"

api "github.com/yorkie-team/yorkie/api/yorkie/v1"
"github.com/yorkie-team/yorkie/pkg/document/crdt"
"github.com/yorkie-team/yorkie/pkg/document/innerpresence"
Expand Down
3 changes: 2 additions & 1 deletion api/converter/to_pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ package converter

import (
"fmt"
"reflect"

"google.golang.org/protobuf/types/known/timestamppb"
"google.golang.org/protobuf/types/known/wrapperspb"
"reflect"

"github.com/yorkie-team/yorkie/api/types"
api "github.com/yorkie-team/yorkie/api/yorkie/v1"
Expand Down
5 changes: 3 additions & 2 deletions api/yorkie/v1/admin.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions api/yorkie/v1/resources.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions api/yorkie/v1/v1connect/admin.connect.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions api/yorkie/v1/v1connect/yorkie.connect.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions api/yorkie/v1/yorkie.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
package client

import (
"connectrpc.com/connect"
"context"

"connectrpc.com/connect"

"github.com/yorkie-team/yorkie/api/types"
"github.com/yorkie-team/yorkie/internal/version"
)
Expand Down
7 changes: 4 additions & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@
package client

import (
"connectrpc.com/connect"
"context"
"errors"
"fmt"
"net/http"
"strings"

"connectrpc.com/connect"
"github.com/rs/xid"
"github.com/yorkie-team/yorkie/api/yorkie/v1/v1connect"
"go.uber.org/zap"
"net/http"
"strings"

//"google.golang.org/grpc"
//"google.golang.org/grpc/credentials"
Expand Down
5 changes: 3 additions & 2 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
package client_test

import (
"connectrpc.com/connect"
"context"
"github.com/yorkie-team/yorkie/api/yorkie/v1/v1connect"
"net/http"
"net/http/httptest"
"reflect"
"testing"

"connectrpc.com/connect"
"github.com/yorkie-team/yorkie/api/yorkie/v1/v1connect"

"github.com/rs/xid"
"github.com/stretchr/testify/assert"
monkey "github.com/undefinedlabs/go-mpatch"
Expand Down
1 change: 1 addition & 0 deletions server/backend/database/change_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"encoding/json"
"errors"
"fmt"

"google.golang.org/protobuf/proto"

"github.com/yorkie-team/yorkie/api/converter"
Expand Down
2 changes: 1 addition & 1 deletion server/profiling/prometheus/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var (
type Metrics struct {
registry *prometheus.Registry
serverMetrics *grpcprometheus.ServerMetrics

serverVersion *prometheus.GaugeVec

pushPullResponseSeconds prometheus.Histogram
Expand Down
3 changes: 2 additions & 1 deletion server/rpc/admin_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
package rpc

import (
"connectrpc.com/connect"
"context"
"fmt"

"connectrpc.com/connect"

"github.com/yorkie-team/yorkie/api/converter"
"github.com/yorkie-team/yorkie/api/types"
api "github.com/yorkie-team/yorkie/api/yorkie/v1"
Expand Down
5 changes: 3 additions & 2 deletions server/rpc/connecthelper/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
package connecthelper

import (
"connectrpc.com/connect"
"context"
"github.com/yorkie-team/yorkie/server/logging"
"strconv"
"sync/atomic"

"connectrpc.com/connect"
"github.com/yorkie-team/yorkie/server/logging"
)

type reqID int32
Expand Down
3 changes: 2 additions & 1 deletion server/rpc/connecthelper/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
package connecthelper

import (
"connectrpc.com/connect"
"errors"
"fmt"

"connectrpc.com/connect"
"google.golang.org/genproto/googleapis/rpc/errdetails"
"google.golang.org/protobuf/runtime/protoiface"

Expand Down
3 changes: 2 additions & 1 deletion server/rpc/interceptors/admin_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
package interceptors

import (
"connectrpc.com/connect"
"context"
"net/http"
"strings"

"connectrpc.com/connect"

"google.golang.org/grpc/codes"
grpcstatus "google.golang.org/grpc/status"

Expand Down
5 changes: 3 additions & 2 deletions server/rpc/interceptors/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
package interceptors

import (
"connectrpc.com/connect"
"context"
"errors"
"github.com/yorkie-team/yorkie/server/rpc/connecthelper"
"net/http"
"strings"

"connectrpc.com/connect"
"github.com/yorkie-team/yorkie/server/rpc/connecthelper"

"github.com/yorkie-team/yorkie/api/types"
"github.com/yorkie-team/yorkie/pkg/cache"
"github.com/yorkie-team/yorkie/server/backend"
Expand Down
5 changes: 3 additions & 2 deletions server/rpc/interceptors/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
package interceptors

import (
"connectrpc.com/connect"
"context"
"errors"
"github.com/yorkie-team/yorkie/server/rpc/connecthelper"
gotime "time"

"connectrpc.com/connect"
"github.com/yorkie-team/yorkie/server/rpc/connecthelper"

"github.com/yorkie-team/yorkie/server/logging"
)

Expand Down
7 changes: 4 additions & 3 deletions server/rpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
package rpc

import (
"connectrpc.com/connect"
"context"
"fmt"
"net/http"
"time"

"connectrpc.com/connect"
"github.com/rs/cors"
"github.com/yorkie-team/yorkie/api/yorkie/v1/v1connect"
"github.com/yorkie-team/yorkie/server/backend"
Expand All @@ -31,8 +34,6 @@ import (
"github.com/yorkie-team/yorkie/server/rpc/interceptors"
"golang.org/x/net/http2"
"golang.org/x/net/http2/h2c"
"net/http"
"time"
)

// Server is a normal server that processes the logic requested by the client.
Expand Down
21 changes: 15 additions & 6 deletions server/rpc/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@
package rpc_test

import (
"connectrpc.com/connect"
"context"
"encoding/hex"
"fmt"
"github.com/stretchr/testify/assert"
"github.com/yorkie-team/yorkie/api/yorkie/v1/v1connect"
"google.golang.org/protobuf/types/known/wrapperspb"
"log"
"net/http"
"os"
"testing"

"connectrpc.com/connect"
"github.com/stretchr/testify/assert"
"github.com/yorkie-team/yorkie/api/yorkie/v1/v1connect"
"google.golang.org/protobuf/types/known/wrapperspb"

"github.com/yorkie-team/yorkie/admin"
api "github.com/yorkie-team/yorkie/api/yorkie/v1"
"github.com/yorkie-team/yorkie/client"
Expand Down Expand Up @@ -120,7 +121,11 @@ func TestMain(m *testing.M) {
//dialOptions = append(dialOptions, grpc.WithTransportCredentials(insecure.NewCredentials()))

conn := http.DefaultClient
testClient = v1connect.NewYorkieServiceClient(conn, "http://"+testRPCAddr, connect.WithInterceptors(authInterceptor))
testClient = v1connect.NewYorkieServiceClient(
conn,
"http://"+testRPCAddr,
connect.WithInterceptors(authInterceptor),
)

//credentials := grpc.WithTransportCredentials(insecure.NewCredentials())
//dialOptions = []grpc.DialOption{credentials}
Expand All @@ -130,7 +135,11 @@ func TestMain(m *testing.M) {
//dialOptions = append(dialOptions, grpc.WithStreamInterceptor(testAdminAuthInterceptor.Stream()))

adminConn := http.DefaultClient
testAdminClient = v1connect.NewAdminServiceClient(adminConn, "http://"+testRPCAddr, connect.WithInterceptors(testAdminAuthInterceptor))
testAdminClient = v1connect.NewAdminServiceClient(
adminConn,
"http://"+testRPCAddr,
connect.WithInterceptors(testAdminAuthInterceptor),
)

code := m.Run()

Expand Down
3 changes: 2 additions & 1 deletion server/rpc/yorkie_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
package rpc

import (
"connectrpc.com/connect"
"context"
"fmt"

"connectrpc.com/connect"
"github.com/yorkie-team/yorkie/api/converter"
"github.com/yorkie-team/yorkie/api/types"
api "github.com/yorkie-team/yorkie/api/yorkie/v1"
Expand Down

1 comment on commit cff9804

@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: cff9804 Previous: 3ebef65 Ratio
BenchmarkDocument/constructor_test - ns/op 1308 ns/op 1373 ns/op 0.95
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 799.8 ns/op 796.5 ns/op 1.00
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 7112 ns/op 8302 ns/op 0.86
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 16002 ns/op 16598 ns/op 0.96
BenchmarkDocument/nested_update_test - B/op 11962 B/op 11962 B/op 1
BenchmarkDocument/nested_update_test - allocs/op 254 allocs/op 254 allocs/op 1
BenchmarkDocument/delete_test - ns/op 25354 ns/op 22626 ns/op 1.12
BenchmarkDocument/delete_test - B/op 15188 B/op 15188 B/op 1
BenchmarkDocument/delete_test - allocs/op 333 allocs/op 333 allocs/op 1
BenchmarkDocument/object_test - ns/op 8413 ns/op 8699 ns/op 0.97
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 28341 ns/op 29401 ns/op 0.96
BenchmarkDocument/array_test - B/op 11818 B/op 11819 B/op 1.00
BenchmarkDocument/array_test - allocs/op 270 allocs/op 270 allocs/op 1
BenchmarkDocument/text_test - ns/op 30368 ns/op 31226 ns/op 0.97
BenchmarkDocument/text_test - B/op 14796 B/op 14795 B/op 1.00
BenchmarkDocument/text_test - allocs/op 468 allocs/op 468 allocs/op 1
BenchmarkDocument/text_composition_test - ns/op 28925 ns/op 29299 ns/op 0.99
BenchmarkDocument/text_composition_test - B/op 18278 B/op 18278 B/op 1
BenchmarkDocument/text_composition_test - allocs/op 477 allocs/op 477 allocs/op 1
BenchmarkDocument/rich_text_test - ns/op 79927 ns/op 82820 ns/op 0.97
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 16731 ns/op 17386 ns/op 0.96
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 2882521 ns/op 2970186 ns/op 0.97
BenchmarkDocument/text_edit_gc_100 - B/op 1655158 B/op 1655326 B/op 1.00
BenchmarkDocument/text_edit_gc_100 - allocs/op 17092 allocs/op 17093 allocs/op 1.00
BenchmarkDocument/text_edit_gc_1000 - ns/op 227721652 ns/op 231735416 ns/op 0.98
BenchmarkDocument/text_edit_gc_1000 - B/op 144363092 B/op 144366033 B/op 1.00
BenchmarkDocument/text_edit_gc_1000 - allocs/op 200991 allocs/op 201007 allocs/op 1.00
BenchmarkDocument/text_split_gc_100 - ns/op 3384610 ns/op 3385194 ns/op 1.00
BenchmarkDocument/text_split_gc_100 - B/op 2313516 B/op 2313331 B/op 1.00
BenchmarkDocument/text_split_gc_100 - allocs/op 16194 allocs/op 16194 allocs/op 1
BenchmarkDocument/text_split_gc_1000 - ns/op 286402912 ns/op 296761342 ns/op 0.97
BenchmarkDocument/text_split_gc_1000 - B/op 228900760 B/op 228881832 B/op 1.00
BenchmarkDocument/text_split_gc_1000 - allocs/op 204004 allocs/op 203904 allocs/op 1.00
BenchmarkDocument/text_delete_all_10000 - ns/op 10671335 ns/op 11146892 ns/op 0.96
BenchmarkDocument/text_delete_all_10000 - B/op 5810187 B/op 5810543 B/op 1.00
BenchmarkDocument/text_delete_all_10000 - allocs/op 40672 allocs/op 40675 allocs/op 1.00
BenchmarkDocument/text_delete_all_100000 - ns/op 184843593 ns/op 187188955 ns/op 0.99
BenchmarkDocument/text_delete_all_100000 - B/op 81888866 B/op 81887592 B/op 1.00
BenchmarkDocument/text_delete_all_100000 - allocs/op 411563 allocs/op 411550 allocs/op 1.00
BenchmarkDocument/text_100 - ns/op 233985 ns/op 232235 ns/op 1.01
BenchmarkDocument/text_100 - B/op 118483 B/op 118483 B/op 1
BenchmarkDocument/text_100 - allocs/op 5080 allocs/op 5080 allocs/op 1
BenchmarkDocument/text_1000 - ns/op 2572741 ns/op 2502773 ns/op 1.03
BenchmarkDocument/text_1000 - B/op 1153072 B/op 1153073 B/op 1.00
BenchmarkDocument/text_1000 - allocs/op 50084 allocs/op 50084 allocs/op 1
BenchmarkDocument/array_1000 - ns/op 1238488 ns/op 1267389 ns/op 0.98
BenchmarkDocument/array_1000 - B/op 1091210 B/op 1091268 B/op 1.00
BenchmarkDocument/array_1000 - allocs/op 11825 allocs/op 11826 allocs/op 1.00
BenchmarkDocument/array_10000 - ns/op 12799541 ns/op 13549731 ns/op 0.94
BenchmarkDocument/array_10000 - B/op 9799455 B/op 9800047 B/op 1.00
BenchmarkDocument/array_10000 - allocs/op 120289 allocs/op 120291 allocs/op 1.00
BenchmarkDocument/array_gc_100 - ns/op 154101 ns/op 153664 ns/op 1.00
BenchmarkDocument/array_gc_100 - B/op 132489 B/op 132498 B/op 1.00
BenchmarkDocument/array_gc_100 - allocs/op 1248 allocs/op 1248 allocs/op 1
BenchmarkDocument/array_gc_1000 - ns/op 1413817 ns/op 1451255 ns/op 0.97
BenchmarkDocument/array_gc_1000 - B/op 1158836 B/op 1158965 B/op 1.00
BenchmarkDocument/array_gc_1000 - allocs/op 12864 allocs/op 12865 allocs/op 1.00
BenchmarkDocument/counter_1000 - ns/op 213486 ns/op 215664 ns/op 0.99
BenchmarkDocument/counter_1000 - B/op 192852 B/op 192852 B/op 1
BenchmarkDocument/counter_1000 - allocs/op 5765 allocs/op 5765 allocs/op 1
BenchmarkDocument/counter_10000 - ns/op 2233043 ns/op 2222359 ns/op 1.00
BenchmarkDocument/counter_10000 - B/op 2087783 B/op 2087783 B/op 1
BenchmarkDocument/counter_10000 - allocs/op 59772 allocs/op 59772 allocs/op 1
BenchmarkDocument/object_1000 - ns/op 1410574 ns/op 1433455 ns/op 0.98
BenchmarkDocument/object_1000 - B/op 1427984 B/op 1427946 B/op 1.00
BenchmarkDocument/object_1000 - allocs/op 9845 allocs/op 9845 allocs/op 1
BenchmarkDocument/object_10000 - ns/op 14626068 ns/op 14878581 ns/op 0.98
BenchmarkDocument/object_10000 - B/op 12166883 B/op 12167003 B/op 1.00
BenchmarkDocument/object_10000 - allocs/op 100561 allocs/op 100561 allocs/op 1
BenchmarkDocument/tree_100 - ns/op 721404 ns/op 722947 ns/op 1.00
BenchmarkDocument/tree_100 - B/op 442885 B/op 442891 B/op 1.00
BenchmarkDocument/tree_100 - allocs/op 4506 allocs/op 4506 allocs/op 1
BenchmarkDocument/tree_1000 - ns/op 47858041 ns/op 48715965 ns/op 0.98
BenchmarkDocument/tree_1000 - B/op 35222834 B/op 35222566 B/op 1.00
BenchmarkDocument/tree_1000 - allocs/op 44119 allocs/op 44119 allocs/op 1
BenchmarkDocument/tree_10000 - ns/op 6127216883 ns/op 6243742972 ns/op 0.98
BenchmarkDocument/tree_10000 - B/op 3438867888 B/op 3439193776 B/op 1.00
BenchmarkDocument/tree_10000 - allocs/op 440216 allocs/op 440204 allocs/op 1.00
BenchmarkDocument/tree_delete_all_1000 - ns/op 48740066 ns/op 50492483 ns/op 0.97
BenchmarkDocument/tree_delete_all_1000 - B/op 35687432 B/op 35687345 B/op 1.00
BenchmarkDocument/tree_delete_all_1000 - allocs/op 51744 allocs/op 51744 allocs/op 1
BenchmarkDocument/tree_edit_gc_100 - ns/op 2638154 ns/op 2674319 ns/op 0.99
BenchmarkDocument/tree_edit_gc_100 - B/op 2100190 B/op 2099522 B/op 1.00
BenchmarkDocument/tree_edit_gc_100 - allocs/op 11165 allocs/op 11165 allocs/op 1
BenchmarkDocument/tree_edit_gc_1000 - ns/op 195794452 ns/op 200656697 ns/op 0.98
BenchmarkDocument/tree_edit_gc_1000 - B/op 180290617 B/op 180293307 B/op 1.00
BenchmarkDocument/tree_edit_gc_1000 - allocs/op 113346 allocs/op 113350 allocs/op 1.00
BenchmarkDocument/tree_split_gc_100 - ns/op 1933555 ns/op 1969140 ns/op 0.98
BenchmarkDocument/tree_split_gc_100 - B/op 1363479 B/op 1363475 B/op 1.00
BenchmarkDocument/tree_split_gc_100 - allocs/op 8735 allocs/op 8735 allocs/op 1
BenchmarkDocument/tree_split_gc_1000 - ns/op 129724152 ns/op 133034523 ns/op 0.98
BenchmarkDocument/tree_split_gc_1000 - B/op 120284969 B/op 120284053 B/op 1.00
BenchmarkDocument/tree_split_gc_1000 - allocs/op 96194 allocs/op 96193 allocs/op 1.00
BenchmarkRPC/client_to_server - ns/op 353610941 ns/op 356375965 ns/op 0.99
BenchmarkRPC/client_to_server - B/op 16336634 B/op 16323573 B/op 1.00
BenchmarkRPC/client_to_server - allocs/op 166452 allocs/op 165420 allocs/op 1.01
BenchmarkRPC/client_to_client_via_server - ns/op 608434688 ns/op 607723810 ns/op 1.00
BenchmarkRPC/client_to_client_via_server - B/op 34770692 B/op 34041892 B/op 1.02
BenchmarkRPC/client_to_client_via_server - allocs/op 310746 allocs/op 309871 allocs/op 1.00
BenchmarkRPC/attach_large_document - ns/op 1423233530 ns/op 1463602622 ns/op 0.97
BenchmarkRPC/attach_large_document - B/op 1878654696 B/op 1878647264 B/op 1.00
BenchmarkRPC/attach_large_document - allocs/op 7061 allocs/op 7043 allocs/op 1.00
BenchmarkRPC/adminCli_to_server - ns/op 533313734 ns/op 541741676 ns/op 0.98
BenchmarkRPC/adminCli_to_server - B/op 35986140 B/op 36380716 B/op 0.99
BenchmarkRPC/adminCli_to_server - allocs/op 285611 allocs/op 284616 allocs/op 1.00
BenchmarkLocker - ns/op 64.37 ns/op 65.29 ns/op 0.99
BenchmarkLocker - B/op 16 B/op 16 B/op 1
BenchmarkLocker - allocs/op 1 allocs/op 1 allocs/op 1
BenchmarkLockerParallel - ns/op 38.36 ns/op 38.64 ns/op 0.99
BenchmarkLockerParallel - B/op 0 B/op 0 B/op NaN
BenchmarkLockerParallel - allocs/op 0 allocs/op 0 allocs/op NaN
BenchmarkLockerMoreKeys - ns/op 146.2 ns/op 138.5 ns/op 1.06
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 3780528 ns/op 3779429 ns/op 1.00
BenchmarkChange/Push_10_Changes - B/op 126333 B/op 126275 B/op 1.00
BenchmarkChange/Push_10_Changes - allocs/op 1254 allocs/op 1254 allocs/op 1
BenchmarkChange/Push_100_Changes - ns/op 14020670 ns/op 14129092 ns/op 0.99
BenchmarkChange/Push_100_Changes - B/op 646821 B/op 646942 B/op 1.00
BenchmarkChange/Push_100_Changes - allocs/op 6537 allocs/op 6540 allocs/op 1.00
BenchmarkChange/Push_1000_Changes - ns/op 112863626 ns/op 113213707 ns/op 1.00
BenchmarkChange/Push_1000_Changes - B/op 6090923 B/op 6011043 B/op 1.01
BenchmarkChange/Push_1000_Changes - allocs/op 62157 allocs/op 62155 allocs/op 1.00
BenchmarkChange/Pull_10_Changes - ns/op 2848272 ns/op 2837624 ns/op 1.00
BenchmarkChange/Pull_10_Changes - B/op 100783 B/op 100327 B/op 1.00
BenchmarkChange/Pull_10_Changes - allocs/op 951 allocs/op 951 allocs/op 1
BenchmarkChange/Pull_100_Changes - ns/op 4291996 ns/op 4303014 ns/op 1.00
BenchmarkChange/Pull_100_Changes - B/op 258236 B/op 257269 B/op 1.00
BenchmarkChange/Pull_100_Changes - allocs/op 3154 allocs/op 3154 allocs/op 1
BenchmarkChange/Pull_1000_Changes - ns/op 8260991 ns/op 8473189 ns/op 0.97
BenchmarkChange/Pull_1000_Changes - B/op 1397506 B/op 1393414 B/op 1.00
BenchmarkChange/Pull_1000_Changes - allocs/op 26875 allocs/op 26869 allocs/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot - ns/op 16692087 ns/op 16717315 ns/op 1.00
BenchmarkSnapshot/Push_3KB_snapshot - B/op 801188 B/op 807884 B/op 0.99
BenchmarkSnapshot/Push_3KB_snapshot - allocs/op 6541 allocs/op 6541 allocs/op 1
BenchmarkSnapshot/Push_30KB_snapshot - ns/op 117275537 ns/op 117501595 ns/op 1.00
BenchmarkSnapshot/Push_30KB_snapshot - B/op 6260108 B/op 6250940 B/op 1.00
BenchmarkSnapshot/Push_30KB_snapshot - allocs/op 62158 allocs/op 62161 allocs/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - ns/op 6627486 ns/op 6521588 ns/op 1.02
BenchmarkSnapshot/Pull_3KB_snapshot - B/op 906694 B/op 904310 B/op 1.00
BenchmarkSnapshot/Pull_3KB_snapshot - allocs/op 14881 allocs/op 14878 allocs/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - ns/op 14765369 ns/op 15228711 ns/op 0.97
BenchmarkSnapshot/Pull_30KB_snapshot - B/op 6988207 B/op 6983077 B/op 1.00
BenchmarkSnapshot/Pull_30KB_snapshot - allocs/op 144142 allocs/op 144141 allocs/op 1.00
BenchmarkSync/memory_sync_10_test - ns/op 6849 ns/op 6917 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 52188 ns/op 51493 ns/op 1.01
BenchmarkSync/memory_sync_100_test - B/op 8662 B/op 8650 B/op 1.00
BenchmarkSync/memory_sync_100_test - allocs/op 274 allocs/op 273 allocs/op 1.00
BenchmarkSync/memory_sync_1000_test - ns/op 588146 ns/op 598451 ns/op 0.98
BenchmarkSync/memory_sync_1000_test - B/op 74598 B/op 74330 B/op 1.00
BenchmarkSync/memory_sync_1000_test - allocs/op 2124 allocs/op 2108 allocs/op 1.01
BenchmarkSync/memory_sync_10000_test - ns/op 7357813 ns/op 7141413 ns/op 1.03
BenchmarkSync/memory_sync_10000_test - B/op 760971 B/op 761330 B/op 1.00
BenchmarkSync/memory_sync_10000_test - allocs/op 20688 allocs/op 20560 allocs/op 1.01
BenchmarkTextEditing - ns/op 18706754880 ns/op 19117165431 ns/op 0.98
BenchmarkTextEditing - B/op 9037814192 B/op 9037584392 B/op 1.00
BenchmarkTextEditing - allocs/op 19922519 allocs/op 19921383 allocs/op 1.00

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

Please sign in to comment.