Marco Ferrer
52d7f6af60
multiple: switch to math/rand/v2 ( #7711 )
...
Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
2024-10-29 10:43:58 -07:00
Nathan Baulch
3b626a7b52
*: fix more typos ( #7619 )
2024-09-16 10:58:27 -07:00
Arvind Bright
8320224ff0
.*: revive from unused_parameters ( #7577 )
2024-08-30 10:41:30 -07:00
Doug Fawley
fbff2abb0f
*: update `interface{}` to `any` and `go.mod` version to `go 1.19` ( #6544 )
2023-08-14 09:04:46 -07:00
Sergey Matyukevich
db32c5bfeb
Fix preloader mode in benchmarks ( #6359 )
2023-07-11 10:02:15 -07:00
Sergey Matyukevich
1b6666374d
benchmark: Add sleepBetweenRPCs and connections parameters ( #6299 )
2023-06-06 17:09:16 -04:00
Mikhail Mazurskiy
379a2f676c
*: add missing colon to errorf messages to improve readability ( #5911 )
2023-01-17 16:11:47 -08:00
Antoine Tollenaere
457c2f5481
benchmark: use default buffer sizes ( #5762 )
2022-11-10 13:56:40 -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
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
Bryan Boreham
f62d68d513
benchmark: exit from UnconstrainedStreamingCall() when stream is canceled ( #3623 )
2020-05-18 13:39:57 -07:00
Damien Neil
15653fec60
all: refactor .pb.go generation ( #3451 )
...
Replace various //go:generate lines and regenerate.sh scripts with a
single, top-level regenerate.sh that regenerates all .pb.go files.
Placing generation in a single script ensures that all files are
generated with similar parameters. The new regenerate.sh uses the
protoc-gen-go version defined in test/tools/go.mod and automatically
handles new .proto files as they are added.
Do some minor refactoring on .proto files: Every file now has a
go_package option (which will be required by a future version of the
code generator), and file imports are all relative to the repository
root.
2020-04-24 08:54:03 -07:00
Easwar Swaminathan
7c03793042
benchmark: refactor the benchmark code. ( #2820 )
...
benchmark: refactor the benchmark code.
2019-05-20 16:01:37 -07:00
Menghan Li
40cb5618f4
dialOption: export WithContextDialer() ( #2629 )
...
fixes #2627
2019-02-25 15:22:10 -08:00
Can Guler
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
Doug Fawley
04ea82009c
cleanup: replace "x/net/context" import with "context" ( #2439 )
2018-11-12 13:30:41 -08:00
mmukhi
dea4e57312
Benchmarks that runs server and client and separate processes. ( #1952 )
2018-05-21 16:00:01 -07:00
Karsten Weiss
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
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
mmukhi
8214c28a62
Make IO Buffer size configurable. ( #1544 )
...
* Make IO Buffer size configurable.
* Fixing typo
2017-09-28 14:11:14 -07:00
Zhouyihai Ding
1253dac14b
benchmain: format output of benchmark to a table ( #1493 )
2017-09-20 15:06:19 -07:00
ZhouyihaiDing
7db1564ba1
benchmark: add benchmain/main.go to run benchmark with flag set ( #1352 )
2017-08-24 10:08:43 -07:00
dfawley
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
dfawley
4c7bb72916
benchmark: don't stop timer until after workers are done ( #1407 )
2017-07-31 11:36:28 -07:00
ZhouyihaiDing
6495e8dfeb
benchmark: remove multi-layer for loop ( #1339 )
2017-07-21 13:39:06 -07:00
ZhouyihaiDing
f0c566b827
benchmark: add latency/MTU/bandwidth into testcases ( #1304 )
2017-06-23 14:22:51 -07:00
ZhouyihaiDing
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
Jan Tattermusch
ddbf6c46a6
autofix license notice
2017-06-08 14:42:19 +02:00
Alexander Polcyn
bcc367f343
get rid of extra payload local variable
2017-02-09 16:16:18 -08:00
Alexander Polcyn
a0bd789da9
fix wording
2017-02-09 16:12:53 -08:00
Alexander Polcyn
47b25d4b97
remove proto object allocs on streaming benchmark server
2016-12-21 11:28:07 -08: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
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
67497aad6c
Minor fixes
2016-04-29 16:40:23 -07:00
Menghan Li
19d3a3572d
Merge StartServer and StartByteBufServer into a general StartServer
2016-04-28 17:34:55 -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
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
9a595041db
Add benchmarkClient shutdown()
2016-04-27 16:15:12 -07:00
Menghan Li
b5e39adfb2
Add generic close loop
2016-04-27 16:14:24 -07:00