-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend benchmarks to all protocols (#588)
Previous benchmarks only tested gRPC protocol. This extends the matrix for all protocols and each streaming type. Streams do a single req/rsp to make it easier to compare to unary flows. ``` $ BENCH=BenchmarkConnect make bench BenchmarkConnect/connect/unary_big-12 1041 1183182 ns/op 6379285 B/op 175 allocs/op BenchmarkConnect/connect/unary_small-12 25263 46785 ns/op 19597 B/op 151 allocs/op BenchmarkConnect/connect/client_stream-12 17299 69526 ns/op 26505 B/op 189 allocs/op BenchmarkConnect/connect/server_stream-12 17530 69564 ns/op 26562 B/op 184 allocs/op BenchmarkConnect/connect/bidi_stream-12 17264 68655 ns/op 22356 B/op 172 allocs/op BenchmarkConnect/grpc/unary_big-12 867 1193301 ns/op 6283560 B/op 234 allocs/op BenchmarkConnect/grpc/unary_small-12 20544 57809 ns/op 23892 B/op 209 allocs/op BenchmarkConnect/grpc/client_stream-12 19783 59283 ns/op 24501 B/op 212 allocs/op BenchmarkConnect/grpc/server_stream-12 20704 57771 ns/op 24781 B/op 206 allocs/op BenchmarkConnect/grpc/bidi_stream-12 19772 57777 ns/op 20032 B/op 195 allocs/op BenchmarkConnect/grpcweb/unary_big-12 859 1215487 ns/op 6008795 B/op 220 allocs/op BenchmarkConnect/grpcweb/unary_small-12 17203 68704 ns/op 30543 B/op 196 allocs/op BenchmarkConnect/grpcweb/client_stream-12 17422 68824 ns/op 30042 B/op 199 allocs/op BenchmarkConnect/grpcweb/server_stream-12 17274 68969 ns/op 30180 B/op 193 allocs/op BenchmarkConnect/grpcweb/bidi_stream-12 15910 74695 ns/op 21374 B/op 172 allocs/op ```
- Loading branch information
1 parent
b6d44ec
commit 0ad8df0
Showing
2 changed files
with
175 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters