954fe27324
benchmark: Unconstrained streaming benchmark ( #2512 )
...
* Adds unconstrained streaming benchmarks.
* Adds throughput to all scenarios.
* Adds comment to exported function.
* Adds comment to the new rpc.
* Adds a new run mode for unconstrained benchmarks.
* Converts counters to uint64s.
* Decreases default warm up time.
* Addresses PR comments.
* Deletes an unnecessary select/case
* Explains the use of RecvMsg rather than Recv.
2019-01-11 17:37:31 -08:00
04ea82009c
cleanup: replace "x/net/context" import with "context" ( #2439 )
2018-11-12 13:30:41 -08:00
dea4e57312
Benchmarks that runs server and client and separate processes. ( #1952 )
2018-05-21 16:00:01 -07:00
95bbf69653
Remove redundant return statements (gosimple)
...
This fixes:
balancer/base/balancer.go:149:2: redundant return statement (S1023)
balancer_v1_wrapper.go:260:2: redundant return statement (S1023)
balancer_v1_wrapper.go:273:2: redundant return statement (S1023)
balancer_v1_wrapper.go:285:2: redundant return statement (S1023)
benchmark/benchmark.go:68:2: redundant return statement (S1023)
clientconn.go:1461:2: redundant return statement (S1023)
grpclb.go:223:2: redundant return statement (S1023)
grpclb.go:260:2: redundant return statement (S1023)
grpclb_util.go:201:2: redundant return statement (S1023)
rpc_util.go:278:50: redundant return statement (S1023)
rpc_util.go:296:56: redundant return statement (S1023)
rpc_util.go:314:56: redundant return statement (S1023)
rpc_util.go:333:53: redundant return statement (S1023)
rpc_util.go:354:52: redundant return statement (S1023)
rpc_util.go:387:56: redundant return statement (S1023)
rpc_util.go:416:53: redundant return statement (S1023)
stream.go:651:2: redundant return statement (S1023)
2018-04-15 12:43:34 +02: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
8214c28a62
Make IO Buffer size configurable. ( #1544 )
...
* Make IO Buffer size configurable.
* Fixing typo
2017-09-28 14:11:14 -07:00
1253dac14b
benchmain: format output of benchmark to a table ( #1493 )
2017-09-20 15:06:19 -07:00
7db1564ba1
benchmark: add benchmain/main.go to run benchmark with flag set ( #1352 )
2017-08-24 10:08:43 -07:00
25b4a426b4
go-generate pb.go files and check in Travis to make sure they don't change ( #1426 )
2017-08-17 16:00:51 -07:00
4c7bb72916
benchmark: don't stop timer until after workers are done ( #1407 )
2017-07-31 11:36:28 -07:00
6495e8dfeb
benchmark: remove multi-layer for loop ( #1339 )
2017-07-21 13:39:06 -07:00
f0c566b827
benchmark: add latency/MTU/bandwidth into testcases ( #1304 )
2017-06-23 14:22:51 -07:00
ba30de56b8
use subtests for the benchmark_test and add it into the Makefile ( #1278 )
...
* use subtests for the benchmark_test and add it into the Makefile
* benchmark: keep the original benchmark_test as version 16. use subtests benchmark as 17
2017-06-12 14:52:33 -07:00
ddbf6c46a6
autofix license notice
2017-06-08 14:42:19 +02:00
bcc367f343
get rid of extra payload local variable
2017-02-09 16:16:18 -08:00
a0bd789da9
fix wording
2017-02-09 16:12:53 -08:00
47b25d4b97
remove proto object allocs on streaming benchmark server
2016-12-21 11:28:07 -08:00
14d95fc632
Small fixes in comments.
2016-05-03 12:03:06 -07:00
020c480810
Not returning error in StartServer().
2016-05-03 11:29:00 -07:00
ad6a5173f8
Small fix in error desc
2016-05-02 10:58:43 -07:00
c1cfebc384
Address review comments
2016-05-02 10:55:12 -07:00
67497aad6c
Minor fixes
2016-04-29 16:40:23 -07:00
19d3a3572d
Merge StartServer and StartByteBufServer into a general StartServer
2016-04-28 17:34:55 -07:00
dad9308fa3
Address review comments
2016-04-28 16:02:27 -07:00
997b80914b
Modify byteBufCodec to use *[]byte and remove reqSize from bytebufserver
2016-04-28 15:49:24 -07:00
988c934720
Rename genericServer to byteBufServer
2016-04-28 14:43:29 -07:00
add9c0b9f2
Change NewClientConn so that all options need to be specified by caller
2016-04-28 14:38:30 -07:00
7a5269acfe
Change StartServer back to return address rather than port number
2016-04-28 14:37:48 -07:00
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
9a595041db
Add benchmarkClient shutdown()
2016-04-27 16:15:12 -07:00
b5e39adfb2
Add generic close loop
2016-04-27 16:14:24 -07:00
2aaff82a6e
Add RunClient()
2016-04-27 16:13:06 -07:00
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
643486f084
Add bytebuf codec and generic benchmark server
2016-04-22 13:48:50 -07:00
9fd1d5bee8
Implement QPS workerServer and Add RunServer() for benchmarkServer
2016-04-22 13:47:34 -07:00
142fdefa83
Sync proto and update service name in src
2016-04-22 10:58:15 -07:00
100ca6a0da
fix benchmark, interop and examples
2015-08-27 17:32:57 -07:00
4a8118a90f
Add NoTrace suite for benchmark
2015-06-11 16:48:04 -07:00
207c0140f9
change the enabletracing value to false
2015-06-10 17:23:52 -07:00
66a455aa02
change the value of enabletracing to false
2015-06-10 17:19:50 -07:00
04b604054f
close trace
2015-06-10 16:59:41 -07:00
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
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
7fa35af646
modification for the print out information
2015-06-02 18:33:10 -07:00
b6a930aea4
modified the comments and format
2015-06-02 18:26:11 -07:00
149db4945c
2 round modification
2015-06-02 17:39:51 -07:00
b76b70f703
change import package
2015-06-02 14:07:14 -07:00
585c999c1f
modified streaming call benchmark_test code and streaming call client test code
2015-06-02 11:13:43 -07:00
7b4cd4d7d3
modified test proto and add benchmark test for streaming rpc
2015-06-01 14:58:25 -07:00
7c025e8694
move log package references to grpclog
2015-05-09 11:43:59 +02:00