84 Commits

Author SHA1 Message Date
c44f627fd1 cleanup: replace grpc.WithInsecure with insecure.NewCredentials (#5177) 2022-02-09 11:17:46 -08:00
f664adfe5b benchmark: update client to include xds library (#5169) 2022-02-02 09:36:41 -08:00
d3ae124a07 cleanup: use different import alias for services than messages (#4148) 2021-01-12 12:23:41 -08:00
ecc9a99b66 interop: remove test.proto clones/variants and use grpc-proto repo instead (#4129) 2021-01-07 14:19:11 -08:00
02cd07d9bb cmd/protoc-gen-go-grpc: revert to interface-based service registration (#3911) 2020-09-29 15:17:06 -07:00
ff9dd65c90 protoc-gen-go-grpc: generate interfaces optionally; remove NewFooService (#3876) 2020-09-16 10:15:56 -07:00
8c8305f8d5 benchmark: Revert to use old certs. (#3860) 2020-09-01 17:59:14 -07:00
44d73dff99 cmd/protoc-gen-go-grpc: rework service registration (#3828) 2020-08-25 09:28:01 -07:00
8beeedb8b1 internal: clean up all usages of grpclog, and replace with component (#3719) 2020-08-06 13:19:17 -07:00
fd393c8989 testdata: Update testdata certs. (#3786)
* This will be used in certprovider tests where we would want more than one server and client certs.
* Also, updated existing usages of these certs to point to the new  files.
* Also copy over the required certs/key files. This avoids the example gomodule from depending on gRPC testdata package which should be able to change independently.
* Fix interop test's SAN.
2020-08-05 09:55:07 -07:00
ad51f572fd protoc-gen-go-grpc: add requirement of embedding UnimplementedServer in services (#3657) 2020-06-04 10:56:13 -07:00
c7079afb44 lint: fail on missing package comment (#3524)
golint does check for missing package comment, but with low confidence.
golint checks each file, and complains on every file missing package comment, even though another file in the same package has the comment.

This PR adds a golint check with low min_confidence, and filters out false-positives.
2020-04-15 09:59:17 -07:00
04ea82009c cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00
90f728eaf7 Remove shadowing of built-ins (#2290) 2018-09-05 09:05:40 -07:00
8c15646409 Benchmark: fix build tags (#2099) 2018-07-12 13:06:42 -07:00
161c19534c benchmark: listen on all addresses in benchmark servers (#2073) 2018-05-14 17:26:00 -07:00
f8dbc38bdc Fix "deprecated" function godoc comments to match standard formatting (#2027) 2018-05-02 08:52:49 -07:00
7de9139327 Fix typos (#1994) 2018-04-16 10:03:02 -07:00
4d9544a0fd Simplify make() (gosimple)
This fixes:
benchmark/worker/benchmark_client.go:151:36: should use make([]*grpc.ClientConn, connCount) instead (S1019)
benchmark/worker/benchmark_client.go:231:47: should use make([]lockingHistogram, rpcCountPerConn * len(conns)) instead (S1019)
benchmark/worker/benchmark_client.go:343:39: should use make([]*stats.Histogram, len(bc.lockingHistograms)) instead (S1019)
benchmark/worker/benchmark_client.go:369:22: should use make([]uint32, len(mergedHistogram.Buckets)) instead (S1019)
encoding/encoding.go:85:47: should use make(map[string]Codec) instead (S1019)
proxy_test.go:116:26: should use make([]byte, len(msg)) instead (S1019)
2018-04-15 15:32:33 +02:00
2759199bf7 Small spelling fixes (unknow -> unknown) (#1868) 2018-02-22 13:10:19 -08:00
46fd263cc8 benchmarks: add flag to benchmain to use bufconn instead of network (#1837)
This will allow us to focus on grpc internals in profiling by excluding the cost of syscalls, which is a significant part of our time spent.
2018-02-15 14:52:38 -08:00
5ba054bf37 encoding: Introduce new method for registering and choosing codecs (#1813) 2018-01-23 11:39:40 -08:00
865013bc17 *: replace deprecated grpc.Errorf calls with status.Errorf (#1651) 2017-11-06 10:24:20 -08:00
faebfcb7bf Remove single-entry var blocks (#1589) 2017-10-18 09:59:23 -07:00
a68137c927 Revert "Added localhost to net.Listen() calls to avoid macOS firewall dialog." (#1541)
This reverts commit c67cd636f91e849f8677733bcdd60ea8c15d4aa6.
2017-09-27 00:01:17 -07:00
c67cd636f9 Added localhost to net.Listen() calls to avoid macOS firewall dialog. (#1539) 2017-09-26 10:19:45 -07:00
53ae6b7e90 Fix typo 2017-08-03 16:08:13 -07:00
66c9ed803b Add flags for tls file path (#1419) 2017-08-03 15:23:02 -07:00
ca9e0c3458 Add testdata package and unify testdata to only one dir (#1297) 2017-07-25 10:24:45 -07:00
a94a7ac054 add license for some files (#1296) 2017-06-12 18:10:06 -07:00
ddbf6c46a6 autofix license notice 2017-06-08 14:42:19 +02:00
ee8ed34bcf get more metrics from go benchmark servers (#913)
* add user and system cpu usage to go benchmarks

* fix import and style issues

* sample elapsed time diffs after merging histograms

* style fixes and variables renames

* add pprof server to benchmark workers to grab different profile stats

* rename variables for consistency and default to no pprof
2017-04-03 15:53:03 -07:00
388da4269c remove inner goroutines around individual sends and receives in benchmark client
streams
2016-10-07 14:57:42 -07:00
a6bacfe42c Fix go vet 2016-06-29 13:36:10 -07:00
de5d3de2fe Disable grpc tracing in benchmark 2016-05-17 14:06:45 -07:00
b564fc98e0 Merge pull request #677 from menghanl/multiple_histogram
Multiple histogram
2016-05-17 13:47:24 -07:00
613465d739 Use pointer receiver for locking histogram 2016-05-17 11:08:03 -07:00
71a11ef208 Wrap for lockingHistogram.add swap mergeInto 2016-05-17 10:59:28 -07:00
551c49844f Specify cap of slices 2016-05-16 18:30:58 -07:00
6c97293712 Use a struct of mutex and histogram in client 2016-05-16 18:29:06 -07:00
7bb7ec5e30 Reset lastResetTime after merging histograms 2016-05-13 10:01:46 -07:00
8bdfd5961d Set number of cores explicitly if it is not specified and add TODO for core list 2016-05-12 15:03:42 -07:00
31cbd9ae6f Use all cpu cores available on machine by default 2016-05-12 11:03:29 -07:00
0dc39fe27f Golint and histogram opts compare 2016-05-11 17:57:59 -07:00
423a9dea78 Change getStats to do reseting if required. 2016-05-11 17:20:16 -07:00
9521f8ddae Change RWMutex to Mutex 2016-05-11 12:02:39 -07:00
e1243883d6 Merge histograms into one histogram in getStats 2016-05-11 11:51:36 -07:00
4e30886378 Create a histogram for each goroutine 2016-05-06 14:19:32 -07:00
7bc11a0c29 Remove histogramValue 2016-05-04 18:09:24 -07:00
a04636c236 Minor fixes.
Comments
Remove nanosecond, add elapse directly
2016-05-04 14:16:47 -07:00