Commit Graph

72 Commits

Author SHA1 Message Date
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
Menghan Li 161c19534c
benchmark: listen on all addresses in benchmark servers (#2073) 2018-05-14 17:26:00 -07: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
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 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
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
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
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
田欧 a94a7ac054 add license for some files (#1296) 2017-06-12 18:10:06 -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
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
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 8963fdb9cb Reconstruct startBenchmarkServer 2016-05-03 17:05:37 -07:00
Menghan Li 47152e8076 Reconstruct startBenchmarkClient 2016-05-03 17:05:14 -07:00
Menghan Li 020c480810 Not returning error in StartServer(). 2016-05-03 11:29:00 -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