Commit Graph

60 Commits

Author SHA1 Message Date
赵延 c44f627fd1
cleanup: replace grpc.WithInsecure with insecure.NewCredentials (#5177) 2022-02-09 11:17:46 -08:00
Wanlin Du f664adfe5b
benchmark: update client to include xds library (#5169) 2022-02-02 09:36:41 -08:00
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
Easwar Swaminathan 8c8305f8d5
benchmark: Revert to use old certs. (#3860) 2020-09-01 17:59:14 -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
Easwar Swaminathan 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
Doug Fawley 04ea82009c
cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00
dfawley 90f728eaf7
Remove shadowing of built-ins (#2290) 2018-09-05 09:05:40 -07:00
lyuxuan 8c15646409
Benchmark: fix build tags (#2099) 2018-07-12 13:06:42 -07:00
Chyroc f8dbc38bdc Fix "deprecated" function godoc comments to match standard formatting (#2027) 2018-05-02 08:52:49 -07:00
Karsten Weiss 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
Jean de Klerk 2759199bf7 Small spelling fixes (unknow -> unknown) (#1868) 2018-02-22 13:10:19 -08:00
dfawley 5ba054bf37
encoding: Introduce new method for registering and choosing codecs (#1813) 2018-01-23 11:39:40 -08:00
Gyu-Ho Lee 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
Mehrdad Afshari 53ae6b7e90 Fix typo 2017-08-03 16:08:13 -07:00
ZhouyihaiDing 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
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
Alexander Polcyn 388da4269c remove inner goroutines around individual sends and receives in benchmark client
streams
2016-10-07 14:57:42 -07:00
Qi Zhao b564fc98e0 Merge pull request #677 from menghanl/multiple_histogram
Multiple histogram
2016-05-17 13:47:24 -07:00
Menghan Li 613465d739 Use pointer receiver for locking histogram 2016-05-17 11:08:03 -07:00
Menghan Li 71a11ef208 Wrap for lockingHistogram.add swap mergeInto 2016-05-17 10:59:28 -07:00
Menghan Li 551c49844f Specify cap of slices 2016-05-16 18:30:58 -07:00
Menghan Li 6c97293712 Use a struct of mutex and histogram in client 2016-05-16 18:29:06 -07:00
Menghan Li 7bb7ec5e30 Reset lastResetTime after merging histograms 2016-05-13 10:01:46 -07:00
Menghan Li 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
Menghan Li 31cbd9ae6f Use all cpu cores available on machine by default 2016-05-12 11:03:29 -07:00
Menghan Li 0dc39fe27f Golint and histogram opts compare 2016-05-11 17:57:59 -07:00
Menghan Li 423a9dea78 Change getStats to do reseting if required. 2016-05-11 17:20:16 -07:00
Menghan Li 9521f8ddae Change RWMutex to Mutex 2016-05-11 12:02:39 -07:00
Menghan Li e1243883d6 Merge histograms into one histogram in getStats 2016-05-11 11:51:36 -07:00
Menghan Li 4e30886378 Create a histogram for each goroutine 2016-05-06 14:19:32 -07:00
Menghan Li 7bc11a0c29 Remove histogramValue 2016-05-04 18:09:24 -07:00
Menghan Li a04636c236 Minor fixes.
Comments
Remove nanosecond, add elapse directly
2016-05-04 14:16:47 -07:00
Menghan Li ac8e82e9d0 Explicitly set default cpu number to 1 2016-05-04 11:55:36 -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 d34f891713 Move closeConns to client shutdown() 2016-05-03 17:38:32 -07:00
Menghan Li 47152e8076 Reconstruct startBenchmarkClient 2016-05-03 17:05:14 -07:00
Menghan Li 444ab5553f Fix comments 2016-05-02 14:51:41 -07:00
Menghan Li 02bd4c80b5 Fix leak goroutine problem 2016-04-29 16:43:01 -07:00
Menghan Li 67497aad6c Minor fixes 2016-04-29 16:40:23 -07:00
Menghan Li 0d31c857ae Merge stream init and rpc goroutine creation to the same loop, and
remove warming up.
2016-04-29 11:27:24 -07:00
Menghan Li ceacfbcbc1 Add selecting on stop chan to avoid goroutine leak 2016-04-29 10:58:11 -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 bb1be7190b Change cpu core set and var declaration 2016-04-28 16:43:23 -07:00
Menghan Li 3a13913bba Address review comments
Change startBenchmarkClient and startBenchmarkServer
2016-04-28 16:16:54 -07:00