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
- Host: GitHub
- URL: https://github.com/jamesnk/http2perf
- Owner: JamesNK
- License: mit
- Created: 2020-04-20T00:39:01.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T23:46:46.000Z (about 2 years ago)
- Last Synced: 2025-04-16T09:22:47.366Z (10 days ago)
- Language: C#
- Size: 78.1 KB
- Stars: 50
- Watchers: 9
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```