Commit Graph

33 Commits

Author SHA1 Message Date
Doug Fawley d3ae124a07
cleanup: use different import alias for services than messages (#4148) 2021-01-12 12:23:41 -08:00
Doug Fawley ecc9a99b66
interop: remove test.proto clones/variants and use grpc-proto repo instead (#4129) 2021-01-07 14:19:11 -08:00
Doug Fawley 02cd07d9bb
cmd/protoc-gen-go-grpc: revert to interface-based service registration (#3911) 2020-09-29 15:17:06 -07:00
Doug Fawley ff9dd65c90
protoc-gen-go-grpc: generate interfaces optionally; remove NewFooService (#3876) 2020-09-16 10:15:56 -07:00
Doug Fawley 44d73dff99
cmd/protoc-gen-go-grpc: rework service registration (#3828) 2020-08-25 09:28:01 -07:00
Menghan Li 8beeedb8b1
internal: clean up all usages of grpclog, and replace with component (#3719) 2020-08-06 13:19:17 -07:00
Doug Fawley ad51f572fd
protoc-gen-go-grpc: add requirement of embedding UnimplementedServer in services (#3657) 2020-06-04 10:56:13 -07:00
Menghan Li 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
Doug Fawley 04ea82009c
cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00
Chyroc f8dbc38bdc Fix "deprecated" function godoc comments to match standard formatting (#2027) 2018-05-02 08:52:49 -07:00
Karsten Weiss 7de9139327 Fix typos (#1994) 2018-04-16 10:03:02 -07:00
Gyu-Ho Lee 865013bc17 *: replace deprecated grpc.Errorf calls with status.Errorf (#1651) 2017-11-06 10:24:20 -08:00
Menghan Li a68137c927 Revert "Added localhost to net.Listen() calls to avoid macOS firewall dialog." (#1541)
This reverts commit c67cd636f9.
2017-09-27 00:01:17 -07:00
Hein Meling c67cd636f9 Added localhost to net.Listen() calls to avoid macOS firewall dialog. (#1539) 2017-09-26 10:19:45 -07:00
Jan Tattermusch ddbf6c46a6 autofix license notice 2017-06-08 14:42:19 +02:00
apolcyn 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
Menghan Li a6bacfe42c Fix go vet 2016-06-29 13:36:10 -07:00
Menghan Li de5d3de2fe Disable grpc tracing in benchmark 2016-05-17 14:06:45 -07:00
Menghan Li 423a9dea78 Change getStats to do reseting if required. 2016-05-11 17:20:16 -07:00
Menghan Li 78994035bc Modify comments 2016-05-04 11:24:28 -07:00
Menghan Li a0ea2d2050 Fix comments and remove useless WaitGroup 2016-05-03 18:28:06 -07:00
Menghan Li db85417dd0 Check old benchmarkserver before creating new benchmarkserver 2016-04-29 10:43:27 -07:00
Menghan Li 0ca699c979 Address review comments
Change Abs to abs
Remove unimplemented distribution
Name change
Get server port from config or cmd line option
2016-04-29 10:39:18 -07:00
Menghan Li 3a13913bba Address review comments
Change startBenchmarkClient and startBenchmarkServer
2016-04-28 16:16:54 -07:00
Menghan Li 997b80914b Modify byteBufCodec to use *[]byte and remove reqSize from bytebufserver 2016-04-28 15:49:24 -07:00
Menghan Li bc7b50cb41 Minor fixes
Add license
Remove comments and debug logging
Change client status timeElapsed
Change error code to unimplemented
Change warm up rpc size
Move conn.Close go routine
Defer server and client shutdown
Add histogram sumOfSquare clear
Change worker stop
Change benchmark go routine argument
Use same lock inside and out of benchmark
2016-04-27 16:15:23 -07:00
Menghan Li 61623241f4 Small fixes in worker main.go 2016-04-27 16:15:23 -07:00
Menghan Li 9a595041db Add benchmarkClient shutdown() 2016-04-27 16:15:12 -07:00
Menghan Li 2aaff82a6e Add RunClient() 2016-04-27 16:13:06 -07:00
Menghan Li c2e8421003 Minor changes
Change log print
Ignore cpu core list and return the actual number of cores used
Add copyright
Change certfile and keyfile path to relative
RunClient() returns "not implemented" error
Close existing server when new server setup received
Main goroutine will wait for server to stop
Move benchmarkServer out of workerServer
2016-04-22 13:48:50 -07:00
Menghan Li 26b336d491 Add driver command line options 2016-04-22 13:48:50 -07:00
Menghan Li 643486f084 Add bytebuf codec and generic benchmark server 2016-04-22 13:48:50 -07:00
Menghan Li 9fd1d5bee8 Implement QPS workerServer and Add RunServer() for benchmarkServer 2016-04-22 13:47:34 -07:00