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
8ca2706d37
Address review comments
2016-05-16 18:28:16 -07:00
Menghan Li
577b4b0d4c
Address review comments
2016-05-13 10:36:50 -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
9ccc0dd988
Add histogram Merge function
2016-05-06 14:26:07 -07:00
Menghan Li
4e30886378
Create a histogram for each goroutine
2016-05-06 14:19:32 -07:00
Menghan Li
660a65ba7c
Minor fixes
...
Move code around
2016-05-06 14:18:57 -07:00
Menghan Li
43b6e14060
Add comments for exported fields
2016-05-05 10:48:20 -07:00
Menghan Li
7bc11a0c29
Remove histogramValue
2016-05-04 18:09:24 -07:00
Menghan Li
d846ac94b3
Simplify histogram
2016-05-04 17:54:34 -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
14d95fc632
Small fixes in comments.
2016-05-03 12:03:06 -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
ad6a5173f8
Small fix in error desc
2016-05-02 10:58:43 -07:00
Menghan Li
c1cfebc384
Address review comments
2016-05-02 10:55:12 -07:00
Menghan Li
02bd4c80b5
Fix leak goroutine problem
2016-04-29 16:43:01 -07:00
Menghan Li
e7801b635a
Fix error in benchmark/server/main.go
2016-04-29 16:40:32 -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
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
19d3a3572d
Merge StartServer and StartByteBufServer into a general StartServer
2016-04-28 17:34:55 -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
Menghan Li
dad9308fa3
Address review comments
2016-04-28 16:02:27 -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
988c934720
Rename genericServer to byteBufServer
2016-04-28 14:43:29 -07:00
Menghan Li
add9c0b9f2
Change NewClientConn so that all options need to be specified by caller
2016-04-28 14:38:30 -07:00
Menghan Li
7a5269acfe
Change StartServer back to return address rather than port number
2016-04-28 14:37:48 -07:00
Menghan Li
63410e3453
Change doBenchmark to client struct member function
2016-04-27 16:15:23 -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
b54a56774d
Update histogram creating options
2016-04-27 16:15:23 -07:00
Menghan Li
ad0677d6a9
Close loop: Create multiple streams on one connection
2016-04-27 16:15:23 -07:00
Menghan Li
9a595041db
Add benchmarkClient shutdown()
2016-04-27 16:15:12 -07:00
Menghan Li
fc76af457f
Add distribution variable to be used by open loop
2016-04-27 16:14:24 -07:00
Menghan Li
b5e39adfb2
Add generic close loop
2016-04-27 16:14:24 -07:00
Menghan Li
257710d39c
Add close benchmark rpc calls
2016-04-27 16:13:32 -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
bdd0e9ff61
Fix error in benchmark_test
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
Menghan Li
142fdefa83
Sync proto and update service name in src
2016-04-22 10:58:15 -07:00
Qi Zhao
306a1ee0fe
Merge pull request #636 from menghanl/histogram
...
Change histogram to comply with benchmark worker requirements
2016-04-21 18:06:02 -07:00
Menghan Li
f4425a1062
Address review comments
2016-04-21 17:47:21 -07:00
Menghan Li
782915aae8
Add extra option smallest bucket size
2016-04-20 10:16:33 -07:00
Menghan Li
7e9d489649
Address review comments
2016-04-19 17:26:15 -07:00
iamqizhao
61e92eacc3
Phase 1 to add the server interceptor
2016-04-18 16:18:34 -07:00
Menghan Li
056dc9c933
Change histogram algorithm to comply with benchmark requirements
2016-04-14 11:43:24 -07:00
Menghan Li
536ed747b8
Change histogram lowbound to float64
2016-04-14 11:43:24 -07:00
Menghan Li
d8783294dd
Add sumOfSquares to histogram
2016-04-14 11:43:15 -07:00
Tamir Duberstein
accbf4c185
`make proto`
2016-02-04 17:35:04 -05:00
iamqizhao
3497fcb768
Fix the benchmark client
2015-12-22 15:00:37 -08:00
iamqizhao
a15e3b9562
decodeFunc -> dec
2015-10-01 16:26:00 -07:00
iamqizhao
a71db53441
remove slice param
2015-09-29 20:10:20 -07:00
iamqizhao
a27bb5b14a
remove dead code
2015-09-29 19:08:55 -07:00
iamqizhao
ef43a528c1
example generated code
2015-09-29 19:07:43 -07:00
Tamir Duberstein
fe58c815dd
tests: use `testing.{B,T}` or return errors instead of crashing
2015-09-11 14:27:38 -04:00
iamqizhao
100ca6a0da
fix benchmark, interop and examples
2015-08-27 17:32:57 -07:00
iamqizhao
0e0cf2c228
gofmt -w
2015-07-21 17:53:59 -07:00
iamqizhao
528e1e3ef9
add trace flag to benchmark client
2015-06-11 16:53:53 -07:00
iamqizhao
4a8118a90f
Add NoTrace suite for benchmark
2015-06-11 16:48:04 -07:00
yangzhouhan
207c0140f9
change the enabletracing value to false
2015-06-10 17:23:52 -07:00
yangzhouhan
66a455aa02
change the value of enabletracing to false
2015-06-10 17:19:50 -07:00
yangzhouhan
04b604054f
close trace
2015-06-10 16:59:41 -07:00
David Symonds
73bb3c6426
Run benchmark server on localhost interface only.
...
This avoids triggering firewall warnings on OS X,
and it's generally safer too.
2015-06-08 07:38:22 -07:00
David Symonds
07f33239d2
Fix data race in benchmark_test.go.
...
Streams are not safe for concurrent use,
so start a new stream for each goroutine.
Fixes #213 .
2015-06-06 10:10:14 -07:00
Qi Zhao
d94dcabef2
Merge pull request #200 from peter-edge/makefile
...
Makefile
2015-06-05 14:27:22 -07:00
yangzhouhan
7fa35af646
modification for the print out information
2015-06-02 18:33:10 -07:00
yangzhouhan
b6a930aea4
modified the comments and format
2015-06-02 18:26:11 -07:00
yangzhouhan
149db4945c
2 round modification
2015-06-02 17:39:51 -07:00
yangzhouhan
b76b70f703
change import package
2015-06-02 14:07:14 -07:00
yangzhouhan
585c999c1f
modified streaming call benchmark_test code and streaming call client test code
2015-06-02 11:13:43 -07:00
yangzhouhan
7b4cd4d7d3
modified test proto and add benchmark test for streaming rpc
2015-06-01 14:58:25 -07:00
Peter Edge
7b50c34edb
add make proto and update protos
2015-05-24 16:14:32 +02:00
Peter Edge
f5bae617c6
Add a Makefile to show development commands
...
Signed-off-by: Peter Edge <peter.edge@gmail.com>
2015-05-24 16:05:35 +02:00
Peter Edge
7c025e8694
move log package references to grpclog
2015-05-09 11:43:59 +02:00
Peter Edge
101c1e1935
change log package references to grpc/log
2015-05-09 01:16:40 +02:00
Peter Edge
5700d19d0e
Fix golint errors for non-generated code
2015-05-08 21:46:16 +02:00
iamqizhao
a239e5e55f
Add profiling port for benchmark server
2015-04-30 19:16:27 -07:00
iamqizhao
ae40153504
add profiling port for benchmark client
2015-04-30 19:05:16 -07:00
iamqizhao
58e0450a3c
put Start/StopTimer() at right place
2015-04-29 11:20:15 -07:00
iamqizhao
dfda1a1061
gofmt -w
2015-04-29 11:03:25 -07:00
iamqizhao
f29a6f2d85
record per-rpc rtt in benchmark_test
2015-04-29 11:02:40 -07:00
iamqizhao
93ec6daf9c
record per-rpc latency instead of per-item
2015-04-29 10:58:56 -07:00
iamqizhao
c0ead53d5e
Add the standalone benchmark client
2015-04-28 19:23:26 -07:00
iamqizhao
9f83f476dc
add standalone benchmark server
2015-04-28 17:34:24 -07:00
iamqizhao
0f85408fd4
Eliminate proto.Unmarshal in the generated code
2015-04-27 14:47:09 -07:00
iamqizhao
c5984b9a7d
Print latency histogram for benchmarks
2015-04-23 16:25:16 -07:00
iamqizhao
c63da93d52
stats lib for benchmark
2015-04-23 13:10:23 -07:00
iamqizhao
8b08b2d7b2
Interface change to accommodate the support of non-protobuf data formats
2015-03-25 15:18:07 -07:00
iamqizhao
666e0a407b
initial benchmark commit. Mostly ported from interop test and Google interal rpc microbenchmarks.
2015-03-17 14:27:34 -07:00