An open API service indexing awesome lists of open source software.

https://github.com/jamesnk/http2perf

Testing HTTP/2 and gRPC perf on .NET
https://github.com/jamesnk/http2perf

Last synced: 6 days ago
JSON representation

Testing HTTP/2 and gRPC perf on .NET

Awesome Lists containing this project

README

        

# HTTP/2 Perf on .NET

Run the server:

```
dotnet run -c Release -p GrpcSampleServer
```

Run the client:

```
dotnet run -c Release -p GrpcSampleClient client concurrency connectionPerThread
```

Clients:
* r = gRPC with raw HttpClient
* r-stream-request = gRPC with raw HttpClient (stream request)
* r-stream-response = gRPC with raw HttpClient (stream response)
* r-stream-all = gRPC with raw HttpClient (stream all)
* g = gRPC with Grpc.Net.Client
* gs = gRPC bidi streaming with Grpc.Net.Client
* c = gRPC with Grpc.Core
* h1 = Protobuf with HttpClient+HTTP/1
* h2 = Protobuf with HttpClient+HTTP/2
* h1-json = JSON with HttpClient+HTTP/1
* h2-json = JSON with HttpClient+HTTP/2
* s = SignalR bidi streaming (messagepack)

Example - Grpc.Net.Client + 100 callers + connection per thread (100 connections)

```
dotnet run -c Release -p GrpcSampleClient g 100 true
```